The NetBSD Project

CVS log for src/sys/fs/msdosfs/msdosfs_vfsops.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / fs / msdosfs

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.93.6.1.4.2 / (download) - annotate - [select for diffs], Sun Nov 9 06:39:12 2014 UTC (5 weeks, 4 days ago) by msaitoh
Branch: netbsd-6-0
Changes since 1.93.6.1.4.1: +50 -41 lines
Diff to previous 1.93.6.1.4.1 (colored) to branchpoint 1.93.6.1 (colored) next main 1.93.6.2 (colored)

Pull up following revision(s) (requested by maxv in ticket #1171):
	sys/fs/msdosfs/msdosfs_vfsops.c: revision 1.110 via patch
- From me, FreeBSD, OpenBSD and the FAT specification. Ok christos@
  - Perform sanity checks not just for GEMDOSFS, but for all FAT devices. This
    also fixes a division-by-zero bug that could crash the system.
  - Define GEMDOSFS_BSIZE instead of a hard-coded 512 value, and remove 'bsize'.
  - Rename 'tmp' to 'BlkPerSec'.
- Remove 'secsize==0' and added 'secsize<DEV_BSIZE'

Revision 1.93.6.1.6.2 / (download) - annotate - [select for diffs], Sun Nov 9 06:38:55 2014 UTC (5 weeks, 4 days ago) by msaitoh
Branch: netbsd-6-1
Changes since 1.93.6.1.6.1: +50 -41 lines
Diff to previous 1.93.6.1.6.1 (colored) to branchpoint 1.93.6.1 (colored) next main 1.93.6.2 (colored)

Pull up following revision(s) (requested by maxv in ticket #1171):
	sys/fs/msdosfs/msdosfs_vfsops.c: revision 1.110 via patch
- From me, FreeBSD, OpenBSD and the FAT specification. Ok christos@
  - Perform sanity checks not just for GEMDOSFS, but for all FAT devices. This
    also fixes a division-by-zero bug that could crash the system.
  - Define GEMDOSFS_BSIZE instead of a hard-coded 512 value, and remove 'bsize'.
  - Rename 'tmp' to 'BlkPerSec'.
- Remove 'secsize==0' and added 'secsize<DEV_BSIZE'

Revision 1.93.6.3 / (download) - annotate - [select for diffs], Sun Nov 9 06:37:00 2014 UTC (5 weeks, 4 days ago) by msaitoh
Branch: netbsd-6
Changes since 1.93.6.2: +50 -41 lines
Diff to previous 1.93.6.2 (colored) to branchpoint 1.93 (colored) next main 1.94 (colored)

Pull up following revision(s) (requested by maxv in ticket #1171):
	sys/fs/msdosfs/msdosfs_vfsops.c: revision 1.110 via patch
- From me, FreeBSD, OpenBSD and the FAT specification. Ok christos@
  - Perform sanity checks not just for GEMDOSFS, but for all FAT devices. This
    also fixes a division-by-zero bug that could crash the system.
  - Define GEMDOSFS_BSIZE instead of a hard-coded 512 value, and remove 'bsize'.
  - Rename 'tmp' to 'BlkPerSec'.
- Remove 'secsize==0' and added 'secsize<DEV_BSIZE'

Revision 1.96.2.3 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:26 2014 UTC (3 months, 4 weeks ago) by tls
Branch: tls-maxphys
Changes since 1.96.2.2: +162 -157 lines
Diff to previous 1.96.2.2 (colored) next main 1.97 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.106.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:55:53 2014 UTC (4 months, 1 week ago) by tls
Branch: tls-earlyentropy
Changes since 1.106: +132 -105 lines
Diff to previous 1.106 (colored) next main 1.107 (colored)

Rebase.

Revision 1.115 / (download) - annotate - [select for diffs], Fri Jul 18 17:24:34 2014 UTC (5 months ago) by maxv
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, nick-nhusb-base, nick-nhusb, netbsd-7-base, netbsd-7, HEAD
Changes since 1.114: +33 -38 lines
Diff to previous 1.114 (colored)

Make DPRINTF more understandable, and replace my previous #ifdef DIAGNOSTIC...

Revision 1.114 / (download) - annotate - [select for diffs], Wed Jul 16 20:09:00 2014 UTC (5 months ago) by maxv
Branch: MAIN
Changes since 1.113: +10 -2 lines
Diff to previous 1.113 (colored)

Limit the minimum size of a disk sector to 512 bytes, to prevent memory
overflow on extremely low secsize. This normally conforms to the old standard
(for which there doesn't seem to be a clear spec). Since 2011, IDEMA's Advanced
Format standardizes it to 4k, so this change won't cause any trouble on
new devices.

Put the printf under DIAGNOSTIC temporarily to see if someone complains.

after a quick discussion on tech-kern

Revision 1.113 / (download) - annotate - [select for diffs], Tue Jul 15 11:43:54 2014 UTC (5 months ago) by christos
Branch: MAIN
Changes since 1.112: +4 -3 lines
Diff to previous 1.112 (colored)

Correct the bread size of struct fsinfo from Gerald Lee at DELL dot com

Revision 1.112 / (download) - annotate - [select for diffs], Wed Jul 9 09:00:18 2014 UTC (5 months, 1 week ago) by maxv
Branch: MAIN
Changes since 1.111: +12 -14 lines
Diff to previous 1.111 (colored)

Minor changes:
 - malloc()+memset() -> malloc(|M_ZERO)
 - rename 'vers' to 'FSVers'
 - declare 'ExtFlags' instead of calling getushort() two times

Revision 1.111 / (download) - annotate - [select for diffs], Wed Jul 9 08:43:54 2014 UTC (5 months, 1 week ago) by maxv
Branch: MAIN
Changes since 1.110: +2 -4 lines
Diff to previous 1.110 (colored)

Remove ROOTNAME (unused).

Revision 1.110 / (download) - annotate - [select for diffs], Tue Jul 8 19:34:47 2014 UTC (5 months, 1 week ago) by maxv
Branch: MAIN
Changes since 1.109: +44 -40 lines
Diff to previous 1.109 (colored)

- Perform sanity checks not just for GEMDOSFS, but for all FAT devices. This
  also fixes a division-by-zero bug that could crash the system.
- Define GEMDOSFS_BSIZE instead of a hard-coded 512 value, and remove 'bsize'.
- Rename 'tmp' to 'BlkPerSec'.

From me, FreeBSD, OpenBSD and the FAT specification.

ok christos@

Revision 1.109 / (download) - annotate - [select for diffs], Tue Jul 8 09:21:52 2014 UTC (5 months, 1 week ago) by hannken
Branch: MAIN
Changes since 1.108: +21 -14 lines
Diff to previous 1.108 (colored)

Change msdosfs from hashlist to vcache:
- Use (dir_cluster, dir_offset, dir_generation) as key, where
  dir_generation is non-zero and unique for unlinked but open nodes.
- Change deget() to return a vnode as it is unsafe to return a
  referenced but unlocked denode.

Revision 1.108 / (download) - annotate - [select for diffs], Sat May 24 16:34:03 2014 UTC (6 months, 3 weeks ago) by christos
Branch: MAIN
Changes since 1.107: +27 -13 lines
Diff to previous 1.107 (colored)

Introduce a selector function to the vfs vnode iterator so that we don't
need to vget() vnodes that we are not interested at, and optimize locking
a bit. Iterator changes reviewed by Hannken (thanks), the rest of the bugs
are mine.

Revision 1.92.2.4 / (download) - annotate - [select for diffs], Thu May 22 11:41:00 2014 UTC (6 months, 3 weeks ago) by yamt
Branch: yamt-pagecache
Changes since 1.92.2.3: +52 -60 lines
Diff to previous 1.92.2.3 (colored) to branchpoint 1.92 (colored) next main 1.93 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.101.4.1 / (download) - annotate - [select for diffs], Sun May 18 17:46:05 2014 UTC (7 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.101: +40 -60 lines
Diff to previous 1.101 (colored) next main 1.102 (colored)

sync with head

Revision 1.68.6.2.10.1 / (download) - annotate - [select for diffs], Mon Apr 28 16:05:35 2014 UTC (7 months, 3 weeks ago) by sborrill
Branch: netbsd-5-2
CVS Tags: netbsd-5-2-3-RELEASE
Changes since 1.68.6.2: +4 -2 lines
Diff to previous 1.68.6.2 (colored) next main 1.68.6.3 (colored)

Pull up the following revisions(s) (requested by maxv in ticket #1901):
	sys/kern/vfs_syscalls.c:	revision 1.478, 1.480 via patch
	sys/coda/coda_vfsops.c:		revision 1.81
	sys/fs/adosfs/advfsops.c:	revision 1.70
	sys/fs/cd9660/cd9660_vfsops.c:	revision 1.84
	sys/fs/efs/efs_vfsops.c:	revision 1.25
	sys/fs/filecorefs/filecore_vfsops.c:	revision 1.76
	sys/fs/hfs/hfs_vfsops.c:	revision 1.31
	sys/fs/msdosfs/msdosfs_vfsops.c:	revision 1.107
	sys/fs/ntfs/ntfs_vfsops.c:	revision 1.94
	sys/fs/ptyfs/ptyfs_vfsops.c:	revision 1.50 via patch
	sys/fs/puffs/puffs_vfsops.c:	revision 1.110 via patch
	sys/fs/smbfs/smbfs_vfsops.c:	revision 1.100
	sys/fs/sysvbfs/sysvbfs_vfsops.c:	revision 1.43
	sys/fs/tmpfs/tmpfs_vfsops.c:	revision 1.59 via patch
	sys/fs/udf/udf_vfsops.c:	revision 1.67
	sys/fs/union/union_vfsops.c:	revision 1.72
	sys/fs/unionfs/unionfs_vfsops.c:	revision 1.13
	sys/kern/vfs_syscalls.c:	revision 1.479
	sys/miscfs/nullfs/null_vfsops.c:	revision 1.88 via patch
	sys/miscfs/overlay/overlay_vfsops.c:	revision 1.61
	sys/miscfs/procfs/procfs_vfsops.c:	revision 1.91
	sys/miscfs/umapfs/umap_vfsops.c:	revision 1.92
	sys/nfs/nfs_vfsops.c:		revision 1.227
	sys/ufs/ext2fs/ext2fs_vfsops.c:	revision 1.180
	sys/ufs/ffs/ffs_vfsops.c:	revision 1.297
	sys/ufs/lfs/lfs_vfsops.c:	revision 1.321
	sys/ufs/mfs/mfs_vfsops.c:	revision 1.107

Due to missing checks in the mount syscall, and a wrong assumption on the
file systems side, the kernel could allocate an unbounded or zero-sized
memory buffer, and could dereference a NULL pointer when particular
arguments are given by a user.

Revision 1.68.6.2.6.1 / (download) - annotate - [select for diffs], Mon Apr 28 16:03:15 2014 UTC (7 months, 3 weeks ago) by sborrill
Branch: netbsd-5-1
CVS Tags: netbsd-5-1-5-RELEASE
Changes since 1.68.6.2: +4 -2 lines
Diff to previous 1.68.6.2 (colored) next main 1.68.6.3 (colored)

Pull up the following revisions(s) (requested by maxv in ticket #1901):
	sys/kern/vfs_syscalls.c:	revision 1.478, 1.480 via patch
	sys/coda/coda_vfsops.c:		revision 1.81
	sys/fs/adosfs/advfsops.c:	revision 1.70
	sys/fs/cd9660/cd9660_vfsops.c:	revision 1.84
	sys/fs/efs/efs_vfsops.c:	revision 1.25
	sys/fs/filecorefs/filecore_vfsops.c:	revision 1.76
	sys/fs/hfs/hfs_vfsops.c:	revision 1.31
	sys/fs/msdosfs/msdosfs_vfsops.c:	revision 1.107
	sys/fs/ntfs/ntfs_vfsops.c:	revision 1.94
	sys/fs/ptyfs/ptyfs_vfsops.c:	revision 1.50 via patch
	sys/fs/puffs/puffs_vfsops.c:	revision 1.110 via patch
	sys/fs/smbfs/smbfs_vfsops.c:	revision 1.100
	sys/fs/sysvbfs/sysvbfs_vfsops.c:	revision 1.43
	sys/fs/tmpfs/tmpfs_vfsops.c:	revision 1.59 via patch
	sys/fs/udf/udf_vfsops.c:	revision 1.67
	sys/fs/union/union_vfsops.c:	revision 1.72
	sys/fs/unionfs/unionfs_vfsops.c:	revision 1.13
	sys/kern/vfs_syscalls.c:	revision 1.479
	sys/miscfs/nullfs/null_vfsops.c:	revision 1.88 via patch
	sys/miscfs/overlay/overlay_vfsops.c:	revision 1.61
	sys/miscfs/procfs/procfs_vfsops.c:	revision 1.91
	sys/miscfs/umapfs/umap_vfsops.c:	revision 1.92
	sys/nfs/nfs_vfsops.c:		revision 1.227
	sys/ufs/ext2fs/ext2fs_vfsops.c:	revision 1.180
	sys/ufs/ffs/ffs_vfsops.c:	revision 1.297
	sys/ufs/lfs/lfs_vfsops.c:	revision 1.321
	sys/ufs/mfs/mfs_vfsops.c:	revision 1.107

Due to missing checks in the mount syscall, and a wrong assumption on the
file systems side, the kernel could allocate an unbounded or zero-sized
memory buffer, and could dereference a NULL pointer when particular
arguments are given by a user.

Revision 1.68.6.3 / (download) - annotate - [select for diffs], Fri Apr 25 15:43:50 2014 UTC (7 months, 3 weeks ago) by sborrill
Branch: netbsd-5
Changes since 1.68.6.2: +4 -2 lines
Diff to previous 1.68.6.2 (colored) to branchpoint 1.68 (colored) next main 1.69 (colored)

Pull up the following revisions(s) (requested by maxv in ticket #1901):
	sys/kern/vfs_syscalls.c:	revision 1.478, 1.480 via patch
	sys/coda/coda_vfsops.c:		revision 1.81
	sys/fs/adosfs/advfsops.c:	revision 1.70
	sys/fs/cd9660/cd9660_vfsops.c:	revision 1.84
	sys/fs/efs/efs_vfsops.c:	revision 1.25
	sys/fs/filecorefs/filecore_vfsops.c:	revision 1.76
	sys/fs/hfs/hfs_vfsops.c:	revision 1.31
	sys/fs/msdosfs/msdosfs_vfsops.c:	revision 1.107
	sys/fs/ntfs/ntfs_vfsops.c:	revision 1.94
	sys/fs/ptyfs/ptyfs_vfsops.c:	revision 1.50 via patch
	sys/fs/puffs/puffs_vfsops.c:	revision 1.110 via patch
	sys/fs/smbfs/smbfs_vfsops.c:	revision 1.100
	sys/fs/sysvbfs/sysvbfs_vfsops.c:	revision 1.43
	sys/fs/tmpfs/tmpfs_vfsops.c:	revision 1.59 via patch
	sys/fs/udf/udf_vfsops.c:	revision 1.67
	sys/fs/union/union_vfsops.c:	revision 1.72
	sys/fs/unionfs/unionfs_vfsops.c:	revision 1.13
	sys/kern/vfs_syscalls.c:	revision 1.479
	sys/miscfs/nullfs/null_vfsops.c:	revision 1.88 via patch
	sys/miscfs/overlay/overlay_vfsops.c:	revision 1.61
	sys/miscfs/procfs/procfs_vfsops.c:	revision 1.91
	sys/miscfs/umapfs/umap_vfsops.c:	revision 1.92
	sys/nfs/nfs_vfsops.c:		revision 1.227
	sys/ufs/ext2fs/ext2fs_vfsops.c:	revision 1.180
	sys/ufs/ffs/ffs_vfsops.c:	revision 1.297
	sys/ufs/lfs/lfs_vfsops.c:	revision 1.321
	sys/ufs/mfs/mfs_vfsops.c:	revision 1.107

Due to missing checks in the mount syscall, and a wrong assumption on the
file systems side, the kernel could allocate an unbounded or zero-sized
memory buffer, and could dereference a NULL pointer when particular
arguments are given by a user.

Revision 1.93.6.1.6.1 / (download) - annotate - [select for diffs], Mon Apr 21 10:17:48 2014 UTC (7 months, 4 weeks ago) by bouyer
Branch: netbsd-6-1
CVS Tags: netbsd-6-1-5-RELEASE
Changes since 1.93.6.1: +4 -2 lines
Diff to previous 1.93.6.1 (colored)

Pull up following revision(s) (requested by maxv in ticket #1050):
	sys/ufs/chfs/chfs_vfsops.c: revision 1.11
	sys/fs/unionfs/unionfs_vfsops.c: revision 1.13
	sys/fs/nilfs/nilfs_vfsops.c: revision 1.16
	sys/ufs/mfs/mfs_vfsops.c: revision 1.107
	sys/fs/sysvbfs/sysvbfs_vfsops.c: revision 1.43
	sys/ufs/ffs/ffs_vfsops.c: revision 1.297
	sys/kern/vfs_syscalls.c: revision 1.478
	sys/kern/vfs_syscalls.c: revision 1.479
	sys/fs/puffs/puffs_vfsops.c: revision 1.110
	sys/fs/cd9660/cd9660_vfsops.c: revision 1.84
	sys/nfs/nfs_vfsops.c: revision 1.227
	sys/fs/v7fs/v7fs_vfsops.c: revision 1.10
	sys/ufs/ext2fs/ext2fs_vfsops.c: revision 1.180
	sys/miscfs/umapfs/umap_vfsops.c: revision 1.92
	sys/fs/filecorefs/filecore_vfsops.c: revision 1.76
	sys/miscfs/nullfs/null_vfsops.c: revision 1.88
	sys/fs/ptyfs/ptyfs_vfsops.c: revision 1.50
	sys/coda/coda_vfsops.c: revision 1.81
	sys/ufs/lfs/lfs_vfsops.c: revision 1.321
	sys/fs/tmpfs/tmpfs_vfsops.c: revision 1.59
	sys/fs/hfs/hfs_vfsops.c: revision 1.31
	sys/miscfs/overlay/overlay_vfsops.c: revision 1.61
	sys/fs/union/union_vfsops.c: revision 1.72
	sys/fs/ntfs/ntfs_vfsops.c: revision 1.94
	sys/kern/vfs_syscalls.c: revision 1.480
	sys/fs/efs/efs_vfsops.c: revision 1.25
	sys/kern/vfs_syscalls.c: revision 1.482
	sys/fs/msdosfs/msdosfs_vfsops.c: revision 1.107
	external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vfsops.c: revision 1.12
	sys/miscfs/procfs/procfs_vfsops.c: revision 1.91
	sys/fs/smbfs/smbfs_vfsops.c: revision 1.100
	sys/fs/adosfs/advfsops.c: revision 1.70
	sys/fs/udf/udf_vfsops.c: revision 1.67
Limit check for 'data_len'. Otherwise a (un)privileged user can easily
panic the system by passing a huge size.
ok christos@
An (un)privileged user can easily make the kernel dereference a NULL
pointer.
The kernel allows 'data' to be NULL; it's the fs's responsibility to
ensure that it isn't NULL (if the fs actually needs data).
ok christos@
Some fs's - like kernfs - set their vfs_min_mount_data to zero. Add a check
to prevent an (un)privileged user from requesting a zero-sized allocation
(and thus a panic).
This thing is totally buggy: 'data_len' is modified by the fs, so calling
kmem_free with it while its value has changed since the kmem_alloc is far
from being a good idea.
If the kernel figures out that something mismatches, it will panic
(typically with kernfs).

Revision 1.93.6.1.4.1 / (download) - annotate - [select for diffs], Mon Apr 21 10:15:37 2014 UTC (7 months, 4 weeks ago) by bouyer
Branch: netbsd-6-0
CVS Tags: netbsd-6-0-6-RELEASE
Changes since 1.93.6.1: +4 -2 lines
Diff to previous 1.93.6.1 (colored)

Pull up following revision(s) (requested by maxv in ticket #1050):
	sys/ufs/chfs/chfs_vfsops.c: revision 1.11
	sys/fs/unionfs/unionfs_vfsops.c: revision 1.13
	sys/fs/nilfs/nilfs_vfsops.c: revision 1.16
	sys/ufs/mfs/mfs_vfsops.c: revision 1.107
	sys/fs/sysvbfs/sysvbfs_vfsops.c: revision 1.43
	sys/ufs/ffs/ffs_vfsops.c: revision 1.297
	sys/kern/vfs_syscalls.c: revision 1.478
	sys/kern/vfs_syscalls.c: revision 1.479
	sys/fs/puffs/puffs_vfsops.c: revision 1.110
	sys/fs/cd9660/cd9660_vfsops.c: revision 1.84
	sys/nfs/nfs_vfsops.c: revision 1.227
	sys/fs/v7fs/v7fs_vfsops.c: revision 1.10
	sys/ufs/ext2fs/ext2fs_vfsops.c: revision 1.180
	sys/miscfs/umapfs/umap_vfsops.c: revision 1.92
	sys/fs/filecorefs/filecore_vfsops.c: revision 1.76
	sys/miscfs/nullfs/null_vfsops.c: revision 1.88
	sys/fs/ptyfs/ptyfs_vfsops.c: revision 1.50
	sys/coda/coda_vfsops.c: revision 1.81
	sys/ufs/lfs/lfs_vfsops.c: revision 1.321
	sys/fs/tmpfs/tmpfs_vfsops.c: revision 1.59
	sys/fs/hfs/hfs_vfsops.c: revision 1.31
	sys/miscfs/overlay/overlay_vfsops.c: revision 1.61
	sys/fs/union/union_vfsops.c: revision 1.72
	sys/fs/ntfs/ntfs_vfsops.c: revision 1.94
	sys/kern/vfs_syscalls.c: revision 1.480
	sys/fs/efs/efs_vfsops.c: revision 1.25
	sys/kern/vfs_syscalls.c: revision 1.482
	sys/fs/msdosfs/msdosfs_vfsops.c: revision 1.107
	external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vfsops.c: revision 1.12
	sys/miscfs/procfs/procfs_vfsops.c: revision 1.91
	sys/fs/smbfs/smbfs_vfsops.c: revision 1.100
	sys/fs/adosfs/advfsops.c: revision 1.70
	sys/fs/udf/udf_vfsops.c: revision 1.67
Limit check for 'data_len'. Otherwise a (un)privileged user can easily
panic the system by passing a huge size.
ok christos@
An (un)privileged user can easily make the kernel dereference a NULL
pointer.
The kernel allows 'data' to be NULL; it's the fs's responsibility to
ensure that it isn't NULL (if the fs actually needs data).
ok christos@
Some fs's - like kernfs - set their vfs_min_mount_data to zero. Add a check
to prevent an (un)privileged user from requesting a zero-sized allocation
(and thus a panic).
This thing is totally buggy: 'data_len' is modified by the fs, so calling
kmem_free with it while its value has changed since the kmem_alloc is far
from being a good idea.
If the kernel figures out that something mismatches, it will panic
(typically with kernfs).

Revision 1.93.6.2 / (download) - annotate - [select for diffs], Mon Apr 21 10:14:19 2014 UTC (7 months, 4 weeks ago) by bouyer
Branch: netbsd-6
Changes since 1.93.6.1: +4 -2 lines
Diff to previous 1.93.6.1 (colored) to branchpoint 1.93 (colored)

Pull up following revision(s) (requested by maxv in ticket #1050):
	sys/ufs/chfs/chfs_vfsops.c: revision 1.11
	sys/fs/unionfs/unionfs_vfsops.c: revision 1.13
	sys/fs/nilfs/nilfs_vfsops.c: revision 1.16
	sys/ufs/mfs/mfs_vfsops.c: revision 1.107
	sys/fs/sysvbfs/sysvbfs_vfsops.c: revision 1.43
	sys/ufs/ffs/ffs_vfsops.c: revision 1.297
	sys/kern/vfs_syscalls.c: revision 1.478
	sys/kern/vfs_syscalls.c: revision 1.479
	sys/fs/puffs/puffs_vfsops.c: revision 1.110
	sys/fs/cd9660/cd9660_vfsops.c: revision 1.84
	sys/nfs/nfs_vfsops.c: revision 1.227
	sys/fs/v7fs/v7fs_vfsops.c: revision 1.10
	sys/ufs/ext2fs/ext2fs_vfsops.c: revision 1.180
	sys/miscfs/umapfs/umap_vfsops.c: revision 1.92
	sys/fs/filecorefs/filecore_vfsops.c: revision 1.76
	sys/miscfs/nullfs/null_vfsops.c: revision 1.88
	sys/fs/ptyfs/ptyfs_vfsops.c: revision 1.50
	sys/coda/coda_vfsops.c: revision 1.81
	sys/ufs/lfs/lfs_vfsops.c: revision 1.321
	sys/fs/tmpfs/tmpfs_vfsops.c: revision 1.59
	sys/fs/hfs/hfs_vfsops.c: revision 1.31
	sys/miscfs/overlay/overlay_vfsops.c: revision 1.61
	sys/fs/union/union_vfsops.c: revision 1.72
	sys/fs/ntfs/ntfs_vfsops.c: revision 1.94
	sys/kern/vfs_syscalls.c: revision 1.480
	sys/fs/efs/efs_vfsops.c: revision 1.25
	sys/kern/vfs_syscalls.c: revision 1.482
	sys/fs/msdosfs/msdosfs_vfsops.c: revision 1.107
	external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vfsops.c: revision 1.12
	sys/miscfs/procfs/procfs_vfsops.c: revision 1.91
	sys/fs/smbfs/smbfs_vfsops.c: revision 1.100
	sys/fs/adosfs/advfsops.c: revision 1.70
	sys/fs/udf/udf_vfsops.c: revision 1.67
Limit check for 'data_len'. Otherwise a (un)privileged user can easily
panic the system by passing a huge size.
ok christos@
An (un)privileged user can easily make the kernel dereference a NULL
pointer.
The kernel allows 'data' to be NULL; it's the fs's responsibility to
ensure that it isn't NULL (if the fs actually needs data).
ok christos@
Some fs's - like kernfs - set their vfs_min_mount_data to zero. Add a check
to prevent an (un)privileged user from requesting a zero-sized allocation
(and thus a panic).
This thing is totally buggy: 'data_len' is modified by the fs, so calling
kmem_free with it while its value has changed since the kmem_alloc is far
from being a good idea.
If the kernel figures out that something mismatches, it will panic
(typically with kernfs).

Revision 1.107 / (download) - annotate - [select for diffs], Wed Apr 16 18:55:18 2014 UTC (8 months ago) by maxv
Branch: MAIN
CVS Tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base
Changes since 1.106: +4 -2 lines
Diff to previous 1.106 (colored)

An (un)privileged user can easily make the kernel dereference a NULL
pointer.

The kernel allows 'data' to be NULL; it's the fs's responsibility to
ensure that it isn't NULL (if the fs actually needs data).

ok christos@

Revision 1.106 / (download) - annotate - [select for diffs], Sun Mar 23 15:21:15 2014 UTC (8 months, 3 weeks ago) by hannken
Branch: MAIN
CVS Tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15
Branch point for: tls-earlyentropy
Changes since 1.105: +25 -27 lines
Diff to previous 1.105 (colored)

Change all vfsops to use C99 designated initializers.

No functional changes intended.

Revision 1.105 / (download) - annotate - [select for diffs], Mon Mar 17 09:35:59 2014 UTC (9 months ago) by hannken
Branch: MAIN
CVS Tags: riastradh-drm2-base3
Changes since 1.104: +12 -25 lines
Diff to previous 1.104 (colored)

Change msdosfs_sync() to use vfs_vnode_iterator.

Revision 1.104 / (download) - annotate - [select for diffs], Tue Feb 25 18:30:10 2014 UTC (9 months, 3 weeks ago) by pooka
Branch: MAIN
Changes since 1.103: +2 -7 lines
Diff to previous 1.103 (colored)

Ensure that the top level sysctl nodes (kern, vfs, net, ...) exist before
the sysctl link sets are processed, and remove redundancy.

Shaves >13kB off of an amd64 GENERIC, not to mention >1k duplicate
lines of code.

Revision 1.103 / (download) - annotate - [select for diffs], Sat Nov 23 13:35:36 2013 UTC (12 months, 3 weeks ago) by christos
Branch: MAIN
Changes since 1.102: +3 -5 lines
Diff to previous 1.102 (colored)

change the mountlist CIRCLEQ into a TAILQ

Revision 1.102 / (download) - annotate - [select for diffs], Mon Sep 30 18:57:59 2013 UTC (14 months, 2 weeks ago) by hannken
Branch: MAIN
Changes since 1.101: +4 -4 lines
Diff to previous 1.101 (colored)

Replace macro v_specmountpoint with two functions spec_node_getmountedfs()
and spec_node_setmountedfs() to manage the file system mounted on a device.
Assert the device is a block device.

Welcome to 6.99.24

Discussed on tech-kern@ some time ago.

Reviewed by: David Holland <dholland@netbsd.org>

Revision 1.96.2.2 / (download) - annotate - [select for diffs], Sun Jun 23 06:18:27 2013 UTC (17 months, 3 weeks ago) by tls
Branch: tls-maxphys
Changes since 1.96.2.1: +14 -2 lines
Diff to previous 1.96.2.1 (colored)

resync from head

Revision 1.101 / (download) - annotate - [select for diffs], Mon Apr 15 14:10:59 2013 UTC (20 months ago) by jakllsch
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900
Branch point for: rmind-smpnet
Changes since 1.100: +14 -2 lines
Diff to previous 1.100 (colored)

Don't attempt to mount file system with clusters larger than MAXBSIZE.

Revision 1.92.2.3 / (download) - annotate - [select for diffs], Wed Jan 16 05:33:39 2013 UTC (23 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.92.2.2: +15 -14 lines
Diff to previous 1.92.2.2 (colored) to branchpoint 1.92 (colored)

sync with (a bit old) head

Revision 1.96.2.1 / (download) - annotate - [select for diffs], Tue Nov 20 03:02:40 2012 UTC (2 years ago) by tls
Branch: tls-maxphys
Changes since 1.96: +16 -15 lines
Diff to previous 1.96 (colored)

Resync to 2012-11-19 00:00:00 UTC

Revision 1.100 / (download) - annotate - [select for diffs], Sun Nov 4 17:57:59 2012 UTC (2 years, 1 month ago) by jakllsch
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, agc-symver-base, agc-symver
Changes since 1.99: +13 -13 lines
Diff to previous 1.99 (colored)

Stylistic changes in comments/strings:
"FAT" and "fat" are different things, use the appropriate case.
"GEMDOS" is all caps.

Revision 1.99 / (download) - annotate - [select for diffs], Sun Nov 4 17:18:56 2012 UTC (2 years, 1 month ago) by jakllsch
Branch: MAIN
Changes since 1.98: +4 -3 lines
Diff to previous 1.98 (colored)

Check that the FSInfo block's next free cluster suggestion is actually
a cluster within the bounds of the volume too.

Revision 1.98 / (download) - annotate - [select for diffs], Sun Nov 4 17:16:37 2012 UTC (2 years, 1 month ago) by jakllsch
Branch: MAIN
Changes since 1.97: +3 -3 lines
Diff to previous 1.97 (colored)

((u_long)-1) will not always be 0xffffffff, which is what we actually
want to test against to determine if the FSInfo block's next free
cluster suggestion is valid

Revision 1.92.2.2 / (download) - annotate - [select for diffs], Tue Oct 30 17:22:23 2012 UTC (2 years, 1 month ago) by yamt
Branch: yamt-pagecache
Changes since 1.92.2.1: +3 -3 lines
Diff to previous 1.92.2.1 (colored) to branchpoint 1.92 (colored)

sync with head

Revision 1.97 / (download) - annotate - [select for diffs], Wed Oct 3 23:32:43 2012 UTC (2 years, 2 months ago) by jakllsch
Branch: MAIN
CVS Tags: yamt-pagecache-base6
Changes since 1.96: +3 -3 lines
Diff to previous 1.96 (colored)

We don't actually want to round the number of elements in the bitmap
down.  Fixes a self-inflicted buffer overrun.

(This was detected by chance that the top of the bitmap coincided with
a page boundary.)

Revision 1.96 / (download) - annotate - [select for diffs], Sat Jul 7 16:18:50 2012 UTC (2 years, 5 months ago) by tsutsui
Branch: MAIN
Branch point for: tls-maxphys
Changes since 1.95: +3 -3 lines
Diff to previous 1.95 (colored)

Revert rev 1.95 since getdisksize() no longer returns secsize=0.

Revision 1.93.6.1 / (download) - annotate - [select for diffs], Thu Jul 5 17:36:31 2012 UTC (2 years, 5 months ago) by riz
Branch: netbsd-6
CVS Tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Branch point for: netbsd-6-1, netbsd-6-0
Changes since 1.93: +3 -3 lines
Diff to previous 1.93 (colored)

Pull up following revision(s) (requested by tsutsui in ticket #395):
	sys/fs/msdosfs/msdosfs_vfsops.c: revision 1.95
	sys/arch/atari/atari/autoconf.c: revision 1.62
	sys/dev/md.c: revision 1.67
Add a dirty hack for atari's ancient installation ramdisk:
 Forcibly configure md0, md1, and md2 devices before setroot()
 for atari's traditional "auto-load from floppy on open" md_root device
 which loads installation ramdisk image from floppy.
 md(4) has been changed dynamically configured at first open after 5.0
 and md devices won't appear in "root device:" prompt without this hack.
Tested on TT030.
Should be pulled up to netbsd-6.
Make sure that disklabel of md(4) device is initialized
in the case where it's configured in MD md_open_hook().
Without this, msdosfs_mountfs() (which is called from msdosfs_mountroot())
will be called with uninitialized disklabel (d_secsize == 0) and
it gets "panic: buf mem pool index 23" later on atari.
This is because getdisksize() doesn't check returned d_secsize value
and msdosfs_mountfs() blindly calls bread(9) with size==0 in that case.
Should be pulled up to netbsd-6 (at least for atari).
Add a sanity check if secsize returned from getdisksize() isn't bogus.
This prevent possible panic "panic: buf mem pool index 23" later in
vfs_bio.c:buf_mempoolidx().
(I'm not sure if it's okay for getdisksize() to assume that
 partinfo taken from DIOCGPART is properly initialized
 on all disk(9) devices or not)
See also:
http://mail-index.NetBSD.org/source-changes/2012/06/30/msg035298.html

Revision 1.95 / (download) - annotate - [select for diffs], Sat Jun 30 11:01:41 2012 UTC (2 years, 5 months ago) by tsutsui
Branch: MAIN
Changes since 1.94: +3 -3 lines
Diff to previous 1.94 (colored)

Add a sanity check if secsize returned from getdisksize() isn't bogus.
This prevent possible panic "panic: buf mem pool index 23" later in
vfs_bio.c:buf_mempoolidx().
(I'm not sure if it's okay for getdisksize() to assume that
 partinfo taken from DIOCGPART is properly initialized
 on all disk(9) devices or not)

See also:
http://mail-index.NetBSD.org/source-changes/2012/06/30/msg035298.html

Revision 1.92.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:18 2012 UTC (2 years, 8 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.92: +11 -7 lines
Diff to previous 1.92 (colored)

sync with head

Revision 1.93.4.1 / (download) - annotate - [select for diffs], Thu Apr 5 21:33:36 2012 UTC (2 years, 8 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.93: +9 -7 lines
Diff to previous 1.93 (colored) next main 1.94 (colored)

sync to latest -current.

Revision 1.94 / (download) - annotate - [select for diffs], Tue Mar 13 18:40:37 2012 UTC (2 years, 9 months ago) by elad
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base10
Changes since 1.93: +9 -7 lines
Diff to previous 1.93 (colored)

Replace the remaining KAUTH_GENERIC_ISSUSER authorization calls with
something meaningful. All relevant documentation has been updated or
written.

Most of these changes were brought up in the following messages:

    http://mail-index.netbsd.org/tech-kern/2012/01/18/msg012490.html
    http://mail-index.netbsd.org/tech-kern/2012/01/19/msg012502.html
    http://mail-index.netbsd.org/tech-kern/2012/02/17/msg012728.html

Thanks to christos, manu, njoly, and jmmv for input.

Huge thanks to pgoyette for spinning these changes through some build
cycles and ATF.

Revision 1.93 / (download) - annotate - [select for diffs], Mon Nov 14 18:35:13 2011 UTC (3 years, 1 month ago) by hannken
Branch: MAIN
CVS Tags: netbsd-6-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: netbsd-6, jmcneill-usbmp
Changes since 1.92: +4 -2 lines
Diff to previous 1.92 (colored)

VOP_OPEN() needs a locked vnode.  All these copy-and-pasted xxxfs_mount()
implementations need more review.

Revision 1.92 / (download) - annotate - [select for diffs], Fri Oct 7 09:35:04 2011 UTC (3 years, 2 months ago) by hannken
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base
Branch point for: yamt-pagecache
Changes since 1.91: +3 -4 lines
Diff to previous 1.91 (colored)

As vnalloc() always allocates with PR_WAITOK there is no longer the need
to test its result for NULL.

Revision 1.90.2.1 / (download) - annotate - [select for diffs], Thu Jun 23 14:20:14 2011 UTC (3 years, 5 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.90: +4 -4 lines
Diff to previous 1.90 (colored) next main 1.91 (colored)

Catchup with rmind-uvmplock merge.

Revision 1.91 / (download) - annotate - [select for diffs], Sun Jun 12 03:35:53 2011 UTC (3 years, 6 months ago) by rmind
Branch: MAIN
Changes since 1.90: +4 -4 lines
Diff to previous 1.90 (colored)

Welcome to 5.99.53!  Merge rmind-uvmplock branch:

- Reorganize locking in UVM and provide extra serialisation for pmap(9).
  New lock order: [vmpage-owner-lock] -> pmap-lock.

- Simplify locking in some pmap(9) modules by removing P->V locking.

- Use lock object on vmobjlock (and thus vnode_t::v_interlock) to share
  the locks amongst UVM objects where necessary (tmpfs, layerfs, unionfs).

- Rewrite and optimise x86 TLB shootdown code, make it simpler and cleaner.
  Add TLBSTATS option for x86 to collect statistics about TLB shootdowns.

- Unify /dev/mem et al in MI code and provide required locking (removes
  kernel-lock on some ports).  Also, avoid cache-aliasing issues.

Thanks to Andrew Doran and Joerg Sonnenberger, as their initial patches
formed the core changes of this branch.

Revision 1.89.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:09:22 2011 UTC (3 years, 6 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.89: +19 -6 lines
Diff to previous 1.89 (colored) next main 1.90 (colored)

Sync with HEAD.

Revision 1.79.4.5 / (download) - annotate - [select for diffs], Thu Apr 21 01:42:06 2011 UTC (3 years, 7 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.79.4.4: +17 -4 lines
Diff to previous 1.79.4.4 (colored) to branchpoint 1.79 (colored) next main 1.80 (colored)

sync with head

Revision 1.90 / (download) - annotate - [select for diffs], Mon Apr 4 19:16:58 2011 UTC (3 years, 8 months ago) by hannken
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base
Branch point for: cherry-xenmp
Changes since 1.89: +19 -6 lines
Diff to previous 1.89 (colored)

Msdosfs on-disk meta data is not sufficient to create or validate file handles.

Maintain a tree of file handles, create nodes from msdosfs_vptofh() and keep
them until either the file gets unlinked or the file system gets unmounted.

Fixes the msdosfs part of PR #43745 (fhopen of an unlinked file causes problems
on multiple file systems)

Revision 1.79.4.4 / (download) - annotate - [select for diffs], Sat Mar 5 20:55:04 2011 UTC (3 years, 9 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.79.4.3: +6 -19 lines
Diff to previous 1.79.4.3 (colored) to branchpoint 1.79 (colored)

sync with head

Revision 1.89 / (download) - annotate - [select for diffs], Mon Dec 27 18:49:42 2010 UTC (3 years, 11 months ago) by hannken
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231, jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: jruoho-x86intr
Changes since 1.88: +5 -18 lines
Diff to previous 1.88 (colored)

Extend the range of fstrans transactions to a sequence of vnode operations
on a locked vnode.  This leaves a suspended file system and therefore a
snapshot with either all or no operations of such a sequence done.

Revision 1.88 / (download) - annotate - [select for diffs], Tue Dec 14 17:17:02 2010 UTC (4 years ago) by hannken
Branch: MAIN
Changes since 1.87: +3 -3 lines
Diff to previous 1.87 (colored)

msdosfs_sync: check for dead vnode (denode == NULL) before testing denode flags.

Revision 1.79.2.2 / (download) - annotate - [select for diffs], Tue Aug 17 06:47:17 2010 UTC (4 years, 4 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.79.2.1: +5 -5 lines
Diff to previous 1.79.2.1 (colored) to branchpoint 1.79 (colored) next main 1.80 (colored)

Sync with HEAD.

Revision 1.61.10.5 / (download) - annotate - [select for diffs], Wed Aug 11 22:54:33 2010 UTC (4 years, 4 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.61.10.4: +71 -15 lines
Diff to previous 1.61.10.4 (colored) to branchpoint 1.61 (colored) next main 1.62 (colored)

sync with head.

Revision 1.87 / (download) - annotate - [select for diffs], Wed Jul 21 17:52:10 2010 UTC (4 years, 4 months ago) by hannken
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2
Changes since 1.86: +4 -4 lines
Diff to previous 1.86 (colored)

Make holding v_interlock mandatory for callers of vget().

Announced some time ago on tech-kern.

Revision 1.79.4.3 / (download) - annotate - [select for diffs], Sat Jul 3 01:19:50 2010 UTC (4 years, 5 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.79.4.2: +5 -5 lines
Diff to previous 1.79.4.2 (colored) to branchpoint 1.79 (colored)

sync with head

Revision 1.86 / (download) - annotate - [select for diffs], Thu Jun 24 13:03:09 2010 UTC (4 years, 5 months ago) by hannken
Branch: MAIN
Changes since 1.85: +5 -5 lines
Diff to previous 1.85 (colored)

Clean up vnode lock operations pass 2:

VOP_UNLOCK(vp, flags) -> VOP_UNLOCK(vp): Remove the unneeded flags argument.

Welcome to 5.99.32.

Discussed on tech-kern.

Revision 1.79.4.2 / (download) - annotate - [select for diffs], Sun May 30 05:17:55 2010 UTC (4 years, 6 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.79.4.1: +68 -12 lines
Diff to previous 1.79.4.1 (colored) to branchpoint 1.79 (colored)

sync with head

Revision 1.79.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:44:06 2010 UTC (4 years, 7 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.79: +68 -12 lines
Diff to previous 1.79 (colored)

Sync with HEAD.

Revision 1.85 / (download) - annotate - [select for diffs], Tue Apr 13 10:12:43 2010 UTC (4 years, 8 months ago) by pooka
Branch: MAIN
CVS Tags: uebayasi-xip-base1
Changes since 1.84: +5 -2 lines
Diff to previous 1.84 (colored)

polish previous

Revision 1.84 / (download) - annotate - [select for diffs], Tue Apr 13 10:11:08 2010 UTC (4 years, 8 months ago) by pooka
Branch: MAIN
Changes since 1.83: +8 -4 lines
Diff to previous 1.83 (colored)

If getdisksize() fails (happens e.g. on fss block devices), don't
give up if we don't really need the information provided by it.

Revision 1.83 / (download) - annotate - [select for diffs], Sun Apr 11 10:26:25 2010 UTC (4 years, 8 months ago) by mlelstv
Branch: MAIN
Changes since 1.82: +3 -3 lines
Diff to previous 1.82 (colored)

The *_modcmd functions use the module name as prefix.

Revision 1.82 / (download) - annotate - [select for diffs], Sun Apr 11 06:36:25 2010 UTC (4 years, 8 months ago) by pooka
Branch: MAIN
Changes since 1.81: +3 -3 lines
Diff to previous 1.81 (colored)

Make module name match MOUNT_NAME.  Inspired by PR kern/43110.

Revision 1.81 / (download) - annotate - [select for diffs], Fri Apr 9 08:09:18 2010 UTC (4 years, 8 months ago) by hannken
Branch: MAIN
Changes since 1.80: +55 -6 lines
Diff to previous 1.80 (colored)

Add file system suspension support (vfs_suspend(9)) to msdosfs.

Reviewed by: Antti Kantee <pooka@netbsd.org>

Revision 1.80 / (download) - annotate - [select for diffs], Wed Apr 7 15:19:09 2010 UTC (4 years, 8 months ago) by pooka
Branch: MAIN
Changes since 1.79: +5 -5 lines
Diff to previous 1.79 (colored)

* Don't care about VOP_CLOSE() error in unmount.  In the extremely
  unlike event it did fail, the kernel would double lutz to doom
  (in failure devvp now remains unmountable until reboot.  fans
  of complicated & untested error branches may attempt to gunk this
  up.  i'm not one of them).
* cosmetic surgery: cut extra ;

Revision 1.79.4.1 / (download) - annotate - [select for diffs], Tue Mar 16 15:38:06 2010 UTC (4 years, 9 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.79: +4 -4 lines
Diff to previous 1.79 (colored)

Change struct uvm_object::vmobjlock to be dynamically allocated with
mutex_obj_alloc().  It allows us to share the locks among UVM objects.

Revision 1.61.10.4 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:13 2010 UTC (4 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.61.10.3: +12 -48 lines
Diff to previous 1.61.10.3 (colored) to branchpoint 1.61 (colored)

sync with head

Revision 1.79 / (download) - annotate - [select for diffs], Sun Jan 31 10:30:40 2010 UTC (4 years, 10 months ago) by mlelstv
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, uebayasi-xip-base
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.78: +10 -40 lines
Diff to previous 1.78 (colored)

Replace individual queries for partition information with
new helper function.

Revision 1.78 / (download) - annotate - [select for diffs], Tue Jan 26 21:29:48 2010 UTC (4 years, 10 months ago) by mlelstv
Branch: MAIN
Changes since 1.77: +6 -19 lines
Diff to previous 1.77 (colored)

Drop two uses of disk label data.

msdosfs and cd9660 are the only filesystems that verify the filesystem
type in the label. This is the wrong place, sanity checks should only
rely on the inner structure of the filesystem (like signatures or
magic numbers).

msdosfs also used the device type information from the label to
deduce a filesystem parameter heuristically for the gemdos variant.
If there is no information inside the filesystem data itself, this
should be an explicit mount option.

Revision 1.77 / (download) - annotate - [select for diffs], Mon Jan 25 15:30:44 2010 UTC (4 years, 10 months ago) by mlelstv
Branch: MAIN
Changes since 1.76: +9 -2 lines
Diff to previous 1.76 (colored)

Fetch sector size also from wedges.

Revision 1.71.2.2 / (download) - annotate - [select for diffs], Thu Jul 23 23:32:32 2009 UTC (5 years, 4 months ago) by jym
Branch: jym-xensuspend
Changes since 1.71.2.1: +5 -6 lines
Diff to previous 1.71.2.1 (colored) to branchpoint 1.71 (colored) next main 1.72 (colored)

Sync with HEAD.

Revision 1.61.10.3 / (download) - annotate - [select for diffs], Sat Jul 18 14:53:21 2009 UTC (5 years, 5 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.61.10.2: +5 -6 lines
Diff to previous 1.61.10.2 (colored) to branchpoint 1.61 (colored)

sync with head.

Revision 1.76 / (download) - annotate - [select for diffs], Mon Jun 29 05:08:17 2009 UTC (5 years, 5 months ago) by dholland
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, matt-premerge-20091211, jymxensuspend-base, jym-xensuspend-nbase
Changes since 1.75: +5 -6 lines
Diff to previous 1.75 (colored)

Convert 67 namei call sites to use namei_simple, in these functions:

check_console, veriexecclose, veriexec_delete, veriexec_file_add,
emul_find_root, coff_load_shlib (sh3 version), coff_load_shlib,
compat_20_sys_statfs, compat_20_netbsd32_statfs,
ELFNAME2(netbsd32,probe_noteless), darwin_sys_statfs,
ibcs2_sys_statfs, ibcs2_sys_statvfs, linux_sys_uselib,
osf1_sys_statfs, sunos_sys_statfs, sunos32_sys_statfs,
ultrix_sys_statfs, do_sys_mount, fss_create_files (3 of 4),
adosfs_mount, cd9660_mount, coda_ioctl, coda_mount, ext2fs_mount,
ffs_mount, filecore_mount, hfs_mount, lfs_mount, msdosfs_mount,
ntfs_mount, sysvbfs_mount, udf_mount, union_mount, sys_chflags,
sys_lchflags, sys_chmod, sys_lchmod, sys_chown, sys_lchown,
sys___posix_chown, sys___posix_lchown, sys_link, do_sys_pstatvfs,
sys_quotactl, sys_revoke, sys_truncate, do_sys_utimes, sys_extattrctl,
sys_extattr_set_file, sys_extattr_set_link, sys_extattr_get_file,
sys_extattr_get_link, sys_extattr_delete_file,
sys_extattr_delete_link, sys_extattr_list_file, sys_extattr_list_link,
sys_setxattr, sys_lsetxattr, sys_getxattr, sys_lgetxattr,
sys_listxattr, sys_llistxattr, sys_removexattr, sys_lremovexattr

All have been scrutinized (several times, in fact) and compile-tested,
but not all have been explicitly tested in action.

XXX: While I haven't (intentionally) changed the use or nonuse of
XXX: TRYEMULROOT in any of these places, I'm not convinced all the
XXX: uses are correct; an audit might be desirable.

Revision 1.71.2.1 / (download) - annotate - [select for diffs], Wed May 13 17:21:50 2009 UTC (5 years, 7 months ago) by jym
Branch: jym-xensuspend
Changes since 1.71: +39 -59 lines
Diff to previous 1.71 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.61.10.2 / (download) - annotate - [select for diffs], Mon May 4 08:13:43 2009 UTC (5 years, 7 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.61.10.1: +79 -99 lines
Diff to previous 1.61.10.1 (colored) to branchpoint 1.61 (colored)

sync with head.

Revision 1.68.4.3 / (download) - annotate - [select for diffs], Tue Apr 28 07:36:53 2009 UTC (5 years, 7 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.68.4.2: +39 -59 lines
Diff to previous 1.68.4.2 (colored) to branchpoint 1.68 (colored) next main 1.69 (colored)

Sync with HEAD.

Revision 1.75 / (download) - annotate - [select for diffs], Sat Apr 25 21:26:20 2009 UTC (5 years, 7 months ago) by elad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, jym-xensuspend-base
Changes since 1.74: +10 -7 lines
Diff to previous 1.74 (colored)

Wrap some long lines in a comment, pointed out by ad@ - thanks!

While here, wrap two more long lines.

Revision 1.74 / (download) - annotate - [select for diffs], Sat Apr 25 18:53:44 2009 UTC (5 years, 7 months ago) by elad
Branch: MAIN
Changes since 1.73: +25 -25 lines
Diff to previous 1.73 (colored)

Add genfs_can_mount() and use it to prevent some more code duplication of
the security checks when mounting a device (VOP_ACCESS() + kauth(9) call)).

Proposed with no objections on tech-kern@:

	http://mail-index.netbsd.org/tech-kern/2009/04/20/msg004859.html

The vnode is always expected to be locked, so no locking is done outside
the file-system code.

Revision 1.73 / (download) - annotate - [select for diffs], Sun Mar 15 17:15:57 2009 UTC (5 years, 9 months ago) by cegger
Branch: MAIN
Changes since 1.72: +3 -3 lines
Diff to previous 1.72 (colored)

ansify function definitions

Revision 1.72 / (download) - annotate - [select for diffs], Sat Mar 14 15:36:21 2009 UTC (5 years, 9 months ago) by dsl
Branch: MAIN
Changes since 1.71: +10 -33 lines
Diff to previous 1.71 (colored)

Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)

Revision 1.68.4.2 / (download) - annotate - [select for diffs], Tue Mar 3 18:32:35 2009 UTC (5 years, 9 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.68.4.1: +4 -5 lines
Diff to previous 1.68.4.1 (colored) to branchpoint 1.68 (colored)

Sync with HEAD.

Revision 1.68.6.2 / (download) - annotate - [select for diffs], Sun Feb 8 19:10:44 2009 UTC (5 years, 10 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b
Branch point for: netbsd-5-2, netbsd-5-1
Changes since 1.68.6.1: +4 -5 lines
Diff to previous 1.68.6.1 (colored) to branchpoint 1.68 (colored)

Pull up following revision(s) (requested by abs in ticket #420):
	sys/fs/msdosfs/msdosfs_vfsops.c: revision 1.71
Remove additional GEMDOS only check on fstype, and update comment

Revision 1.71 / (download) - annotate - [select for diffs], Thu Feb 5 18:39:15 2009 UTC (5 years, 10 months ago) by abs
Branch: MAIN
CVS Tags: nick-hppapmap-base2
Branch point for: jym-xensuspend
Changes since 1.70: +4 -5 lines
Diff to previous 1.70 (colored)

Remove additional GEMDOS only check on fstype, and update comment

Revision 1.68.4.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:19:33 2009 UTC (5 years, 10 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.68: +6 -13 lines
Diff to previous 1.68 (colored)

Sync with HEAD.

Revision 1.61.6.3 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:16 2009 UTC (5 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.61.6.2: +4 -11 lines
Diff to previous 1.61.6.2 (colored) to branchpoint 1.61 (colored) next main 1.62 (colored)

Sync with HEAD.

Revision 1.68.6.1 / (download) - annotate - [select for diffs], Fri Jan 2 21:00:27 2009 UTC (5 years, 11 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-0-RC1
Changes since 1.68: +5 -5 lines
Diff to previous 1.68 (colored)

Pull up following revision(s) (requested by jmcneill in ticket #209):
	sys/fs/msdosfs/msdosfs_vfsops.c: revision 1.70
Remove pm_Heads check in msdosfs_mountfs; this value isn't really used,
FreeBSD and OpenBSD both removed this check years ago, and this makes an
8GB Memory Stick Pro Duo formatted with a PSP work.

Revision 1.70 / (download) - annotate - [select for diffs], Fri Dec 26 03:38:52 2008 UTC (5 years, 11 months ago) by jmcneill
Branch: MAIN
CVS Tags: mjf-devfs2-base
Changes since 1.69: +5 -5 lines
Diff to previous 1.69 (colored)

Remove pm_Heads check in msdosfs_mountfs; this value isn't really used,
FreeBSD and OpenBSD both removed this check years ago, and this makes an
8GB Memory Stick Pro Duo formatted with a PSP work.

Revision 1.69 / (download) - annotate - [select for diffs], Tue Dec 16 16:18:25 2008 UTC (6 years ago) by pooka
Branch: MAIN
Changes since 1.68: +3 -10 lines
Diff to previous 1.68 (colored)

The great QUOTA purge of '08: get rid of those #ifdef QUOTA and
#include "opt_quota.h" which do exactly nothing.  Speeds up kernel
compilation by 1.375*10^-20001 seconds.  But leave the most moxious
comment in msdosfs_vfsops untouched.

Revision 1.65.2.2 / (download) - annotate - [select for diffs], Thu Sep 18 04:36:55 2008 UTC (6 years, 3 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.65.2.1: +34 -26 lines
Diff to previous 1.65.2.1 (colored) next main 1.66 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.67.2.1 / (download) - annotate - [select for diffs], Thu Jul 3 18:38:11 2008 UTC (6 years, 5 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.67: +34 -26 lines
Diff to previous 1.67 (colored) next main 1.68 (colored)

Sync with head.

Revision 1.61.6.2 / (download) - annotate - [select for diffs], Sun Jun 29 09:33:12 2008 UTC (6 years, 5 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.61.6.1: +32 -24 lines
Diff to previous 1.61.6.1 (colored) to branchpoint 1.61 (colored)

Sync with HEAD.

Revision 1.68 / (download) - annotate - [select for diffs], Sat Jun 28 01:34:05 2008 UTC (6 years, 5 months ago) by rumble
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, simonb-wapbl-nbase, simonb-wapbl-base, netbsd-5-base, matt-mips64-base2, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, netbsd-5
Changes since 1.67: +34 -26 lines
Diff to previous 1.67 (colored)

Create sysctl entries during module initialisation and destroy them
appropriately.

Many of these file systems are now ready for modularisation.

Revision 1.65.2.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:31:47 2008 UTC (6 years, 5 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.65: +21 -5 lines
Diff to previous 1.65 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.61.6.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:05 2008 UTC (6 years, 6 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.61: +26 -9 lines
Diff to previous 1.61 (colored)

Sync with HEAD.

Revision 1.61.8.1 / (download) - annotate - [select for diffs], Sun May 18 12:35:02 2008 UTC (6 years, 7 months ago) by yamt
Branch: yamt-pf42
Changes since 1.61: +26 -9 lines
Diff to previous 1.61 (colored) next main 1.62 (colored)

sync with head.

Revision 1.67 / (download) - annotate - [select for diffs], Fri May 16 09:21:59 2008 UTC (6 years, 7 months ago) by hannken
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, hpcarm-cleanup-nbase
Branch point for: simonb-wapbl
Changes since 1.66: +4 -4 lines
Diff to previous 1.66 (colored)

Make sure all cached buffers with valid, not yet written data have been
run through copy-on-write.  Call fscow_run() with valid data where possible.

The LP_UFSCOW hack is no longer needed to protect ffs_copyonwrite() against
endless recursion.

- Add a flag B_MODIFY to bread(), breada() and breadn().  If set the caller
  intends to modify the buffer returned.

- Always run copy-on-write on buffers returned from ffs_balloc().

- Add new function ffs_getblk() that gets a buffer, assigns a new blkno,
  may clear the buffer and runs copy-on-write.  Process possible errors
  from getblk() or fscow_run().  Part of PR kern/38664.

Welcome to 4.99.63

Reviewed by: YAMAMOTO Takashi <yamt@netbsd.org>

Revision 1.61.10.1 / (download) - annotate - [select for diffs], Fri May 16 02:25:18 2008 UTC (6 years, 7 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.61: +24 -7 lines
Diff to previous 1.61 (colored)

sync with head.

Revision 1.66 / (download) - annotate - [select for diffs], Sat May 10 02:26:09 2008 UTC (6 years, 7 months ago) by rumble
Branch: MAIN
CVS Tags: yamt-nfs-mp-base2
Changes since 1.65: +19 -3 lines
Diff to previous 1.65 (colored)

Convert file systems to dynamically attach with the new module interface.
Make VFS hooks dynamic while we're here and say farewell to VFS_ATTACH and
VFS_HOOKS_ATTACH linksets.

As a consequence, most of the file systems can now be loaded as new style
modules.

Quick sanity check by ad@.

Revision 1.65 / (download) - annotate - [select for diffs], Tue May 6 18:43:44 2008 UTC (6 years, 7 months ago) by ad
Branch: MAIN
Branch point for: wrstuden-revivesa
Changes since 1.64: +4 -5 lines
Diff to previous 1.64 (colored)

PR kern/38141 lookup/vfs_busy acquire rwlock recursively

Simplify the mount locking. Remove all the crud to deal with recursion on
the mount lock, and crud to deal with unmount as another weirdo lock.

Hopefully this will once and for all fix the deadlocks with this. With this
commit there are two locks on each mount:

- krwlock_t mnt_unmounting. This is used to prevent unmount across critical
  sections like getnewvnode(). It's only ever read locked with rw_tryenter(),
  and is only ever write locked in dounmount(). A write hold can't be taken
  on this lock if the current LWP could hold a vnode lock.

- kmutex_t mnt_updating. This is taken by threads updating the mount, for
  example when going r/o -> r/w, and is only present to serialize updates.
  In order to take this lock, a read hold must first be taken on
  mnt_unmounting, and the two need to be held across the operation.

One effect of this change: previously if an unmount failed, we would make a
half hearted attempt to back out of it gracefully, but that was unlikely to
work in a lot of cases. Now while an unmount that will be aborted is in
progress, new file operations within the mount will fail instead of being
delayed. That is unlikely to be a problem though, because if the admin
requests unmount of a file system then s(he) has made a decision to deny
access to the resource.

Revision 1.64 / (download) - annotate - [select for diffs], Wed Apr 30 14:07:14 2008 UTC (6 years, 7 months ago) by ad
Branch: MAIN
Changes since 1.63: +3 -3 lines
Diff to previous 1.63 (colored)

Make various bits of debug code compile again.

Revision 1.63 / (download) - annotate - [select for diffs], Wed Apr 30 12:49:16 2008 UTC (6 years, 7 months ago) by ad
Branch: MAIN
Changes since 1.62: +8 -7 lines
Diff to previous 1.62 (colored)

PR kern/38135 vfs_busy/vfs_trybusy confusion

The previous fix worked, but it opened a window where mounts could have
disappeared from mountlist while the caller was traversing it using
vfs_trybusy(). Fix that.

Revision 1.62 / (download) - annotate - [select for diffs], Tue Apr 29 18:18:08 2008 UTC (6 years, 7 months ago) by ad
Branch: MAIN
Changes since 1.61: +3 -2 lines
Diff to previous 1.61 (colored)

PR kern/38057 ffs makes assuptions about devvp file system
PR kern/33406 softdeps get stuck in endless loop

Introduce VFS_FSYNC() and call it when syncing a block device, if it
has a mounted file system.

Revision 1.50.4.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:56 2008 UTC (6 years, 8 months ago) by matt
Branch: matt-armv6
Changes since 1.50.4.2: +8 -22 lines
Diff to previous 1.50.4.2 (colored) to branchpoint 1.50 (colored) next main 1.51 (colored)

sync with HEAD

Revision 1.53.4.3 / (download) - annotate - [select for diffs], Mon Feb 18 21:06:39 2008 UTC (6 years, 10 months ago) by mjf
Branch: mjf-devfs
Changes since 1.53.4.2: +36 -39 lines
Diff to previous 1.53.4.2 (colored) to branchpoint 1.53 (colored) next main 1.54 (colored)

Sync with HEAD.

Revision 1.24.2.8 / (download) - annotate - [select for diffs], Mon Feb 4 09:23:46 2008 UTC (6 years, 10 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.24.2.7: +8 -22 lines
Diff to previous 1.24.2.7 (colored) next main 1.25 (colored)

sync with head.

Revision 1.61 / (download) - annotate - [select for diffs], Wed Jan 30 11:47:00 2008 UTC (6 years, 10 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, ad-socklock-base1
Branch point for: yamt-pf42, yamt-nfs-mp, mjf-devfs2
Changes since 1.60: +5 -6 lines
Diff to previous 1.60 (colored)

PR kern/37706 (forced unmount of file systems is unsafe):

- Do reference counting for 'struct mount'. Each vnode associated with a
  mount takes a reference, and in turn the mount takes a reference to the
  vfsops.
- Now that mounts are reference counted, replace the overcomplicated mount
  locking inherited from 4.4BSD with a recursable rwlock.

Revision 1.60 / (download) - annotate - [select for diffs], Mon Jan 28 14:31:16 2008 UTC (6 years, 10 months ago) by dholland
Branch: MAIN
Changes since 1.59: +5 -2 lines
Diff to previous 1.59 (colored)

Fix some race conditions in rename.
Introduce a per-FS rename lock and new vfsops to manipulate it.
Get this lock while renaming. Also add another relookup() in do_sys_rename,
which is a hack to kludge around some of the worst deficiencies of
ufs_rename.
reviewed-by: pooka (and an earlier rev by ad)
posted on tech-kern with no objections.

Revision 1.59 / (download) - annotate - [select for diffs], Thu Jan 24 17:32:53 2008 UTC (6 years, 10 months ago) by ad
Branch: MAIN
Changes since 1.58: +2 -18 lines
Diff to previous 1.58 (colored)

specfs changes for PR kern/37717 (raidclose() is no longer called on
shutdown). There are still problems with device access and a PR will be
filed.

- Kill checkalias(). Allow multiple vnodes to reference a single device.

- Don't play dangerous tricks with block vnodes to ensure that only one
  vnode can describe a block device. Instead, prohibit concurrent opens of
  block devices. As a bonus remove the unreliable code that prevents
  multiple file system mounts on the same device. It's no longer needed.

- Track opens by vnode and by device. Issue cdev_close() when the last open
  goes away, instead of abusing vnode::v_usecount to tell if the device is
  open.

Revision 1.24.2.7 / (download) - annotate - [select for diffs], Mon Jan 21 09:45:47 2008 UTC (6 years, 10 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.24.2.6: +31 -20 lines
Diff to previous 1.24.2.6 (colored)

sync with head

Revision 1.50.4.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:55:44 2008 UTC (6 years, 11 months ago) by matt
Branch: matt-armv6
Changes since 1.50.4.1: +50 -51 lines
Diff to previous 1.50.4.1 (colored) to branchpoint 1.50 (colored)

sync with HEAD

Revision 1.55.4.2 / (download) - annotate - [select for diffs], Tue Jan 8 22:11:25 2008 UTC (6 years, 11 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.55.4.1: +10 -2 lines
Diff to previous 1.55.4.1 (colored) to branchpoint 1.55 (colored) next main 1.56 (colored)

Sync with HEAD

Revision 1.58 / (download) - annotate - [select for diffs], Fri Jan 4 14:58:16 2008 UTC (6 years, 11 months ago) by pooka
Branch: MAIN
CVS Tags: matt-armv6-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Changes since 1.57: +10 -2 lines
Diff to previous 1.57 (colored)

Politely refuse to mount a file system which says its FAT size is
zero - our implementation can't handle it (how sensible handling
a case like that would be is a whole other debate).

fixes panic reported by Jukka Salmi on current-users

Revision 1.57 / (download) - annotate - [select for diffs], Thu Jan 3 01:26:28 2008 UTC (6 years, 11 months ago) by pooka
Branch: MAIN
Changes since 1.56: +4 -4 lines
Diff to previous 1.56 (colored)

valloc -> vnalloc, vfree -> vnfree
Avoids collision with userland valloc(3).

no functional change
ad ok

Revision 1.55.4.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:55:30 2008 UTC (6 years, 11 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.55: +22 -19 lines
Diff to previous 1.55 (colored)

Sync with HEAD

Revision 1.56 / (download) - annotate - [select for diffs], Wed Jan 2 11:48:41 2008 UTC (6 years, 11 months ago) by ad
Branch: MAIN
Changes since 1.55: +22 -19 lines
Diff to previous 1.55 (colored)

Merge vmlocking2 to head.

Revision 1.53.4.2 / (download) - annotate - [select for diffs], Thu Dec 27 00:45:45 2007 UTC (6 years, 11 months ago) by mjf
Branch: mjf-devfs
Changes since 1.53.4.1: +3 -3 lines
Diff to previous 1.53.4.1 (colored) to branchpoint 1.53 (colored)

Sync with HEAD.

Revision 1.54.2.2 / (download) - annotate - [select for diffs], Wed Dec 26 21:39:32 2007 UTC (6 years, 11 months ago) by ad
Branch: vmlocking2
Changes since 1.54.2.1: +3 -3 lines
Diff to previous 1.54.2.1 (colored) to branchpoint 1.54 (colored) next main 1.55 (colored)

Sync with head.

Revision 1.50.2.4 / (download) - annotate - [select for diffs], Sun Dec 9 19:38:08 2007 UTC (7 years ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.50.2.3: +3 -3 lines
Diff to previous 1.50.2.3 (colored) to branchpoint 1.50 (colored) next main 1.51 (colored)

Sync with HEAD.

Revision 1.55 / (download) - annotate - [select for diffs], Sat Dec 8 19:29:43 2007 UTC (7 years ago) by pooka
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, jmcneill-pm-base, cube-autoconf-base, cube-autoconf
Branch point for: bouyer-xeni386
Changes since 1.54: +3 -3 lines
Diff to previous 1.54 (colored)

Remove cn_lwp from struct componentname.  curlwp should be used
from on.  The NDINIT() macro no longer takes the lwp parameter and
associates the credentials of the calling thread with the namei
structure.

Revision 1.53.4.1 / (download) - annotate - [select for diffs], Sat Dec 8 18:20:15 2007 UTC (7 years ago) by mjf
Branch: mjf-devfs
Changes since 1.53: +21 -33 lines
Diff to previous 1.53 (colored)

Sync with HEAD.

Revision 1.24.2.6 / (download) - annotate - [select for diffs], Fri Dec 7 17:31:58 2007 UTC (7 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.24.2.5: +21 -33 lines
Diff to previous 1.24.2.5 (colored)

sync with head

Revision 1.54.2.1 / (download) - annotate - [select for diffs], Tue Dec 4 13:03:04 2007 UTC (7 years ago) by ad
Branch: vmlocking2
Changes since 1.54: +22 -19 lines
Diff to previous 1.54 (colored)

Pull the vmlocking changes into a new branch.

Revision 1.50.2.3 / (download) - annotate - [select for diffs], Tue Nov 27 19:37:42 2007 UTC (7 years ago) by joerg
Branch: jmcneill-pm
Changes since 1.50.2.2: +21 -33 lines
Diff to previous 1.50.2.2 (colored) to branchpoint 1.50 (colored)

Sync with HEAD. amd64 Xen support needs testing.

Revision 1.54 / (download) - annotate - [select for diffs], Mon Nov 26 19:01:47 2007 UTC (7 years ago) by pooka
Branch: MAIN
CVS Tags: vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base
Branch point for: vmlocking2
Changes since 1.53: +21 -33 lines
Diff to previous 1.53 (colored)

Remove the "struct lwp *" argument from all VFS and VOP interfaces.
The general trend is to remove it from all kernel interfaces and
this is a start.  In case the calling lwp is desired, curlwp should
be used.

quick consensus on tech-kern

Revision 1.50.4.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:31:09 2007 UTC (7 years, 1 month ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.50: +12 -11 lines
Diff to previous 1.50 (colored)

sync with HEAD

Revision 1.24.2.5 / (download) - annotate - [select for diffs], Sat Oct 27 11:35:05 2007 UTC (7 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.24.2.4: +12 -11 lines
Diff to previous 1.24.2.4 (colored)

sync with head.

Revision 1.50.2.2 / (download) - annotate - [select for diffs], Fri Oct 26 15:48:15 2007 UTC (7 years, 1 month ago) by joerg
Branch: jmcneill-pm
Changes since 1.50.2.1: +11 -11 lines
Diff to previous 1.50.2.1 (colored) to branchpoint 1.50 (colored)

Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.

Revision 1.44.4.10 / (download) - annotate - [select for diffs], Thu Oct 25 20:52:16 2007 UTC (7 years, 1 month ago) by ad
Branch: vmlocking
Changes since 1.44.4.9: +16 -13 lines
Diff to previous 1.44.4.9 (colored) to branchpoint 1.44 (colored) next main 1.45 (colored)

Fix up mnt_vnodelist handling.

Revision 1.50.6.2 / (download) - annotate - [select for diffs], Sun Oct 14 11:48:29 2007 UTC (7 years, 2 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.50.6.1: +11 -11 lines
Diff to previous 1.50.6.1 (colored) to branchpoint 1.50 (colored) next main 1.51 (colored)

sync with head.

Revision 1.53 / (download) - annotate - [select for diffs], Wed Oct 10 20:42:23 2007 UTC (7 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, vmlocking-base, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: mjf-devfs
Changes since 1.52: +8 -7 lines
Diff to previous 1.52 (colored)

Merge from vmlocking:

- Split vnode::v_flag into three fields, depending on field locking.
- simple_lock -> kmutex in a few places.
- Fix some simple locking problems.

Revision 1.44.4.9 / (download) - annotate - [select for diffs], Tue Oct 9 15:22:15 2007 UTC (7 years, 2 months ago) by ad
Branch: vmlocking
Changes since 1.44.4.8: +3 -3 lines
Diff to previous 1.44.4.8 (colored) to branchpoint 1.44 (colored)

Sync with head.

Revision 1.44.4.8 / (download) - annotate - [select for diffs], Tue Oct 9 13:44:16 2007 UTC (7 years, 2 months ago) by ad
Branch: vmlocking
Changes since 1.44.4.7: +3 -2 lines
Diff to previous 1.44.4.7 (colored) to branchpoint 1.44 (colored)

Sync with head.

Revision 1.52 / (download) - annotate - [select for diffs], Mon Oct 8 18:04:04 2007 UTC (7 years, 2 months ago) by ad
Branch: MAIN
Changes since 1.51: +5 -6 lines
Diff to previous 1.51 (colored)

Merge brelse() changes from the vmlocking branch.

Revision 1.50.6.1 / (download) - annotate - [select for diffs], Sat Oct 6 15:29:46 2007 UTC (7 years, 2 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.50: +3 -2 lines
Diff to previous 1.50 (colored)

sync with head.

Revision 1.50.2.1 / (download) - annotate - [select for diffs], Tue Oct 2 18:28:50 2007 UTC (7 years, 2 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.50: +3 -2 lines
Diff to previous 1.50 (colored)

Sync with HEAD.

Revision 1.51 / (download) - annotate - [select for diffs], Mon Sep 24 00:42:13 2007 UTC (7 years, 2 months ago) by rumble
Branch: MAIN
CVS Tags: yamt-x86pmap-base2
Changes since 1.50: +3 -2 lines
Diff to previous 1.50 (colored)

Avoid stack allocation of large dirent structures in foo_readdir().

Revision 1.24.2.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:40:25 2007 UTC (7 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.24.2.3: +38 -48 lines
Diff to previous 1.24.2.3 (colored)

sync with head.

Revision 1.44.4.7 / (download) - annotate - [select for diffs], Fri Aug 24 23:28:38 2007 UTC (7 years, 3 months ago) by ad
Branch: vmlocking
Changes since 1.44.4.6: +4 -5 lines
Diff to previous 1.44.4.6 (colored) to branchpoint 1.44 (colored)

Sync with buffer cache locking changes. See buf.h/vfs_bio.c for details.
Some minor portions are incomplete and needs to be verified as a whole.

Revision 1.44.4.6 / (download) - annotate - [select for diffs], Mon Aug 20 21:26:07 2007 UTC (7 years, 4 months ago) by ad
Branch: vmlocking
Changes since 1.44.4.5: +10 -21 lines
Diff to previous 1.44.4.5 (colored) to branchpoint 1.44 (colored)

Sync with HEAD.

Revision 1.47.2.1 / (download) - annotate - [select for diffs], Wed Aug 15 13:48:57 2007 UTC (7 years, 4 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.47: +10 -21 lines
Diff to previous 1.47 (colored) next main 1.48 (colored)

Sync with HEAD.

Revision 1.50.8.2 / (download) - annotate - [select for diffs], Tue Jul 31 21:14:18 2007 UTC (7 years, 4 months ago) by pooka
Branch: matt-mips64
Changes since 1.50.8.1: +1096 -0 lines
Diff to previous 1.50.8.1 (colored) to branchpoint 1.50 (colored) next main 1.51 (colored)

* nuke the nameidata parameter from VFS_MOUNT().  Nobody on tech-kern
  knew what it was supposed to be used for and wrstuden gave a go-ahead
* while rototilling, convert file systems which went easily to
  use VFS_PROTOS() instead of manually prototyping the methods

Revision 1.50.8.1, Tue Jul 31 21:14:17 2007 UTC (7 years, 4 months ago) by pooka
Branch: matt-mips64
Changes since 1.50: +0 -1096 lines
FILE REMOVED

file msdosfs_vfsops.c was added on branch matt-mips64 on 2007-07-31 21:14:18 +0000

Revision 1.50 / (download) - annotate - [select for diffs], Tue Jul 31 21:14:17 2007 UTC (7 years, 4 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-x86pmap-base, nick-csl-alignment-base5, matt-mips64-base
Branch point for: yamt-x86pmap, matt-mips64, matt-armv6, jmcneill-pm
Changes since 1.49: +8 -19 lines
Diff to previous 1.49 (colored)

* nuke the nameidata parameter from VFS_MOUNT().  Nobody on tech-kern
  knew what it was supposed to be used for and wrstuden gave a go-ahead
* while rototilling, convert file systems which went easily to
  use VFS_PROTOS() instead of manually prototyping the methods

Revision 1.44.4.5 / (download) - annotate - [select for diffs], Sun Jul 29 11:37:10 2007 UTC (7 years, 4 months ago) by ad
Branch: vmlocking
Changes since 1.44.4.4: +4 -4 lines
Diff to previous 1.44.4.4 (colored) to branchpoint 1.44 (colored)

Add vfs_destroy() to free mount structures. The specificdata_ref was being
leaked.

Revision 1.49 / (download) - annotate - [select for diffs], Thu Jul 26 22:57:38 2007 UTC (7 years, 4 months ago) by pooka
Branch: MAIN
CVS Tags: hpcarm-cleanup
Changes since 1.48: +3 -3 lines
Diff to previous 1.48 (colored)

Use eopnotsupp() instead of vfs_stdsuspendctl() and retire the latter.

Revision 1.48 / (download) - annotate - [select for diffs], Fri Jul 20 16:46:43 2007 UTC (7 years, 5 months ago) by pooka
Branch: MAIN
Changes since 1.47: +3 -3 lines
Diff to previous 1.47 (colored)

In sync, skip over vnodes based on if they are clean rather than
if they have pages.

Revision 1.47 / (download) - annotate - [select for diffs], Tue Jul 17 11:19:32 2007 UTC (7 years, 5 months ago) by pooka
Branch: MAIN
CVS Tags: nick-csl-alignment-base
Branch point for: nick-csl-alignment
Changes since 1.46: +3 -3 lines
Diff to previous 1.46 (colored)

Make set_statvfs_info() take a parameter for the vfs name instead
of always retrieving it from mp->mnt_op->vfs_name

christos ok

Revision 1.44.4.4 / (download) - annotate - [select for diffs], Sun Jul 15 13:27:30 2007 UTC (7 years, 5 months ago) by ad
Branch: vmlocking
Changes since 1.44.4.3: +32 -31 lines
Diff to previous 1.44.4.3 (colored) to branchpoint 1.44 (colored)

Sync with head.

Revision 1.46 / (download) - annotate - [select for diffs], Thu Jul 12 19:35:33 2007 UTC (7 years, 5 months ago) by dsl
Branch: MAIN
Changes since 1.45: +30 -29 lines
Diff to previous 1.45 (colored)

Change the VFS_MOUNT() interface so that the 'data' buffer passed to the
fs code is a kernel buffer, pass though the length of the buffer as well.
Since the length of the userspace buffer isn'it (yet) passed through the mount
system call, add a field to the vfsops structure containing the default length.
Split sys_mount() for calls from compat code.
Ride one of the recent kernel version changes - old fs LKMs will load, but
sys_mount() will reject any attempt to use them.

Revision 1.44.6.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:09:25 2007 UTC (7 years, 5 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.44: +4 -4 lines
Diff to previous 1.44 (colored) next main 1.45 (colored)

Sync with head.

Revision 1.45 / (download) - annotate - [select for diffs], Sat Jun 30 09:37:56 2007 UTC (7 years, 5 months ago) by pooka
Branch: MAIN
CVS Tags: mjf-ufs-trans-base
Changes since 1.44: +4 -4 lines
Diff to previous 1.44 (colored)

Using POOL_INIT here makes no sense, since file systems always have
an init method.  So get rid of it and #ifdef _LKM and just always
init in the init method.  Give malloc types the same treatment.
Makes file systems nicer to work with in linksetless environments
and fixes a few LKM discrepancies.

Revision 1.44.4.3 / (download) - annotate - [select for diffs], Sun Jun 17 21:31:08 2007 UTC (7 years, 6 months ago) by ad
Branch: vmlocking
Changes since 1.44.4.2: +4 -3 lines
Diff to previous 1.44.4.2 (colored) to branchpoint 1.44 (colored)

- Increase the number of thread priorities from 128 to 256. How the space
  is set up is to be revisited.
- Implement soft interrupts as kernel threads. A generic implementation
  is provided, with hooks for fast-path MD code that can run the interrupt
  threads over the top of other threads executing in the kernel.
- Split vnode::v_flag into three fields, depending on how the flag is
  locked (by the interlock, by the vnode lock, by the file system).
- Miscellaneous locking fixes and improvements.

Revision 1.44.4.2 / (download) - annotate - [select for diffs], Sun May 13 17:36:32 2007 UTC (7 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.44.4.1: +5 -5 lines
Diff to previous 1.44.4.1 (colored) to branchpoint 1.44 (colored)

- Pass the error number and residual count to biodone(), and let it handle
  setting error indicators. Prepare to eliminate B_ERROR.
- Add a flag argument to brelse() to be set into the buf's flags, instead
  of doing it directly. Typically used to set B_INVAL.
- Add a "struct cpu_info *" argument to kthread_create(), to be used to
  create bound threads. Change "bool mpsafe" to "int flags".
- Allow exit of LWPs in the IDL state when (l != curlwp).
- More locking fixes & conversion to the new API.

Revision 1.44.4.1 / (download) - annotate - [select for diffs], Tue Mar 13 17:50:38 2007 UTC (7 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.44: +11 -11 lines
Diff to previous 1.44 (colored)

Pull in the initial set of changes for the vmlocking branch.

Revision 1.40.2.1 / (download) - annotate - [select for diffs], Tue Feb 27 23:11:36 2007 UTC (7 years, 9 months ago) by riz
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, matt-nb4-arm-base, matt-nb4-arm
Changes since 1.40: +37 -18 lines
Diff to previous 1.40 (colored) next main 1.41 (colored)

Pull up following revision(s) (requested by kochi in ticket #453):
	sys/fs/msdosfs/msdosfs_vfsops.c: revisions 1.41-1.44 via patch
fix the problem reported in kern/35457, "cant mount msdosfs on floppy".

Since 1.40, which introduced support for non-DEV_BSIZE media,
mounting msdos floppy returned ENOTTY.

This is because floppy driver does not support DIOCGPART or DIOCWEDGEINFO
ioctl.

Those ioctls should not be a requirement for mounting msdosfs.

This patch is made by Christian Biere.

Revision 1.43.2.1 / (download) - annotate - [select for diffs], Tue Feb 27 16:54:12 2007 UTC (7 years, 9 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.43: +15 -9 lines
Diff to previous 1.43 (colored) next main 1.44 (colored)

- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.

Revision 1.24.2.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:10:55 2007 UTC (7 years, 9 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.24.2.2: +100 -28 lines
Diff to previous 1.24.2.2 (colored)

sync with head.

Revision 1.44 / (download) - annotate - [select for diffs], Sat Feb 17 18:39:15 2007 UTC (7 years, 10 months ago) by kochi
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, ad-audiomp-base, ad-audiomp
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.43: +15 -9 lines
Diff to previous 1.43 (colored)

fix the problem reported in kern/35457, "cant mount msdosfs on floppy".

Since 1.40, which introduced support for non-DEV_BSIZE media,
mounting msdos floppy returned ENOTTY.

This is because floppy driver does not support DIOCGPART or DIOCWEDGEINFO
ioctl.

Those ioctls should not be a requirement for mounting msdosfs.

This patch is made by Christian Biere.

Revision 1.35.2.3 / (download) - annotate - [select for diffs], Thu Feb 1 08:48:32 2007 UTC (7 years, 10 months ago) by ad
Branch: newlock2
Changes since 1.35.2.2: +94 -28 lines
Diff to previous 1.35.2.2 (colored) to branchpoint 1.35 (colored) next main 1.36 (colored)

Sync with head.

Revision 1.43 / (download) - annotate - [select for diffs], Mon Jan 22 16:07:33 2007 UTC (7 years, 10 months ago) by reinoud
Branch: MAIN
CVS Tags: post-newlock2-merge, newlock2-nbase, newlock2-base
Branch point for: yamt-idlelwp
Changes since 1.42: +3 -3 lines
Diff to previous 1.42 (colored)

Fix typo
-                * assoicated with this mount point, start over.
+                * associated with this mount point, start over.

Revision 1.42 / (download) - annotate - [select for diffs], Sat Jan 20 23:34:09 2007 UTC (7 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.41: +92 -27 lines
Diff to previous 1.41 (colored)

- If the filesystem lives on a wedge, then we try to get wedge information
  since DIOCGPART is going to fail. Unfortunately there is no way to get the
  geometry information we need from the wedge; it would be nice for wedges
  to support a geometry ioctl. The values we cannot retrieve are marked with
  XXX.
- Add a lot more debugging.

Revision 1.41 / (download) - annotate - [select for diffs], Fri Jan 19 14:49:09 2007 UTC (7 years, 11 months ago) by hannken
Branch: MAIN
Changes since 1.40: +3 -2 lines
Diff to previous 1.40 (colored)

New file system suspension API to replace vn_start_write and vn_finished_write.
The suspension helpers are now put into file system specific operations.
This means every file system not supporting these helpers cannot be suspended
and therefore snapshots are no longer possible.

Implemented for file systems of type ffs.

The new API is enabled on a kernel option NEWVNGATE.  This option is
not enabled by default in any kernel config.

Presented and discussed on tech-kern with much input from
Bill Studenmund <wrstuden@netbsd.org> and YAMAMOTO Takashi <yamt@netbsd.org>.

Welcome to 4.99.9 (new vfs op vfs_suspendctl).

Revision 1.35.2.2 / (download) - annotate - [select for diffs], Fri Jan 12 01:04:05 2007 UTC (7 years, 11 months ago) by ad
Branch: newlock2
Changes since 1.35.2.1: +24 -17 lines
Diff to previous 1.35.2.1 (colored) to branchpoint 1.35 (colored)

Sync with head.

Revision 1.24.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:49:56 2006 UTC (7 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.24.2.1: +68 -61 lines
Diff to previous 1.24.2.1 (colored)

sync with head.

Revision 1.35.4.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:18:38 2006 UTC (8 years ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.35.4.1: +34 -26 lines
Diff to previous 1.35.4.1 (colored) to branchpoint 1.35 (colored) next main 1.36 (colored)

sync with head.

Revision 1.40 / (download) - annotate - [select for diffs], Sat Nov 25 12:17:30 2006 UTC (8 years ago) by scw
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, netbsd-4-base
Branch point for: netbsd-4
Changes since 1.39: +24 -17 lines
Diff to previous 1.39 (colored)

Support FAT filesystems on non-DEV_BSIZE media.

Based on the patches provided in PR kern/17398 by Trevin Beattie.

Revision 1.35.2.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:39:18 2006 UTC (8 years, 1 month ago) by ad
Branch: newlock2
Changes since 1.35: +11 -26 lines
Diff to previous 1.35 (colored)

Sync with head.

Revision 1.39 / (download) - annotate - [select for diffs], Thu Nov 16 01:33:35 2006 UTC (8 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.38: +9 -9 lines
Diff to previous 1.38 (colored)

__unused removal on arguments; approved by core.

Revision 1.38 / (download) - annotate - [select for diffs], Wed Oct 25 22:01:54 2006 UTC (8 years, 1 month ago) by reinoud
Branch: MAIN
Changes since 1.37: +5 -4 lines
Diff to previous 1.37 (colored)

Revisit mnt_vnodelist TAILQ patch. Remove all suspicious TAILQ_FOREACH()
loops where vnodes can get removed or added during the loops. This could
lead to panic's on unmount since nodes are skipped or otherwise
TAILQ_NEXT(0xdeadbeef, ...) was dereferenced.

Revision 1.35.4.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:07:06 2006 UTC (8 years, 1 month ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.35: +11 -27 lines
Diff to previous 1.35 (colored)

sync with head

Revision 1.37 / (download) - annotate - [select for diffs], Fri Oct 20 18:58:12 2006 UTC (8 years, 2 months ago) by reinoud
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.36: +4 -5 lines
Diff to previous 1.36 (colored)

Replace the LIST structure mp->mnt_vnodelist to a TAILQ structure since all
vnodes were synced and processed backwards. This meant that the last
accessed node was processed first and the earlierst last.

An extra benefit is the removal of the ugly hack from the Berkly days on
LFS.

In the proces, i've also replaced the various variations hand written loops
by the TAILQ_FOREACH() macro's.

Revision 1.36 / (download) - annotate - [select for diffs], Thu Oct 12 01:32:11 2006 UTC (8 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.35: +9 -24 lines
Diff to previous 1.35 (colored)

- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.29.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:56:57 2006 UTC (8 years, 3 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.29: +41 -25 lines
Diff to previous 1.29 (colored) next main 1.30 (colored)

sync with head

Revision 1.30.2.3 / (download) - annotate - [select for diffs], Sun Sep 3 15:25:13 2006 UTC (8 years, 3 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.30.2.2: +10 -5 lines
Diff to previous 1.30.2.2 (colored) to branchpoint 1.30 (colored) next main 1.31 (colored)

sync with head.

Revision 1.35 / (download) - annotate - [select for diffs], Sat Sep 2 07:12:11 2006 UTC (8 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.34: +4 -2 lines
Diff to previous 1.34 (colored)

add missing initializers

Revision 1.34 / (download) - annotate - [select for diffs], Mon Aug 14 14:06:26 2006 UTC (8 years, 4 months ago) by gdt
Branch: MAIN
Changes since 1.33: +8 -5 lines
Diff to previous 1.33 (colored)

When mounting an MSDOS fileysystem, do not require that bytes 252 and
253 of the superblock be zero.  Searching the net failed to find any
justification for checking these bytes; all available references say
that they are part of the boot code and not BOOTSIG2 and BOOTSIG3.

Modify the MSDOS 7.1 bootsector definition to have 420 bytes of boot
code and no BOOTSIG[23], rather than 418 bytes of boot code, to follow
available references and apparent Windows practice.  A test build
showed that these defines are not used other than in the check removed
by this commit.

Patch tested on netbsd-3, and enabled mounting of a 4 GB CF formatted
under Windows XP and then in a digital camera.  The CF was previously
unmountable.

Concept approved on tech-kern by christos@ and martin@.

Revision 1.30.2.2 / (download) - annotate - [select for diffs], Fri Aug 11 15:45:34 2006 UTC (8 years, 4 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.30.2.1: +29 -19 lines
Diff to previous 1.30.2.1 (colored) to branchpoint 1.30 (colored)

sync with head

Revision 1.33 / (download) - annotate - [select for diffs], Sun Jul 23 22:06:10 2006 UTC (8 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base7, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.32: +8 -9 lines
Diff to previous 1.32 (colored)

Use the LWP cached credentials where sane.

Revision 1.31.4.1 / (download) - annotate - [select for diffs], Thu Jul 13 17:49:50 2006 UTC (8 years, 5 months ago) by gdamore
Branch: gdamore-uart
Changes since 1.31: +23 -12 lines
Diff to previous 1.31 (colored) next main 1.32 (colored)

Merge from HEAD.

Revision 1.32 / (download) - annotate - [select for diffs], Thu Jul 13 12:00:25 2006 UTC (8 years, 5 months ago) by martin
Branch: MAIN
Changes since 1.31: +23 -12 lines
Diff to previous 1.31 (colored)

Fix alignement problems for fhandle_t, exposed by gcc4.1.

While touching all vptofh/fhtovp functions, get rid of VFS_MAXFIDSIZ,
version the getfh(2) syscall and explicitly pass the size available in
the filehandle from userland.

Discussed on tech-kern, with lots of help from yamt (thanks!).

Revision 1.24.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:09:29 2006 UTC (8 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.24: +59 -102 lines
Diff to previous 1.24 (colored)

sync with head.

Revision 1.29.6.2 / (download) - annotate - [select for diffs], Thu Jun 1 22:37:51 2006 UTC (8 years, 6 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.29.6.1: +10 -9 lines
Diff to previous 1.29.6.1 (colored) next main 1.30 (colored)

Sync with head.

Revision 1.30.6.1 / (download) - annotate - [select for diffs], Wed May 24 15:50:34 2006 UTC (8 years, 6 months ago) by tron
Branch: peter-altq
Changes since 1.30: +10 -9 lines
Diff to previous 1.30 (colored) next main 1.31 (colored)

Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.30.2.1 / (download) - annotate - [select for diffs], Wed May 24 10:58:36 2006 UTC (8 years, 6 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.30: +10 -9 lines
Diff to previous 1.30 (colored)

sync with head.

Revision 1.31 / (download) - annotate - [select for diffs], Sun May 14 21:31:52 2006 UTC (8 years, 7 months ago) by elad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6, yamt-pdpolicy-base5, simonb-timecounters-base, gdamore-uart-base, chap-midi-nbase, chap-midi-base, chap-midi
Branch point for: gdamore-uart
Changes since 1.30: +10 -9 lines
Diff to previous 1.30 (colored)

integrate kauth.

Revision 1.30.4.3 / (download) - annotate - [select for diffs], Sat May 6 23:31:29 2006 UTC (8 years, 7 months ago) by christos
Branch: elad-kernelauth
Changes since 1.30.4.2: +3 -2 lines
Diff to previous 1.30.4.2 (colored) to branchpoint 1.30 (colored) next main 1.31 (colored)

- Move kauth_cred_t declaration to <sys/types.h>
- Cleanup struct ucred; forward declarations that are unused.
- Don't include <sys/kauth.h> in any header, but include it in the c files
  that need it.

Approved by core.

Revision 1.29.6.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:39:57 2006 UTC (8 years, 7 months ago) by simonb
Branch: simonb-timecounters
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored)

Sync with head.

Revision 1.30.4.2 / (download) - annotate - [select for diffs], Fri Mar 10 14:23:39 2006 UTC (8 years, 9 months ago) by elad
Branch: elad-kernelauth
Changes since 1.30.4.1: +4 -4 lines
Diff to previous 1.30.4.1 (colored) to branchpoint 1.30 (colored)

generic_authorize() -> kauth_authorize_generic().

Revision 1.30.4.1 / (download) - annotate - [select for diffs], Wed Mar 8 01:31:33 2006 UTC (8 years, 9 months ago) by elad
Branch: elad-kernelauth
Changes since 1.30: +9 -9 lines
Diff to previous 1.30 (colored)

Adapt to kernel authorization KPI.

Revision 1.29.2.1 / (download) - annotate - [select for diffs], Wed Mar 1 09:28:46 2006 UTC (8 years, 9 months ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored) next main 1.30 (colored)

sync with head.

Revision 1.30 / (download) - annotate - [select for diffs], Tue Feb 21 04:32:39 2006 UTC (8 years, 9 months ago) by thorpej
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base, elad-kernelauth-base
Branch point for: yamt-pdpolicy, peter-altq, elad-kernelauth
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored)

Use device_class() instead of accessing dv_class directly.

Revision 1.29 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:25 2005 UTC (9 years ago) by christos
Branch: MAIN
Branch point for: yamt-uio_vmspace, simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.28: +42 -40 lines
Diff to previous 1.28 (colored)

merge ktrace-lwp.

Revision 1.7.2.8 / (download) - annotate - [select for diffs], Thu Nov 10 14:09:27 2005 UTC (9 years, 1 month ago) by skrll
Branch: ktrace-lwp
Changes since 1.7.2.7: +33 -80 lines
Diff to previous 1.7.2.7 (colored) next main 1.8 (colored)

Sync with HEAD. Here we go again...

Revision 1.28 / (download) - annotate - [select for diffs], Fri Sep 23 12:10:32 2005 UTC (9 years, 2 months ago) by jmmv
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Changes since 1.27: +4 -39 lines
Diff to previous 1.27 (colored)

Apply the NFS exports list rototill patch:

- Remove all NFS related stuff from file system specific code.
- Drop the vfs_checkexp hook and generalize it in the new nfs_check_export
  function, thus removing redundancy from all file systems.
- Move all NFS export-related stuff from kern/vfs_subr.c to the new
  file sys/nfs/nfs_export.c.  The former was becoming large and its code
  is always compiled, regardless of the build options.  Using the latter,
  the code is only compiled in when NFSSERVER is enabled.  While doing this,
  also make some functions in nfs_subs.c conditional to NFSSERVER.
- Add a new command in nfssvc(2), called NFSSVC_SETEXPORTSLIST, that takes a
  path and a set of export entries.  At the moment it can only clear the
  exports list or append entries, one by one, but it is done in a way that
  allows setting the whole set of entries atomically in the future (see the
  comment in mountd_set_exports_list or in doc/TODO).
- Change mountd(8) to use the nfssvc(2) system call instead of mount(2) so
  that it becomes file system agnostic.  In fact, all this whole thing was
  done to remove a 'XXX' block from this utility!
- Change the mount*, newfs and fsck* userland utilities to not deal with NFS
  exports initialization; done internally by the kernel when initializing
  the NFS support for each file system.
- Implement an interface for VFS (called VFS hooks) so that several kernel
  subsystems can run arbitrary code upon receipt of specific VFS events.
  At the moment, this only provides support for unmount and is used to
  destroy NFS exports lists from the file systems being unmounted, though it
  has room for extension.

Thanks go to yamt@, chs@, thorpej@, wrstuden@ and others for their comments
and advice in the development of this patch.

Revision 1.27 / (download) - annotate - [select for diffs], Sat Sep 10 17:33:45 2005 UTC (9 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.26: +2 -13 lines
Diff to previous 1.26 (colored)

PR/23773: Tero Kivinen: Cannot mount msdos filesystems if filesystem size >
128GB
PR/31287: Fabien Devaux: msdosfs now can mount >128MB filesystems

Revision 1.26 / (download) - annotate - [select for diffs], Mon Aug 29 23:57:35 2005 UTC (9 years, 3 months ago) by xtraeme
Branch: MAIN
Changes since 1.25: +19 -19 lines
Diff to previous 1.25 (colored)

Remove __P()

Revision 1.25 / (download) - annotate - [select for diffs], Fri Aug 5 11:00:31 2005 UTC (9 years, 4 months ago) by jmmv
Branch: MAIN
Changes since 1.24: +4 -4 lines
Diff to previous 1.24 (colored)

Let this build when MSDOSFS_DEBUG is defined (v_id disappeared a long time
ago but it was still used here).

Revision 1.24 / (download) - annotate - [select for diffs], Sun May 29 21:00:29 2005 UTC (9 years, 6 months ago) by christos
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.23: +11 -11 lines
Diff to previous 1.23 (colored)

- rename variables to avoid shadowing.
- add a few const.

Revision 1.22.2.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:22 2005 UTC (9 years, 7 months ago) by kent
Branch: kent-audio2
Changes since 1.22: +3 -2 lines
Diff to previous 1.22 (colored) next main 1.23 (colored)

sync with -current

Revision 1.7.2.7 / (download) - annotate - [select for diffs], Fri Apr 1 14:30:56 2005 UTC (9 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.7.2.6: +3 -2 lines
Diff to previous 1.7.2.6 (colored)

Sync with HEAD.

Revision 1.23 / (download) - annotate - [select for diffs], Tue Mar 29 02:41:05 2005 UTC (9 years, 8 months ago) by thorpej
Branch: MAIN
CVS Tags: kent-audio2-base
Changes since 1.22: +3 -2 lines
Diff to previous 1.22 (colored)

- Define a VFS_ATTACH() macro that places a reference to a vfsops structure
  into the "vfsops" link set.
- Use VFS_ATTACH() where vfsops are declared for individual file systems.
- In vfsinit(), traverse the "vfsops" link set, rather than vfs_list_initial[].

Revision 1.7.2.6 / (download) - annotate - [select for diffs], Mon Jan 17 19:32:12 2005 UTC (9 years, 11 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.7.2.5: +38 -33 lines
Diff to previous 1.7.2.5 (colored)

Sync with HEAD.

Revision 1.22 / (download) - annotate - [select for diffs], Sun Jan 9 03:11:48 2005 UTC (9 years, 11 months ago) by mycroft
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, yamt-km-base2, yamt-km-base, yamt-km, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, matt-timespec, kent-audio1-beforemerge
Branch point for: kent-audio2
Changes since 1.21: +37 -33 lines
Diff to previous 1.21 (colored)

Rework the mountroot interface so that vfs_mountroot() opens the root device
and just passes it on to the file system functions.  This avoids opening and
closing the device several times.

Mentioned on tech-kern some time ago, IIRC.  I've been running this for a
long time.

Revision 1.21 / (download) - annotate - [select for diffs], Sun Jan 2 16:08:28 2005 UTC (9 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.20: +3 -2 lines
Diff to previous 1.20 (colored)

Add the system call and VFS infrastructure for file system extended
attributes.

From FreeBSD.

Revision 1.7.2.5 / (download) - annotate - [select for diffs], Tue Sep 21 13:35:01 2004 UTC (10 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.7.2.4: +47 -44 lines
Diff to previous 1.7.2.4 (colored)

Fix the sync with head I botched.

Revision 1.7.2.4 / (download) - annotate - [select for diffs], Sat Sep 18 14:52:49 2004 UTC (10 years, 3 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.7.2.3: +54 -50 lines
Diff to previous 1.7.2.3 (colored)

Sync with HEAD.

Revision 1.20 / (download) - annotate - [select for diffs], Mon Sep 13 19:25:48 2004 UTC (10 years, 3 months ago) by jdolecek
Branch: MAIN
CVS Tags: kent-audio1-base, kent-audio1
Changes since 1.19: +12 -5 lines
Diff to previous 1.19 (colored)

set mp->mnt_stat.f_namemax on filesystem mount for use by statvfs, and use
the value for also pathconf(_PC_NAME_MAX) to keep the two in sync

Revision 1.7.2.3 / (download) - annotate - [select for diffs], Tue Aug 24 17:57:37 2004 UTC (10 years, 3 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.7.2.2: +10 -13 lines
Diff to previous 1.7.2.2 (colored)

Undo part of the ktrace/lwp changes.  In particular:
* Remove the "lwp *" argument that was added to vget().  Turns out
  that nothing actually used it!
* Remove the "lwp *" arguments that were added to VFS_ROOT(), VFS_VGET(),
  and VFS_FHTOVP(); all they did was pass it to vget() (which, as noted
  above, didn't use it).
* Remove all of the "lwp *" arguments to internal functions that were added
  just to appease the above.

Revision 1.7.2.2 / (download) - annotate - [select for diffs], Tue Aug 3 10:52:42 2004 UTC (10 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.7.2.1: +65 -34 lines
Diff to previous 1.7.2.1 (colored)

Sync with HEAD

Revision 1.13.2.2 / (download) - annotate - [select for diffs], Sun Jun 27 13:53:13 2004 UTC (10 years, 5 months ago) by he
Branch: netbsd-2-0
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2
Changes since 1.13.2.1: +3 -2 lines
Diff to previous 1.13.2.1 (colored) to branchpoint 1.13 (colored) next main 1.14 (colored)

Pull up revision 1.19 (requested by jdolecek in ticket #562):
  Set gmtoff in the structure returned by the MNT_GETARGS call.

Revision 1.19 / (download) - annotate - [select for diffs], Sun Jun 27 06:55:12 2004 UTC (10 years, 5 months ago) by jdolecek
Branch: MAIN
Changes since 1.18: +3 -2 lines
Diff to previous 1.18 (colored)

set gmtoff in the structure returned by MNT_GETARGS call

Revision 1.13.2.1 / (download) - annotate - [select for diffs], Sat May 29 09:03:48 2004 UTC (10 years, 6 months ago) by tron
Branch: netbsd-2-0
Changes since 1.13: +4 -3 lines
Diff to previous 1.13 (colored)

Pull up revision 1.17 (requested by atatat in ticket #393):
Sysctl descriptions under vfs subtree

Revision 1.18 / (download) - annotate - [select for diffs], Tue May 25 14:54:56 2004 UTC (10 years, 6 months ago) by hannken
Branch: MAIN
Changes since 1.17: +3 -2 lines
Diff to previous 1.17 (colored)

Add ffs internal snapshots. Written by Marshall Kirk McKusick for FreeBSD.

- Not enabled by default. Needs kernel option FFS_SNAPSHOT.
- Change parameters of ffs_blkfree.
- Let the copy-on-write functions return an error so spec_strategy
    may fail if the copy-on-write fails.
- Change genfs_*lock*() to use vp->v_vnlock instead of &vp->v_lock.
- Add flag B_METAONLY to VOP_BALLOC to return indirect block buffer.
- Add a function ffs_checkfreefile needed for snapshot creation.
- Add special handling of snapshot files:
    Snapshots may not be opened for writing and the attributes are read-only.
    Use the mtime as the time this snapshot was taken.
    Deny mtime updates for snapshot files.
- Add function transferlockers to transfer any waiting processes from
  one lock to another.
- Add vfsop VFS_SNAPSHOT to take a snapshot and make it accessible through
  a vnode.
- Add snapshot support to ls, fsck_ffs and dump.

Welcome to 2.0F.

Approved by: Jason R. Thorpe <thorpej@netbsd.org>

Revision 1.17 / (download) - annotate - [select for diffs], Tue May 25 04:44:43 2004 UTC (10 years, 6 months ago) by atatat
Branch: MAIN
Changes since 1.16: +4 -3 lines
Diff to previous 1.16 (colored)

Sysctl descriptions under vfs subtree

Revision 1.16 / (download) - annotate - [select for diffs], Tue Apr 27 17:37:30 2004 UTC (10 years, 7 months ago) by jrf
Branch: MAIN
Changes since 1.15: +4 -4 lines
Diff to previous 1.15 (colored)

First pass for some caddr_t removal and changes to get rid of it where we
no longer use and/or need it

	- removed casts from unionfs, deadfs and fdesc
	  (there are more to hunt down still)
	- changed vfs_quotactl args argumet from caddr_t to void *
	- changed vfs_quotactl structures/callers to reflect the api change

Compiled fine and ran for about a day. Approved/reviewed by
christos@netbsd.org and gimpy@netbsd.org.

Revision 1.15 / (download) - annotate - [select for diffs], Tue Apr 27 17:25:50 2004 UTC (10 years, 7 months ago) by jdolecek
Branch: MAIN
Changes since 1.14: +8 -2 lines
Diff to previous 1.14 (colored)

initialize gmtoff in mount structure if mount version is < 3

Revision 1.14 / (download) - annotate - [select for diffs], Wed Apr 21 01:05:37 2004 UTC (10 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.13: +16 -16 lines
Diff to previous 1.13 (colored)

Replace the statfs() family of system calls with statvfs().
Retain binary compatibility.

Revision 1.13 / (download) - annotate - [select for diffs], Wed Mar 24 15:34:52 2004 UTC (10 years, 8 months ago) by atatat
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.12: +6 -4 lines
Diff to previous 1.12 (colored)

Tango on sysctl_createv() and flags.  The flags have all been renamed,
and sysctl_createv() now uses more arguments.

Revision 1.12 / (download) - annotate - [select for diffs], Thu Dec 4 19:38:23 2003 UTC (11 years ago) by atatat
Branch: MAIN
Changes since 1.11: +19 -15 lines
Diff to previous 1.11 (colored)

Dynamic sysctl.

Gone are the old kern_sysctl(), cpu_sysctl(), hw_sysctl(),
vfs_sysctl(), etc, routines, along with sysctl_int() et al.  Now all
nodes are registered with the tree, and nodes can be added (or
removed) easily, and I/O to and from the tree is handled generically.

Since the nodes are registered with the tree, the mapping from name to
number (and back again) can now be discovered, instead of having to be
hard coded.  Adding new nodes to the tree is likewise much simpler --
the new infrastructure handles almost all the work for simple types,
and just about anything else can be done with a small helper function.

All existing nodes are where they were before (numerically speaking),
so all existing consumers of sysctl information should notice no
difference.

PS - I'm sorry, but there's a distinct lack of documentation at the
moment.  I'm working on sysctl(3/8/9) right now, and I promise to
watch out for buses.

Revision 1.11 / (download) - annotate - [select for diffs], Tue Oct 14 14:02:56 2003 UTC (11 years, 2 months ago) by dbj
Branch: MAIN
Changes since 1.10: +3 -3 lines
Diff to previous 1.10 (colored)

add mnt_iflag field to struct mount for internal flags
mv MNT_GONE, MNT_UNMOUNT and MNT_WANTRDWR to this field
additonally add mnt_writeopcountupper and mnt_writeopcountlower fields
in preparation for pending write suspension support work
bump kernel version to 1.6ZD

Revision 1.10 / (download) - annotate - [select for diffs], Mon Oct 6 02:21:47 2003 UTC (11 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

Consistently use "bsBPB" as the struct member for the BIOS parameter block.

Revision 1.9 / (download) - annotate - [select for diffs], Sun Sep 7 22:09:11 2003 UTC (11 years, 3 months ago) by itojun
Branch: MAIN
Changes since 1.8: +3 -2 lines
Diff to previous 1.8 (colored)

add -t option for gmt time offset (normally MS-DOS filesystem has timestamp
in localtime, not GMT).  PR kern/22717

Revision 1.8 / (download) - annotate - [select for diffs], Sat Aug 2 11:41:21 2003 UTC (11 years, 4 months ago) by jdolecek
Branch: MAIN
Changes since 1.7: +18 -3 lines
Diff to previous 1.7 (colored)

Allow separate masks for files and directories. Useful e.g. to turn
the execute bit off for files, but keep search permission for directories.
Change contributed in PR kern/21538 by Pavel Arnost, based on some FreeBSD
patches.
Further manpage changes, and backward-compatibility adjustments done by me.

Also fixes PR kern/16778 by Johan Danielsson, and PR kern/3400 by Rick Byers

Revision 1.7.2.1 / (download) - annotate - [select for diffs], Wed Jul 2 15:26:30 2003 UTC (11 years, 5 months ago) by darrenr
Branch: ktrace-lwp
Changes since 1.7: +61 -55 lines
Diff to previous 1.7 (colored)

Apply the aborted ktrace-lwp changes to a specific branch.  This is just for
others to review, I'm concerned that patch fuziness may have resulted in some
errant code being generated but I'll look at that later by comparing the diff
from the base to the branch with the file I attempt to apply to it.  This will,
at the very least, put the changes in a better context for others to review
them and attempt to tinker with removing passing of 'struct lwp' through
the kernel.

Revision 1.7 / (download) - annotate - [select for diffs], Sun Jun 29 22:31:10 2003 UTC (11 years, 5 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.6: +43 -45 lines
Diff to previous 1.6 (colored)

Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.

Revision 1.6 / (download) - annotate - [select for diffs], Sun Jun 29 18:43:24 2003 UTC (11 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.5: +14 -18 lines
Diff to previous 1.5 (colored)

Undo part of the ktrace/lwp changes.  In particular:
* Remove the "lwp *" argument that was added to vget().  Turns out
  that nothing actually used it!
* Remove the "lwp *" arguments that were added to VFS_ROOT(), VFS_VGET(),
  and VFS_FHTOVP(); all they did was pass it to vget() (which, as noted
  above, didn't use it).
* Remove all of the "lwp *" arguments to internal functions that were added
  just to appease the above.

Revision 1.5 / (download) - annotate - [select for diffs], Sat Jun 28 14:21:50 2003 UTC (11 years, 5 months ago) by darrenr
Branch: MAIN
Changes since 1.4: +61 -55 lines
Diff to previous 1.4 (colored)

Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records.  The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.

Bump the kernel rev up to 1.6V

Revision 1.4 / (download) - annotate - [select for diffs], Wed Apr 16 21:44:19 2003 UTC (11 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.3: +5 -14 lines
Diff to previous 1.3 (colored)

PR/1796: John Kohl: statfs misbehaves under chrooted environments.

- Under chroot it displays only the visible filesystems with appropriate paths.
- The statfs f_mntonname gets adjusted to contain the real path from root.
- While was there, fixed a bug in ext2fs, locking problems with vfs_getfsstat(),
  and factored out some of the vfsop statfs() code to copy_statfs_info(). This
  fixes the problem where some filesystems forgot to set fsid.
- Made coda look more like a normal fs.

Revision 1.3 / (download) - annotate - [select for diffs], Fri Mar 21 23:11:25 2003 UTC (11 years, 9 months ago) by dsl
Branch: MAIN
Changes since 1.2: +5 -6 lines
Diff to previous 1.2 (colored)

Use 'void *' instead of 'caddr_t' in prototypes of VOP_IOCTL, VOP_FCNTL
and VOP_ADVLOCK, delete casts from callers (and some to copyin/out).

Revision 1.2 / (download) - annotate - [select for diffs], Sat Feb 1 06:23:41 2003 UTC (11 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.1: +5 -2 lines
Diff to previous 1.1 (colored)

Add extensible malloc types, adapted from FreeBSD.  This turns
malloc types into a structure, a pointer to which is passed around,
instead of an int constant.  Allow the limit to be adjusted when the
malloc type is defined, or with a function call, as suggested by
Jonathan Stone.

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Sun Dec 29 19:56:05 2002 UTC (11 years, 11 months ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.1.2.1: +1033 -0 lines
Diff to previous 1.1.2.1 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

With with HEAD.

Revision 1.1.2.1, Thu Dec 26 12:31:35 2002 UTC (11 years, 11 months ago) by thorpej
Branch: nathanw_sa
Changes since 1.1: +0 -1033 lines
FILE REMOVED

file msdosfs_vfsops.c was added on branch nathanw_sa on 2002-12-29 19:56:05 +0000

Revision 1.1 / (download) - annotate - [select for diffs], Thu Dec 26 12:31:35 2002 UTC (11 years, 11 months ago) by jdolecek
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, fvdl_fs64_base
Branch point for: nathanw_sa

move msdosfs code from sys/msdosfs to sys/fs/msdosfs

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>