The NetBSD Project

CVS log for src/sys/fs/union/union_vfsops.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.87 / (download) - annotate - [select for diffs], Mon Feb 13 08:39:40 2023 UTC (12 months, 1 week ago) by hannken
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, HEAD
Changes since 1.86: +6 -5 lines
Diff to previous 1.86 (colored)

When mounting a union file system set its lower mount only on success.

Reported-by: syzbot+b81b69971581b4f4db00@syzkaller.appspotmail.com

Revision 1.79.4.1 / (download) - annotate - [select for diffs], Mon Feb 6 17:04:48 2023 UTC (12 months, 2 weeks ago) by martin
Branch: netbsd-9
Changes since 1.79: +10 -3 lines
Diff to previous 1.79 (colored) next main 1.80 (colored)

Pull up following revision(s) (requested by hannken in ticket #1587):

	sys/fs/union/union_vfsops.c: revision 1.86
	sys/miscfs/nullfs/null_vfsops.c: revision 1.101 (via patch)

Set IMNT_MPSAFE only if all lower layers have it set.

Revision 1.85.2.1 / (download) - annotate - [select for diffs], Mon Feb 6 16:57:24 2023 UTC (12 months, 2 weeks ago) by martin
Branch: netbsd-10
CVS Tags: netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1
Changes since 1.85: +10 -3 lines
Diff to previous 1.85 (colored) next main 1.86 (colored)

Pull up following revision(s) (requested by hannken in ticket #68):

	sys/fs/union/union_vfsops.c: revision 1.86
	sys/miscfs/nullfs/null_vfsops.c: revision 1.101

Set IMNT_MPSAFE only if all lower layers have it set.

Revision 1.86 / (download) - annotate - [select for diffs], Mon Feb 6 10:33:32 2023 UTC (12 months, 2 weeks ago) by hannken
Branch: MAIN
Changes since 1.85: +10 -3 lines
Diff to previous 1.85 (colored)

Set IMNT_MPSAFE only if all lower layers have it set.

Revision 1.85 / (download) - annotate - [select for diffs], Mon Nov 21 10:37:14 2022 UTC (15 months ago) by hannken
Branch: MAIN
CVS Tags: netbsd-10-base
Branch point for: netbsd-10
Changes since 1.84: +8 -4 lines
Diff to previous 1.84 (colored)

When testing whiteout support on the underlying file system
union_mount() should not use a NULL componentname as not all
file systems can handle it.

Use static { LOOKUP, NOCRED } componentname instead.

Reported-by: syzbot+ecda308a1dd9652836d0@syzkaller.appspotmail.com
Reported-by: syzbot+9b687847ee5f43e94ca3@syzkaller.appspotmail.com
Reported-by: syzbot+9f9d1a841734f9f50de2@syzkaller.appspotmail.com

Revision 1.84 / (download) - annotate - [select for diffs], Fri Nov 4 11:20:39 2022 UTC (15 months, 3 weeks ago) by hannken
Branch: MAIN
Changes since 1.83: +5 -3 lines
Diff to previous 1.83 (colored)

Add a helper to set or clear lower mount and use it.
Always add a reference to the lower mount.

Ride 9.99.105

Revision 1.83 / (download) - annotate - [select for diffs], Mon Sep 12 13:11:41 2022 UTC (17 months, 2 weeks ago) by christos
Branch: MAIN
CVS Tags: bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.82: +3 -3 lines
Diff to previous 1.82 (colored)

kmem_alloc -> kmem_zalloc, thanks Rin.

Revision 1.82 / (download) - annotate - [select for diffs], Sun Sep 11 15:42:29 2022 UTC (17 months, 2 weeks ago) by christos
Branch: MAIN
Changes since 1.81: +34 -43 lines
Diff to previous 1.81 (colored)

- avoid another credential leak on error from Chris J-D
  (chris at accessvector dot net)
- KNF
- use kmem

Revision 1.78.14.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:08:51 2020 UTC (3 years, 10 months ago) by martin
Branch: phil-wifi
Changes since 1.78.14.1: +21 -19 lines
Diff to previous 1.78.14.1 (colored) to branchpoint 1.78 (colored) next main 1.79 (colored)

Merge changes from current as of 20200406

Revision 1.81 / (download) - annotate - [select for diffs], Mon Mar 16 21:20:10 2020 UTC (3 years, 11 months ago) by pgoyette
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh
Changes since 1.80: +18 -16 lines
Diff to previous 1.80 (colored)

Use the module subsystem's ability to process SYSCTL_SETUP() entries to
automate installation of sysctl nodes.

Note that there are still a number of device and pseudo-device modules
that create entries tied to individual device units, rather than to the
module itself.  These are not changed.

Revision 1.79.6.1 / (download) - annotate - [select for diffs], Fri Jan 17 21:47:35 2020 UTC (4 years, 1 month ago) by ad
Branch: ad-namecache
Changes since 1.79: +5 -5 lines
Diff to previous 1.79 (colored) next main 1.80 (colored)

Sync with head.

Revision 1.80 / (download) - annotate - [select for diffs], Fri Jan 17 20:08:08 2020 UTC (4 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: is-mlppp-base, is-mlppp, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1
Changes since 1.79: +5 -5 lines
Diff to previous 1.79 (colored)

VFS_VGET(), VFS_ROOT(), VFS_FHTOVP(): give them a "int lktype" argument, to
allow us to get shared locks (or no lock) on the returned vnode.  Matches
FreeBSD.

Revision 1.78.14.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:09:02 2019 UTC (4 years, 8 months ago) by christos
Branch: phil-wifi
Changes since 1.78: +3 -4 lines
Diff to previous 1.78 (colored)

Sync with HEAD

Revision 1.79 / (download) - annotate - [select for diffs], Wed Feb 20 10:05:59 2019 UTC (5 years ago) by hannken
Branch: MAIN
CVS Tags: phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, isaki-audio2-base, isaki-audio2, ad-namecache-base
Branch point for: netbsd-9, ad-namecache
Changes since 1.78: +3 -4 lines
Diff to previous 1.78 (colored)

Set "mnt_lower" before the first file system operation on the new file system.

Revision 1.68.2.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:38:44 2017 UTC (6 years, 2 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.68.2.1: +21 -7 lines
Diff to previous 1.68.2.1 (colored) to branchpoint 1.68 (colored) next main 1.69 (colored)

update from HEAD

Revision 1.73.2.3 / (download) - annotate - [select for diffs], Mon Aug 28 17:53:06 2017 UTC (6 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.73.2.2: +8 -3 lines
Diff to previous 1.73.2.2 (colored) to branchpoint 1.73 (colored) next main 1.74 (colored)

Sync with HEAD

Revision 1.75.2.2 / (download) - annotate - [select for diffs], Wed Apr 26 02:53:26 2017 UTC (6 years, 10 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.75.2.1: +4 -2 lines
Diff to previous 1.75.2.1 (colored) to branchpoint 1.75 (colored) next main 1.76 (colored)

Sync with HEAD

Revision 1.75.4.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:54:02 2017 UTC (6 years, 10 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.75: +8 -3 lines
Diff to previous 1.75 (colored) next main 1.76 (colored)

Sync with HEAD

Revision 1.78 / (download) - annotate - [select for diffs], Sat Apr 1 19:35:56 2017 UTC (6 years, 10 months ago) by riastradh
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, pgoyette-localcount-20170426, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1
Branch point for: phil-wifi
Changes since 1.77: +4 -2 lines
Diff to previous 1.77 (colored)

KASSERT(mutex_owned(vp->v_interlock)) in vnode iterator selector.

Revision 1.75.2.1 / (download) - annotate - [select for diffs], Mon Mar 20 06:57:47 2017 UTC (6 years, 11 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.75: +6 -3 lines
Diff to previous 1.75 (colored)

Sync with HEAD

Revision 1.77 / (download) - annotate - [select for diffs], Mon Mar 6 10:10:07 2017 UTC (6 years, 11 months ago) by hannken
Branch: MAIN
CVS Tags: pgoyette-localcount-20170320
Changes since 1.76: +4 -2 lines
Diff to previous 1.76 (colored)

Add field "mnt_lower" to "struct mount" to track the file system
a layered file system is mounted on.

Welcome to 7.99.65

Revision 1.76 / (download) - annotate - [select for diffs], Fri Feb 17 08:31:25 2017 UTC (7 years ago) by hannken
Branch: MAIN
Changes since 1.75: +4 -3 lines
Diff to previous 1.75 (colored)

Add generic genfs_suspendctl() and use it for all file systems.
Layered file systems need work.

Revision 1.73.2.2 / (download) - annotate - [select for diffs], Tue Sep 22 12:06:06 2015 UTC (8 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.73.2.1: +15 -5 lines
Diff to previous 1.73.2.1 (colored) to branchpoint 1.73 (colored)

Sync with HEAD

Revision 1.75 / (download) - annotate - [select for diffs], Thu Jul 23 09:45:21 2015 UTC (8 years, 7 months ago) by hannken
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, localcount-20160914, bouyer-socketcan-base
Branch point for: pgoyette-localcount, bouyer-socketcan
Changes since 1.74: +15 -5 lines
Diff to previous 1.74 (colored)

union_unmount: use vfs_vnode_iterator to count attached vnodes.

Revision 1.73.2.1 / (download) - annotate - [select for diffs], Mon Apr 6 15:18:19 2015 UTC (8 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.73: +3 -4 lines
Diff to previous 1.73 (colored)

Sync with HEAD

Revision 1.74 / (download) - annotate - [select for diffs], Mon Feb 16 10:22:00 2015 UTC (9 years ago) by hannken
Branch: MAIN
CVS Tags: nick-nhusb-base-20150606, nick-nhusb-base-20150406
Changes since 1.73: +3 -4 lines
Diff to previous 1.73 (colored)

Change union to vcache.  Use address of the union node as key.

It would be better to use (uppervp, lowervp) as key, but either
may be NULL and may change any time.

Revision 1.73 / (download) - annotate - [select for diffs], Sat Oct 18 08:33:29 2014 UTC (9 years, 4 months ago) by snj
Branch: MAIN
CVS Tags: nick-nhusb-base
Branch point for: nick-nhusb
Changes since 1.72: +3 -3 lines
Diff to previous 1.72 (colored)

src is too big these days to tolerate superfluous apostrophes.  It's
"its", people!

Revision 1.68.2.1 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:28 2014 UTC (9 years, 6 months ago) by tls
Branch: tls-maxphys
Changes since 1.68: +31 -35 lines
Diff to previous 1.68 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.71.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:55:54 2014 UTC (9 years, 6 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.71: +4 -2 lines
Diff to previous 1.71 (colored) next main 1.72 (colored)

Rebase.

Revision 1.64.2.3 / (download) - annotate - [select for diffs], Thu May 22 11:41:02 2014 UTC (9 years, 9 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.64.2.2: +31 -35 lines
Diff to previous 1.64.2.2 (colored) to branchpoint 1.64 (colored) next main 1.65 (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.68.4.1 / (download) - annotate - [select for diffs], Sun May 18 17:46:07 2014 UTC (9 years, 9 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.68: +31 -35 lines
Diff to previous 1.68 (colored) next main 1.69 (colored)

sync with head

Revision 1.57.6.2.2.1 / (download) - annotate - [select for diffs], Mon Apr 28 16:05:36 2014 UTC (9 years, 10 months ago) by sborrill
Branch: netbsd-5-2
CVS Tags: netbsd-5-2-3-RELEASE
Changes since 1.57.6.2: +4 -2 lines
Diff to previous 1.57.6.2 (colored) next main 1.57.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.57.6.1.6.1 / (download) - annotate - [select for diffs], Mon Apr 28 16:03:15 2014 UTC (9 years, 10 months ago) by sborrill
Branch: netbsd-5-1
CVS Tags: netbsd-5-1-5-RELEASE
Changes since 1.57.6.1: +4 -2 lines
Diff to previous 1.57.6.1 (colored) next main 1.57.6.2 (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.57.6.3 / (download) - annotate - [select for diffs], Fri Apr 25 15:43:50 2014 UTC (9 years, 10 months ago) by sborrill
Branch: netbsd-5
Changes since 1.57.6.2: +4 -2 lines
Diff to previous 1.57.6.2 (colored) to branchpoint 1.57 (colored) next main 1.58 (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.67.8.1 / (download) - annotate - [select for diffs], Mon Apr 21 10:17:48 2014 UTC (9 years, 10 months ago) by bouyer
Branch: netbsd-6-1
CVS Tags: netbsd-6-1-5-RELEASE
Changes since 1.67: +4 -2 lines
Diff to previous 1.67 (colored) next main 1.68 (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.67.6.1 / (download) - annotate - [select for diffs], Mon Apr 21 10:15:37 2014 UTC (9 years, 10 months ago) by bouyer
Branch: netbsd-6-0
CVS Tags: netbsd-6-0-6-RELEASE
Changes since 1.67: +4 -2 lines
Diff to previous 1.67 (colored) next main 1.68 (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.67.2.1 / (download) - annotate - [select for diffs], Mon Apr 21 10:14:18 2014 UTC (9 years, 10 months ago) by bouyer
Branch: netbsd-6
Changes since 1.67: +4 -2 lines
Diff to previous 1.67 (colored) next main 1.68 (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.72 / (download) - annotate - [select for diffs], Wed Apr 16 18:55:19 2014 UTC (9 years, 10 months ago) by maxv
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, rmind-smpnet-nbase, rmind-smpnet-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Changes since 1.71: +4 -2 lines
Diff to previous 1.71 (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.71 / (download) - annotate - [select for diffs], Sun Mar 23 15:21:16 2014 UTC (9 years, 11 months 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.70: +24 -27 lines
Diff to previous 1.70 (colored)

Change all vfsops to use C99 designated initializers.

No functional changes intended.

Revision 1.70 / (download) - annotate - [select for diffs], Tue Feb 25 18:30:11 2014 UTC (10 years ago) by pooka
Branch: MAIN
CVS Tags: riastradh-drm2-base3
Changes since 1.69: +2 -7 lines
Diff to previous 1.69 (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.69 / (download) - annotate - [select for diffs], Sun Feb 16 09:50:25 2014 UTC (10 years ago) by hannken
Branch: MAIN
Changes since 1.68: +7 -5 lines
Diff to previous 1.68 (colored)

Change union_allocvp() to take an unlocked uppervp and to return the
union node unlocked.  Another VI_XLOCK hack is gone.

Revision 1.66.2.2 / (download) - annotate - [select for diffs], Sat Jun 2 11:09:32 2012 UTC (11 years, 8 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.66.2.1: +6 -7 lines
Diff to previous 1.66.2.1 (colored) to branchpoint 1.66 (colored) next main 1.67 (colored)

sync to latest -current.

Revision 1.64.2.2 / (download) - annotate - [select for diffs], Wed May 23 10:08:10 2012 UTC (11 years, 9 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.64.2.1: +6 -7 lines
Diff to previous 1.64.2.1 (colored) to branchpoint 1.64 (colored)

sync with head.

Revision 1.68 / (download) - annotate - [select for diffs], Mon Apr 30 22:51:27 2012 UTC (11 years, 10 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, jmcneill-usbmp-base10, agc-symver-base, agc-symver
Branch point for: tls-maxphys, rmind-smpnet
Changes since 1.67: +6 -7 lines
Diff to previous 1.67 (colored)

- Replace some malloc(9) uses with kmem(9).
- G/C M_IPMOPTS, M_IPMADDR and M_BWMETER.

Revision 1.64.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:21 2012 UTC (11 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.64: +5 -11 lines
Diff to previous 1.64 (colored)

sync with head

Revision 1.66.2.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:35:25 2012 UTC (12 years ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.66: +2 -10 lines
Diff to previous 1.66 (colored)

merge to -current.

Revision 1.67 / (download) - annotate - [select for diffs], Mon Dec 5 11:12:10 2011 UTC (12 years, 2 months ago) by hannken
Branch: MAIN
CVS Tags: yamt-pagecache-base4, netbsd-6-base, 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, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2
Branch point for: netbsd-6-1, netbsd-6-0, netbsd-6
Changes since 1.66: +2 -10 lines
Diff to previous 1.66 (colored)

The union file system is as stable as other layered file systems so
no longer print a warning to the console.

Gnats is waiting ...

Revision 1.66 / (download) - annotate - [select for diffs], Wed Nov 23 19:39:11 2011 UTC (12 years, 3 months ago) by hannken
Branch: MAIN
CVS Tags: jmcneill-usbmp-pre-base2, jmcneill-usbmp-base
Branch point for: jmcneill-usbmp
Changes since 1.65: +3 -3 lines
Diff to previous 1.65 (colored)

Use hashinit() / hashdone() to create the union node hash list.

Cleanup the hash lookup in union_allocvp().

Needs more work as there is still a possible deadlock between
union_allocvp() and vclean().

Revision 1.65 / (download) - annotate - [select for diffs], Mon Nov 21 18:29:22 2011 UTC (12 years, 3 months ago) by hannken
Branch: MAIN
Changes since 1.64: +4 -2 lines
Diff to previous 1.64 (colored)

Replace flag based union node locking with generic vnode lock, support
shared and nowait locks and protect un_uppervp and un_*sz with mutex.

Mark file system MPSAFE.

Revision 1.57.6.2 / (download) - annotate - [select for diffs], Sat Sep 17 18:54:38 2011 UTC (12 years, 5 months ago) by bouyer
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE
Branch point for: netbsd-5-2
Changes since 1.57.6.1: +9 -4 lines
Diff to previous 1.57.6.1 (colored) to branchpoint 1.57 (colored)

Pull up following revision(s) (requested by hannken in ticket #1667):
	sys/fs/union/union_vfsops.c: revision 1.64
Print the warning message on mount once.
=20
Should fix PR #42795 (patch to make mounting union filesystems less =
obnoxious)
=20
=20

Revision 1.64 / (download) - annotate - [select for diffs], Sun Aug 28 08:27:57 2011 UTC (12 years, 6 months ago) by hannken
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache
Changes since 1.63: +9 -4 lines
Diff to previous 1.63 (colored)

Print the warning message on mount once.

Should fix PR #42795 (patch to make mounting union filesystems less obnoxious)

Revision 1.61.4.2 / (download) - annotate - [select for diffs], Sat Mar 5 20:55:10 2011 UTC (12 years, 11 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.61.4.1: +3 -3 lines
Diff to previous 1.61.4.1 (colored) to branchpoint 1.61 (colored) next main 1.62 (colored)

sync with head

Revision 1.61.2.1 / (download) - annotate - [select for diffs], Tue Aug 17 06:47:23 2010 UTC (13 years, 6 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.61: +7 -4 lines
Diff to previous 1.61 (colored) next main 1.62 (colored)

Sync with HEAD.

Revision 1.52.4.5 / (download) - annotate - [select for diffs], Wed Aug 11 22:54:37 2010 UTC (13 years, 6 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.52.4.4: +7 -4 lines
Diff to previous 1.52.4.4 (colored) to branchpoint 1.52 (colored) next main 1.53 (colored)

sync with head.

Revision 1.63 / (download) - annotate - [select for diffs], Mon Jul 5 21:27:08 2010 UTC (13 years, 7 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, rmind-uvmplock-nbase, rmind-uvmplock-base, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.62: +3 -3 lines
Diff to previous 1.62 (colored)

union doesn't use layerfs (avoids panic in kernel bootstrap when
union is compiled in but none of the layer-using file systems are).

Revision 1.61.4.1 / (download) - annotate - [select for diffs], Sat Jul 3 01:19:52 2010 UTC (13 years, 7 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.61: +6 -3 lines
Diff to previous 1.61 (colored)

sync with head

Revision 1.62 / (download) - annotate - [select for diffs], Wed Jun 30 13:10:35 2010 UTC (13 years, 8 months ago) by hannken
Branch: MAIN
Changes since 1.61: +6 -3 lines
Diff to previous 1.61 (colored)

The directory vnode must be locked before we call VOP_WHITEOUT().

Should fix PR #23986 "problem mounting directories".

Revision 1.52.4.4 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:15 2010 UTC (13 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.52.4.3: +5 -5 lines
Diff to previous 1.52.4.3 (colored) to branchpoint 1.52 (colored)

sync with head

Revision 1.61 / (download) - annotate - [select for diffs], Fri Jan 8 11:35:09 2010 UTC (14 years, 1 month ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, uebayasi-xip-base1, uebayasi-xip-base
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.60: +5 -5 lines
Diff to previous 1.60 (colored)

The VATTR_NULL/VREF/VHOLD/HOLDRELE() macros lost their will to live
years ago when the kernel was modified to not alter ABI based on
DIAGNOSTIC, and now just call the respective function interfaces
(in lowercase).  Plenty of mix'n match upper/lowercase has creeped
into the tree since then.  Nuke the macros and convert all callsites
to lowercase.

no functional change

Revision 1.58.4.2 / (download) - annotate - [select for diffs], Thu Jul 23 23:32:34 2009 UTC (14 years, 7 months ago) by jym
Branch: jym-xensuspend
Changes since 1.58.4.1: +5 -8 lines
Diff to previous 1.58.4.1 (colored) to branchpoint 1.58 (colored) next main 1.59 (colored)

Sync with HEAD.

Revision 1.52.4.3 / (download) - annotate - [select for diffs], Sat Jul 18 14:53:22 2009 UTC (14 years, 7 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.52.4.2: +5 -8 lines
Diff to previous 1.52.4.2 (colored) to branchpoint 1.52 (colored)

sync with head.

Revision 1.60 / (download) - annotate - [select for diffs], Mon Jun 29 05:08:18 2009 UTC (14 years, 8 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.59: +5 -8 lines
Diff to previous 1.59 (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.58.4.1 / (download) - annotate - [select for diffs], Wed May 13 17:21:55 2009 UTC (14 years, 9 months ago) by jym
Branch: jym-xensuspend
Changes since 1.58: +4 -4 lines
Diff to previous 1.58 (colored)

Sync with HEAD.

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

Revision 1.52.4.2 / (download) - annotate - [select for diffs], Mon May 4 08:13:45 2009 UTC (14 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.52.4.1: +38 -27 lines
Diff to previous 1.52.4.1 (colored) to branchpoint 1.52 (colored)

sync with head.

Revision 1.57.4.2 / (download) - annotate - [select for diffs], Tue Apr 28 07:36:58 2009 UTC (14 years, 10 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.57.4.1: +4 -4 lines
Diff to previous 1.57.4.1 (colored) to branchpoint 1.57 (colored) next main 1.58 (colored)

Sync with HEAD.

Revision 1.57.6.1 / (download) - annotate - [select for diffs], Sat Apr 4 18:12:55 2009 UTC (14 years, 10 months ago) by snj
Branch: netbsd-5
CVS Tags: 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-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-1
Changes since 1.57: +4 -4 lines
Diff to previous 1.57 (colored)

Pull up following revision(s) (requested by ad in ticket #663):
	sys/fs/union/union_vfsops.c: revision 1.59
Turn up the volume on the warning message a bit and note that unionfs can
corrupt the underlying file system. This is an old problem but is now
much easier to trigger because VFS has gone fully multithreaded.

Revision 1.59 / (download) - annotate - [select for diffs], Sat Apr 4 10:32:49 2009 UTC (14 years, 10 months ago) by ad
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.58: +4 -4 lines
Diff to previous 1.58 (colored)

Turn up the volume on the warning message a bit and note that unionfs can
corrupt the underlying file system. This is an old problem but is now
much easier to trigger because VFS has gone fully multithreaded.

Revision 1.57.4.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:19:37 2009 UTC (15 years, 1 month ago) by skrll
Branch: nick-hppapmap
Changes since 1.57: +3 -3 lines
Diff to previous 1.57 (colored)

Sync with HEAD.

Revision 1.51.6.4 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:17 2009 UTC (15 years, 1 month ago) by mjf
Branch: mjf-devfs2
Changes since 1.51.6.3: +1 -1 lines
Diff to previous 1.51.6.3 (colored) to branchpoint 1.51 (colored) next main 1.52 (colored)

Sync with HEAD.

Revision 1.57.2.1 / (download) - annotate - [select for diffs], Sat Dec 13 01:15:07 2008 UTC (15 years, 2 months ago) by haad
Branch: haad-dm
Changes since 1.57: +3 -3 lines
Diff to previous 1.57 (colored) next main 1.58 (colored)

Update haad-dm branch to haad-dm-base2.

Revision 1.58 / (download) - annotate - [select for diffs], Fri Dec 5 13:05:37 2008 UTC (15 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: nick-hppapmap-base2, mjf-devfs2-base, haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: jym-xensuspend
Changes since 1.57: +3 -3 lines
Diff to previous 1.57 (colored)

PR kern/40110: null, overlay and umap modules loading -> panic (layerfs symbols not there)

Add a layerfs module.

Revision 1.53.2.2 / (download) - annotate - [select for diffs], Thu Sep 18 04:36:56 2008 UTC (15 years, 5 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.53.2.1: +34 -26 lines
Diff to previous 1.53.2.1 (colored) next main 1.54 (colored)

Sync with wrstuden-revivesa-base-2.

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

Sync with head.

Revision 1.51.6.3 / (download) - annotate - [select for diffs], Sun Jun 29 09:33:13 2008 UTC (15 years, 8 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.51.6.2: +32 -24 lines
Diff to previous 1.51.6.2 (colored) to branchpoint 1.51 (colored)

Sync with HEAD.

Revision 1.57 / (download) - annotate - [select for diffs], Sat Jun 28 01:34:05 2008 UTC (15 years, 8 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, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, matt-mips64-base2, haad-dm-base1
Branch point for: nick-hppapmap, netbsd-5, haad-dm
Changes since 1.56: +34 -26 lines
Diff to previous 1.56 (colored)

Create sysctl entries during module initialisation and destroy them
appropriately.

Many of these file systems are now ready for modularisation.

Revision 1.53.2.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:31:50 2008 UTC (15 years, 8 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.53: +23 -4 lines
Diff to previous 1.53 (colored)

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

Revision 1.52.2.2 / (download) - annotate - [select for diffs], Wed Jun 4 02:05:38 2008 UTC (15 years, 8 months ago) by yamt
Branch: yamt-pf42
Changes since 1.52.2.1: +5 -2 lines
Diff to previous 1.52.2.1 (colored) to branchpoint 1.52 (colored) next main 1.53 (colored)

sync with head

Revision 1.51.6.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:06 2008 UTC (15 years, 8 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.51.6.1: +22 -2 lines
Diff to previous 1.51.6.1 (colored) to branchpoint 1.51 (colored)

Sync with HEAD.

Revision 1.56 / (download) - annotate - [select for diffs], Sun May 18 13:56:12 2008 UTC (15 years, 9 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, wrstuden-revivesa-base-1, wrstuden-revivesa-base, hpcarm-cleanup-nbase
Branch point for: simonb-wapbl
Changes since 1.55: +5 -2 lines
Diff to previous 1.55 (colored)

Until these get fixed or replaced:

WARNING: the foo file system is experimental and may be unstable

Revision 1.52.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:35:06 2008 UTC (15 years, 9 months ago) by yamt
Branch: yamt-pf42
Changes since 1.52: +21 -4 lines
Diff to previous 1.52 (colored)

sync with head.

Revision 1.52.4.1 / (download) - annotate - [select for diffs], Fri May 16 02:25:22 2008 UTC (15 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.52: +21 -4 lines
Diff to previous 1.52 (colored)

sync with head.

Revision 1.55 / (download) - annotate - [select for diffs], Tue May 13 08:31:13 2008 UTC (15 years, 9 months ago) by simonb
Branch: MAIN
CVS Tags: yamt-pf42-base2, yamt-nfs-mp-base2
Changes since 1.54: +3 -3 lines
Diff to previous 1.54 (colored)

mnt_data is a pointer, set it to NULL not 0 when we're finished with it.

Revision 1.54 / (download) - annotate - [select for diffs], Sat May 10 02:26:09 2008 UTC (15 years, 9 months ago) by rumble
Branch: MAIN
Changes since 1.53: +19 -3 lines
Diff to previous 1.53 (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.53 / (download) - annotate - [select for diffs], Tue Apr 29 18:18:08 2008 UTC (15 years, 10 months ago) by ad
Branch: MAIN
Branch point for: wrstuden-revivesa
Changes since 1.52: +3 -2 lines
Diff to previous 1.52 (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.51.6.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:43:00 2008 UTC (15 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.51: +5 -13 lines
Diff to previous 1.51 (colored)

Sync with HEAD.

Revision 1.51.2.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:16:13 2008 UTC (15 years, 11 months ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.51: +5 -13 lines
Diff to previous 1.51 (colored) next main 1.52 (colored)

sync with head.

Revision 1.48.4.2 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:57 2008 UTC (15 years, 11 months ago) by matt
Branch: matt-armv6
Changes since 1.48.4.1: +24 -13 lines
Diff to previous 1.48.4.1 (colored) to branchpoint 1.48 (colored) next main 1.49 (colored)

sync with HEAD

Revision 1.27.2.8 / (download) - annotate - [select for diffs], Mon Mar 17 09:15:32 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.27.2.7: +5 -13 lines
Diff to previous 1.27.2.7 (colored) next main 1.28 (colored)

sync with head.

Revision 1.52 / (download) - annotate - [select for diffs], Wed Feb 27 19:59:48 2008 UTC (16 years ago) by matt
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, ad-socklock-base1
Branch point for: yamt-pf42, yamt-nfs-mp
Changes since 1.51: +5 -13 lines
Diff to previous 1.51 (colored)

Convert to ansi definitions from old-style definitons.

Revision 1.48.10.3 / (download) - annotate - [select for diffs], Mon Feb 18 21:06:44 2008 UTC (16 years ago) by mjf
Branch: mjf-devfs
Changes since 1.48.10.2: +21 -2 lines
Diff to previous 1.48.10.2 (colored) to branchpoint 1.48 (colored) next main 1.49 (colored)

Sync with HEAD.

Revision 1.27.2.7 / (download) - annotate - [select for diffs], Mon Feb 4 09:24:05 2008 UTC (16 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.27.2.6: +21 -2 lines
Diff to previous 1.27.2.6 (colored)

sync with head.

Revision 1.51 / (download) - annotate - [select for diffs], Mon Jan 28 14:31:17 2008 UTC (16 years, 1 month ago) by dholland
Branch: MAIN
CVS Tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, hpcarm-cleanup-base
Branch point for: mjf-devfs2, keiichi-mipv6
Changes since 1.50: +21 -2 lines
Diff to previous 1.50 (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.27.2.6 / (download) - annotate - [select for diffs], Mon Jan 21 09:45:57 2008 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.27.2.5: +3 -3 lines
Diff to previous 1.27.2.5 (colored)

sync with head

Revision 1.48.4.1 / (download) - annotate - [select for diffs], Wed Jan 9 01:55:55 2008 UTC (16 years, 1 month ago) by matt
Branch: matt-armv6
Changes since 1.48: +12 -23 lines
Diff to previous 1.48 (colored)

sync with HEAD

Revision 1.48.10.2 / (download) - annotate - [select for diffs], Thu Dec 27 00:45:52 2007 UTC (16 years, 2 months ago) by mjf
Branch: mjf-devfs
Changes since 1.48.10.1: +3 -3 lines
Diff to previous 1.48.10.1 (colored) to branchpoint 1.48 (colored)

Sync with HEAD.

Revision 1.49.2.1 / (download) - annotate - [select for diffs], Wed Dec 26 19:57:05 2007 UTC (16 years, 2 months ago) by ad
Branch: vmlocking2
Changes since 1.49: +3 -3 lines
Diff to previous 1.49 (colored) next main 1.50 (colored)

Sync with head.

Revision 1.48.2.2 / (download) - annotate - [select for diffs], Sun Dec 9 19:38:13 2007 UTC (16 years, 2 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.48.2.1: +3 -3 lines
Diff to previous 1.48.2.1 (colored) to branchpoint 1.48 (colored) next main 1.49 (colored)

Sync with HEAD.

Revision 1.50 / (download) - annotate - [select for diffs], Sat Dec 8 19:29:46 2007 UTC (16 years, 2 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, matt-armv6-base, jmcneill-pm-base, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386
Changes since 1.49: +3 -3 lines
Diff to previous 1.49 (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.48.10.1 / (download) - annotate - [select for diffs], Sat Dec 8 18:20:23 2007 UTC (16 years, 2 months ago) by mjf
Branch: mjf-devfs
Changes since 1.48: +11 -22 lines
Diff to previous 1.48 (colored)

Sync with HEAD.

Revision 1.27.2.5 / (download) - annotate - [select for diffs], Fri Dec 7 17:32:15 2007 UTC (16 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.27.2.4: +11 -22 lines
Diff to previous 1.27.2.4 (colored)

sync with head

Revision 1.48.2.1 / (download) - annotate - [select for diffs], Tue Nov 27 19:37:57 2007 UTC (16 years, 3 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.48: +11 -22 lines
Diff to previous 1.48 (colored)

Sync with HEAD. amd64 Xen support needs testing.

Revision 1.49 / (download) - annotate - [select for diffs], Mon Nov 26 19:01:58 2007 UTC (16 years, 3 months 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.48: +11 -22 lines
Diff to previous 1.48 (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.27.2.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:40:38 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.27.2.3: +22 -33 lines
Diff to previous 1.27.2.3 (colored)

sync with head.

Revision 1.43.6.3 / (download) - annotate - [select for diffs], Mon Aug 20 21:26:13 2007 UTC (16 years, 6 months ago) by ad
Branch: vmlocking
Changes since 1.43.6.2: +10 -18 lines
Diff to previous 1.43.6.2 (colored) to branchpoint 1.43 (colored) next main 1.44 (colored)

Sync with HEAD.

Revision 1.46.2.1 / (download) - annotate - [select for diffs], Wed Aug 15 13:49:03 2007 UTC (16 years, 6 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.46: +9 -17 lines
Diff to previous 1.46 (colored) next main 1.47 (colored)

Sync with HEAD.

Revision 1.48.12.2 / (download) - annotate - [select for diffs], Tue Jul 31 21:14:20 2007 UTC (16 years, 7 months ago) by pooka
Branch: matt-mips64
Changes since 1.48.12.1: +547 -0 lines
Diff to previous 1.48.12.1 (colored) to branchpoint 1.48 (colored) next main 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.48.12.1, Tue Jul 31 21:14:19 2007 UTC (16 years, 7 months ago) by pooka
Branch: matt-mips64
Changes since 1.48: +0 -547 lines
FILE REMOVED

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

Revision 1.48 / (download) - annotate - [select for diffs], Tue Jul 31 21:14:19 2007 UTC (16 years, 7 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, vmlocking-base, nick-csl-alignment-base5, matt-mips64-base, matt-armv6-prevmlocking, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: mjf-devfs, matt-mips64, matt-armv6, jmcneill-pm
Changes since 1.47: +8 -16 lines
Diff to previous 1.47 (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.47 / (download) - annotate - [select for diffs], Thu Jul 26 22:57:39 2007 UTC (16 years, 7 months ago) by pooka
Branch: MAIN
CVS Tags: hpcarm-cleanup
Changes since 1.46: +3 -3 lines
Diff to previous 1.46 (colored)

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

Revision 1.46 / (download) - annotate - [select for diffs], Tue Jul 17 11:19:34 2007 UTC (16 years, 7 months ago) by pooka
Branch: MAIN
CVS Tags: nick-csl-alignment-base
Branch point for: nick-csl-alignment
Changes since 1.45: +3 -3 lines
Diff to previous 1.45 (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.43.6.2 / (download) - annotate - [select for diffs], Sun Jul 15 13:27:34 2007 UTC (16 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.43.6.1: +18 -20 lines
Diff to previous 1.43.6.1 (colored) to branchpoint 1.43 (colored)

Sync with head.

Revision 1.45 / (download) - annotate - [select for diffs], Thu Jul 12 19:35:34 2007 UTC (16 years, 7 months ago) by dsl
Branch: MAIN
Changes since 1.44: +18 -20 lines
Diff to previous 1.44 (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.43.8.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:09:37 2007 UTC (16 years, 7 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.43: +2 -3 lines
Diff to previous 1.43 (colored) next main 1.44 (colored)

Sync with head.

Revision 1.43.2.1 / (download) - annotate - [select for diffs], Sun Apr 15 16:03:48 2007 UTC (16 years, 10 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.43: +2 -3 lines
Diff to previous 1.43 (colored) next main 1.44 (colored)

sync with head.

Revision 1.43.6.1 / (download) - annotate - [select for diffs], Tue Apr 10 13:26:37 2007 UTC (16 years, 10 months ago) by ad
Branch: vmlocking
Changes since 1.43: +2 -3 lines
Diff to previous 1.43 (colored)

Sync with head.

Revision 1.44 / (download) - annotate - [select for diffs], Sun Apr 8 11:20:42 2007 UTC (16 years, 10 months ago) by hannken
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, mjf-ufs-trans-base
Changes since 1.43: +2 -3 lines
Diff to previous 1.43 (colored)

Remove now obsolete vn_start_write() and vn_finished_write() and
corresponding flags.

Revert softdep_trackbufs() to its state before vn_start_write() was added.

Remove from struct mount now unneeded flags IMNT_SUSPEND* and
members mnt_writeopcountupper, mnt_writeopcountlower and mnt_leaf.

Welcome to 4.99.17

Revision 1.27.2.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:11:01 2007 UTC (17 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.27.2.2: +7 -23 lines
Diff to previous 1.27.2.2 (colored)

sync with head.

Revision 1.40.2.1 / (download) - annotate - [select for diffs], Sat Feb 17 23:27:46 2007 UTC (17 years ago) by tron
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: +8 -25 lines
Diff to previous 1.40 (colored) next main 1.41 (colored)

Apply patch (requested by chs in ticket #422):
- Fix various deadlock problems with nullfs and unionfs.
- Speed up path lookups by upto 25%.

Revision 1.37.2.4 / (download) - annotate - [select for diffs], Fri Feb 9 21:03:53 2007 UTC (17 years ago) by ad
Branch: newlock2
Changes since 1.37.2.3: +6 -23 lines
Diff to previous 1.37.2.3 (colored) to branchpoint 1.37 (colored) next main 1.38 (colored)

Sync with HEAD.

Revision 1.43 / (download) - annotate - [select for diffs], Sun Feb 4 15:03:20 2007 UTC (17 years ago) by chs
Branch: MAIN
CVS Tags: reinoud-bufcleanup, post-newlock2-merge, newlock2-nbase, newlock2-base, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp, vmlocking, mjf-ufs-trans
Changes since 1.42: +6 -23 lines
Diff to previous 1.42 (colored)

more fixes for the new vnode locking scheme:
 - don't use SAVESTART in calls to relookup() from unionfs,
   just vref() the desired vnode when we need to.
 - fix locking and refcounting in the unionfs EEXIST error cases.
 - release any vnode locks before calling VFS_ROOT(), vfs_busy() is enough.
   this allows us to simplify union_root() and fix PR 3006.
 - union_lock() doesn't handle shared lock requests correctly,
   so convert them to exclusive instead.  fixes PR 34775.
 - in relookup(), avoid reusing "dp" for different purposes,
   the error handling wasn't right.  (actually just get rid of dp.)
   also, change relookup() to ignore LOCKLEAF and always return the
   vnode locked since the callers already expect this.

Revision 1.37.2.3 / (download) - annotate - [select for diffs], Thu Feb 1 08:48:37 2007 UTC (17 years ago) by ad
Branch: newlock2
Changes since 1.37.2.2: +3 -2 lines
Diff to previous 1.37.2.2 (colored) to branchpoint 1.37 (colored)

Sync with head.

Revision 1.42 / (download) - annotate - [select for diffs], Fri Jan 19 14:49:10 2007 UTC (17 years, 1 month ago) by hannken
Branch: MAIN
Changes since 1.41: +3 -2 lines
Diff to previous 1.41 (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.37.2.2 / (download) - annotate - [select for diffs], Fri Jan 12 01:04:06 2007 UTC (17 years, 1 month ago) by ad
Branch: newlock2
Changes since 1.37.2.1: +4 -4 lines
Diff to previous 1.37.2.1 (colored) to branchpoint 1.37 (colored)

Sync with head.

Revision 1.27.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:50:04 2006 UTC (17 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.27.2.1: +18 -31 lines
Diff to previous 1.27.2.1 (colored)

sync with head.

Revision 1.37.4.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:18:43 2006 UTC (17 years, 2 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.37.4.1: +13 -13 lines
Diff to previous 1.37.4.1 (colored) to branchpoint 1.37 (colored) next main 1.38 (colored)

sync with head.

Revision 1.41 / (download) - annotate - [select for diffs], Sat Dec 9 16:11:51 2006 UTC (17 years, 2 months ago) by chs
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3
Changes since 1.40: +4 -4 lines
Diff to previous 1.40 (colored)

a smorgasbord of improvements to vnode locking and path lookup:
 - LOCKPARENT is no longer relevant for lookup(), relookup() or VOP_LOOKUP().
   these now always return the parent vnode locked.  namei() works as before.
   lookup() and various other paths no longer acquire vnode locks in the
   wrong order via vrele().  fixes PR 32535.
   as a nice side effect, path lookup is also up to 25% faster.
 - the above allows us to get rid of PDIRUNLOCK.
 - also get rid of WANTPARENT (just use LOCKPARENT and unlock it).
 - remove an assumption in layer_node_find() that all file systems implement
   a recursive VOP_LOCK() (unionfs doesn't).
 - require that all file systems supply vfs_vptofh and vfs_fhtovp routines.
   fill in eopnotsupp() for file systems that don't support being exported
   and remove the checks for NULL.  (layerfs calls these without checking.)
 - in union_lookup1(), don't change refcounts in the ISDOTDOT case, just
   adjust which vnode is locked.  fixes PR 33374.
 - apply fixes for ufs_rename() from ufs_vnops.c rev. 1.61 to ext2fs_rename().

Revision 1.37.2.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:39:21 2006 UTC (17 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.37: +13 -28 lines
Diff to previous 1.37 (colored)

Sync with head.

Revision 1.40 / (download) - annotate - [select for diffs], Thu Nov 16 01:33:37 2006 UTC (17 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-4-base
Branch point for: netbsd-4
Changes since 1.39: +11 -11 lines
Diff to previous 1.39 (colored)

__unused removal on arguments; approved by core.

Revision 1.37.4.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:07:09 2006 UTC (17 years, 4 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.37: +13 -28 lines
Diff to previous 1.37 (colored)

sync with head

Revision 1.39 / (download) - annotate - [select for diffs], Fri Oct 20 18:58:12 2006 UTC (17 years, 4 months ago) by reinoud
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.38: +4 -5 lines
Diff to previous 1.38 (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.38 / (download) - annotate - [select for diffs], Thu Oct 12 01:32:14 2006 UTC (17 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.37: +11 -25 lines
Diff to previous 1.37 (colored)

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

Revision 1.32.6.4 / (download) - annotate - [select for diffs], Thu Sep 14 12:31:48 2006 UTC (17 years, 5 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.32.6.3: +4 -2 lines
Diff to previous 1.32.6.3 (colored) to branchpoint 1.32 (colored) next main 1.33 (colored)

sync with head.

Revision 1.32.2.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:57:15 2006 UTC (17 years, 5 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.32: +15 -12 lines
Diff to previous 1.32 (colored) next main 1.33 (colored)

sync with head

Revision 1.37 / (download) - annotate - [select for diffs], Sun Sep 3 21:29:37 2006 UTC (17 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.36: +4 -2 lines
Diff to previous 1.36 (colored)

add missing initializers

Revision 1.32.6.3 / (download) - annotate - [select for diffs], Fri Aug 11 15:45:45 2006 UTC (17 years, 6 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.32.6.2: +3 -3 lines
Diff to previous 1.32.6.2 (colored) to branchpoint 1.32 (colored)

sync with head

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

Use the LWP cached credentials where sane.

Revision 1.27.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:09:37 2006 UTC (17 years, 8 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.27: +41 -101 lines
Diff to previous 1.27 (colored)

sync with head.

Revision 1.32.4.2 / (download) - annotate - [select for diffs], Thu Jun 1 22:38:06 2006 UTC (17 years, 9 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.32.4.1: +8 -7 lines
Diff to previous 1.32.4.1 (colored) to branchpoint 1.32 (colored) next main 1.33 (colored)

Sync with head.

Revision 1.32.10.2 / (download) - annotate - [select for diffs], Wed May 24 15:50:40 2006 UTC (17 years, 9 months ago) by tron
Branch: peter-altq
Changes since 1.32.10.1: +8 -10 lines
Diff to previous 1.32.10.1 (colored) to branchpoint 1.32 (colored) next main 1.33 (colored)

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

Revision 1.32.6.2 / (download) - annotate - [select for diffs], Wed May 24 10:58:40 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.32.6.1: +8 -10 lines
Diff to previous 1.32.6.1 (colored) to branchpoint 1.32 (colored)

sync with head.

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

integrate kauth.

Revision 1.32.8.3 / (download) - annotate - [select for diffs], Sat May 6 23:31:30 2006 UTC (17 years, 9 months ago) by christos
Branch: elad-kernelauth
Changes since 1.32.8.2: +3 -2 lines
Diff to previous 1.32.8.2 (colored) to branchpoint 1.32 (colored) next main 1.33 (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.32.4.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:39:58 2006 UTC (17 years, 10 months ago) by simonb
Branch: simonb-timecounters
Changes since 1.32: +7 -7 lines
Diff to previous 1.32 (colored)

Sync with head.

Revision 1.32.8.2 / (download) - annotate - [select for diffs], Wed Apr 19 05:03:56 2006 UTC (17 years, 10 months ago) by elad
Branch: elad-kernelauth
Changes since 1.32.8.1: +7 -7 lines
Diff to previous 1.32.8.1 (colored) to branchpoint 1.32 (colored)

sync with head.

Revision 1.34 / (download) - annotate - [select for diffs], Fri Apr 14 22:00:14 2006 UTC (17 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: elad-kernelauth-base
Changes since 1.33: +2 -5 lines
Diff to previous 1.33 (colored)

Coverity CID 715: Remove dead code.

Revision 1.32.6.1 / (download) - annotate - [select for diffs], Sat Apr 1 12:07:38 2006 UTC (17 years, 11 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.32: +7 -4 lines
Diff to previous 1.32 (colored)

sync with head.

Revision 1.32.10.1 / (download) - annotate - [select for diffs], Tue Mar 28 09:42:26 2006 UTC (17 years, 11 months ago) by tron
Branch: peter-altq
Changes since 1.32: +7 -4 lines
Diff to previous 1.32 (colored)

Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.

Revision 1.33 / (download) - annotate - [select for diffs], Mon Mar 20 19:54:15 2006 UTC (17 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pdpolicy-base4, yamt-pdpolicy-base3
Changes since 1.32: +7 -4 lines
Diff to previous 1.32 (colored)

PR/32986: Kouichirou Hiratsuka: Don't proceed with unmounting the filesystem
if vflush failed. Thank to Jeff Ito for adopting a similar fix from FreeBSD.

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

Adapt to kernel authorization KPI.

Revision 1.31.2.1 / (download) - annotate - [select for diffs], Sun Jan 15 10:02:56 2006 UTC (18 years, 1 month ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.31: +4 -26 lines
Diff to previous 1.31 (colored) next main 1.32 (colored)

sync with head.

Revision 1.25.2.1.2.1 / (download) - annotate - [select for diffs], Sun Jan 8 15:45:15 2006 UTC (18 years, 1 month ago) by riz
Branch: netbsd-3-0
CVS Tags: netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE
Changes since 1.25.2.1: +2 -24 lines
Diff to previous 1.25.2.1 (colored) next main 1.25.2.2 (colored)

Pull up following revision(s) (requested by wrstuden in ticket #1091):
	sys/fs/union/union_vfsops.c: revision 1.32
Change union_unmount() to not play with the fs root vnode explicitly.
Let it get recycled along with all of the others. This is important
as if the root vnode has already been reclaimed, then we get a panic
when we try to vget it.
This addresses PR: kern/31382

Revision 1.25.2.2 / (download) - annotate - [select for diffs], Sun Jan 8 15:45:11 2006 UTC (18 years, 1 month ago) by riz
Branch: netbsd-3
CVS Tags: 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
Changes since 1.25.2.1: +2 -24 lines
Diff to previous 1.25.2.1 (colored) to branchpoint 1.25 (colored) next main 1.26 (colored)

Pull up following revision(s) (requested by wrstuden in ticket #1091):
	sys/fs/union/union_vfsops.c: revision 1.32
Change union_unmount() to not play with the fs root vnode explicitly.
Let it get recycled along with all of the others. This is important
as if the root vnode has already been reclaimed, then we get a panic
when we try to vget it.
This addresses PR: kern/31382

Revision 1.11.2.2 / (download) - annotate - [select for diffs], Fri Jan 6 23:53:37 2006 UTC (18 years, 1 month ago) by riz
Branch: netbsd-2-0
Changes since 1.11.2.1: +2 -24 lines
Diff to previous 1.11.2.1 (colored) to branchpoint 1.11 (colored) next main 1.12 (colored)

Pull up following revision(s) (requested by wrstuden in ticket #10213):
	sys/fs/union/union_vfsops.c: revision 1.32 via patch
Change union_unmount() to not play with the fs root vnode explicitly.
Let it get recycled along with all of the others. This is important
as if the root vnode has already been reclaimed, then we get a panic
when we try to vget it.
This addresses PR: kern/31382

Revision 1.11.2.1.2.1 / (download) - annotate - [select for diffs], Fri Jan 6 23:53:26 2006 UTC (18 years, 1 month ago) by riz
Branch: netbsd-2
Changes since 1.11.2.1: +4 -26 lines
Diff to previous 1.11.2.1 (colored) next main 1.11.2.2 (colored)

Pull up following revision(s) (requested by wrstuden in ticket #10213):
	sys/fs/union/union_vfsops.c: revision 1.32 via patch
Change union_unmount() to not play with the fs root vnode explicitly.
Let it get recycled along with all of the others. This is important
as if the root vnode has already been reclaimed, then we get a panic
when we try to vget it.
This addresses PR: kern/31382

Revision 1.11.2.1.4.1 / (download) - annotate - [select for diffs], Fri Jan 6 23:53:22 2006 UTC (18 years, 1 month ago) by riz
Branch: netbsd-2-1
Changes since 1.11.2.1: +4 -26 lines
Diff to previous 1.11.2.1 (colored) next main 1.11.2.2 (colored)

Pull up following revision(s) (requested by wrstuden in ticket #10213):
	sys/fs/union/union_vfsops.c: revision 1.32 via patch
Change union_unmount() to not play with the fs root vnode explicitly.
Let it get recycled along with all of the others. This is important
as if the root vnode has already been reclaimed, then we get a panic
when we try to vget it.
This addresses PR: kern/31382

Revision 1.32 / (download) - annotate - [select for diffs], Thu Jan 5 20:31:33 2006 UTC (18 years, 1 month ago) by wrstuden
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, peter-altq, elad-kernelauth
Changes since 1.31: +4 -26 lines
Diff to previous 1.31 (colored)

Change union_unmount() to not play with the fs root vnode explicitly.
Let it get recycled along with all of the others. This is important
as if the root vnode has already been reclaimed, then we get a panic
when we try to vget it.

This addresses PR: kern/31382

Revision 1.31 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:29 2005 UTC (18 years, 2 months ago) by christos
Branch: MAIN
Branch point for: yamt-uio_vmspace
Changes since 1.30: +26 -26 lines
Diff to previous 1.30 (colored)

merge ktrace-lwp.

Revision 1.8.2.9 / (download) - annotate - [select for diffs], Thu Nov 10 14:09:44 2005 UTC (18 years, 3 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.8.2.8: +19 -57 lines
Diff to previous 1.8.2.8 (colored) next main 1.9 (colored)

Sync with HEAD. Here we go again...

Revision 1.30 / (download) - annotate - [select for diffs], Fri Sep 23 12:10:33 2005 UTC (18 years, 5 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.29: +4 -43 lines
Diff to previous 1.29 (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.29 / (download) - annotate - [select for diffs], Tue Aug 30 19:11:43 2005 UTC (18 years, 6 months ago) by xtraeme
Branch: MAIN
Changes since 1.28: +15 -15 lines
Diff to previous 1.28 (colored)

Remove __P()

Revision 1.25.2.1 / (download) - annotate - [select for diffs], Sun Aug 28 09:58:59 2005 UTC (18 years, 6 months ago) by tron
Branch: netbsd-3
CVS Tags: 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
Branch point for: netbsd-3-0
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (colored)

Pull up following revision(s) (requested by nakayama in ticket #708):
	sys/fs/union/union_vfsops.c: revision 1.28
statvfs(2) returns bogus result from union mounted file systems with
`-r' option, since it uses uninitialized buffer in the case of no
lower-layer file system.
So, add M_ZERO to malloc(9) flags to initialize the buffer.

Revision 1.28 / (download) - annotate - [select for diffs], Wed Aug 24 15:21:28 2005 UTC (18 years, 6 months ago) by nakayama
Branch: MAIN
Changes since 1.27: +3 -3 lines
Diff to previous 1.27 (colored)

statvfs(2) returns bogus result from union mounted file systems with
`-r' option, since it uses uninitialized buffer in the case of no
lower-layer file system.

So, add M_ZERO to malloc(9) flags to initialize the buffer.

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

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

Revision 1.24.2.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:22 2005 UTC (18 years, 10 months ago) by kent
Branch: kent-audio2
Changes since 1.24: +7 -6 lines
Diff to previous 1.24 (colored) next main 1.25 (colored)

sync with -current

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

Sync with HEAD.

Revision 1.26 / (download) - annotate - [select for diffs], Tue Mar 29 02:41:05 2005 UTC (18 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: kent-audio2-base
Changes since 1.25: +3 -2 lines
Diff to previous 1.25 (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.24.4.1 / (download) - annotate - [select for diffs], Sat Mar 19 08:36:11 2005 UTC (18 years, 11 months ago) by yamt
Branch: yamt-km
Changes since 1.24: +6 -6 lines
Diff to previous 1.24 (colored) next main 1.25 (colored)

sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.8.2.7 / (download) - annotate - [select for diffs], Fri Mar 4 16:51:46 2005 UTC (18 years, 11 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.8.2.6: +6 -6 lines
Diff to previous 1.8.2.6 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.25 / (download) - annotate - [select for diffs], Sat Feb 26 22:58:55 2005 UTC (19 years ago) by perry
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, netbsd-3-base
Branch point for: netbsd-3
Changes since 1.24: +6 -6 lines
Diff to previous 1.24 (colored)

nuke trailing whitespace

Revision 1.8.2.6 / (download) - annotate - [select for diffs], Mon Jan 17 19:32:25 2005 UTC (19 years, 1 month ago) by skrll
Branch: ktrace-lwp
Changes since 1.8.2.5: +3 -2 lines
Diff to previous 1.8.2.5 (colored)

Sync with HEAD.

Revision 1.24 / (download) - annotate - [select for diffs], Sun Jan 2 16:08:28 2005 UTC (19 years, 1 month ago) by thorpej
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge
Branch point for: yamt-km, kent-audio2
Changes since 1.23: +3 -2 lines
Diff to previous 1.23 (colored)

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

From FreeBSD.

Revision 1.8.2.5 / (download) - annotate - [select for diffs], Tue Sep 21 13:35:02 2004 UTC (19 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.8.2.4: +26 -26 lines
Diff to previous 1.8.2.4 (colored)

Fix the sync with head I botched.

Revision 1.8.2.4 / (download) - annotate - [select for diffs], Sat Sep 18 14:53:02 2004 UTC (19 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.8.2.3: +26 -26 lines
Diff to previous 1.8.2.3 (colored)

Sync with HEAD.

Revision 1.8.2.3 / (download) - annotate - [select for diffs], Tue Aug 24 17:57:37 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.8.2.2: +10 -15 lines
Diff to previous 1.8.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.8.2.2 / (download) - annotate - [select for diffs], Tue Aug 3 10:52:42 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.8.2.1: +94 -49 lines
Diff to previous 1.8.2.1 (colored)

Sync with HEAD

Revision 1.23 / (download) - annotate - [select for diffs], Thu Jul 1 10:03:29 2004 UTC (19 years, 8 months ago) by hannken
Branch: MAIN
CVS Tags: kent-audio1-base, kent-audio1
Changes since 1.22: +3 -2 lines
Diff to previous 1.22 (colored)

Keep a pointer to the leaf mount. Needed for write gating where a
file system gets suspended and has layered mounts above it.

Welcome to 2.0G

Reviewed by: Bill Studenmund <wrstuden@netbsd.org>

Revision 1.22 / (download) - annotate - [select for diffs], Mon May 31 02:04:35 2004 UTC (19 years, 9 months ago) by wrstuden
Branch: MAIN
Changes since 1.21: +3 -4 lines
Diff to previous 1.21 (colored)

Revert last two changes. Since union vnode private data do not follow
layerfs guidelines, whenever layerfs_snapshot() does something, it
won't be correct for unionfs.

Revision 1.21 / (download) - annotate - [select for diffs], Sun May 30 09:48:37 2004 UTC (19 years, 9 months ago) by tron
Branch: MAIN
Changes since 1.20: +3 -2 lines
Diff to previous 1.20 (colored)

Include "miscfs/genfs/layer_extern.h" to get prototype for
layerfs_snapshot().

Revision 1.20 / (download) - annotate - [select for diffs], Sat May 29 23:49:31 2004 UTC (19 years, 9 months ago) by wrstuden
Branch: MAIN
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored)

unionfs can use layerfs_snapshot() too.

Revision 1.11.2.1 / (download) - annotate - [select for diffs], Sat May 29 09:04:14 2004 UTC (19 years, 9 months ago) by tron
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-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
Branch point for: netbsd-2-1, netbsd-2
Changes since 1.11: +4 -3 lines
Diff to previous 1.11 (colored)

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

Revision 1.19 / (download) - annotate - [select for diffs], Tue May 25 14:54:57 2004 UTC (19 years, 9 months ago) by hannken
Branch: MAIN
Changes since 1.18: +3 -2 lines
Diff to previous 1.18 (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.18 / (download) - annotate - [select for diffs], Tue May 25 04:44:44 2004 UTC (19 years, 9 months ago) by atatat
Branch: MAIN
Changes since 1.17: +4 -3 lines
Diff to previous 1.17 (colored)

Sysctl descriptions under vfs subtree

Revision 1.17 / (download) - annotate - [select for diffs], Mon May 24 03:09:48 2004 UTC (19 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.16: +33 -18 lines
Diff to previous 1.16 (colored)

Can't do the trick with using sbp as temporary storage; allocate memory
instead.

Revision 1.16 / (download) - annotate - [select for diffs], Sat May 22 22:13:50 2004 UTC (19 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored)

declare the correct variable; thanks Juan RP.

Revision 1.15 / (download) - annotate - [select for diffs], Sat May 22 20:42:08 2004 UTC (19 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.14: +15 -30 lines
Diff to previous 1.14 (colored)

simplify stats taking and avoid the extra copy on the stack.

Revision 1.14 / (download) - annotate - [select for diffs], Wed May 12 02:07:39 2004 UTC (19 years, 9 months ago) by jrf
Branch: MAIN
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored)

caddr_t -> void * and removal of some more casts.

Revision 1.13 / (download) - annotate - [select for diffs], Tue Apr 27 17:37:31 2004 UTC (19 years, 10 months ago) by jrf
Branch: MAIN
Changes since 1.12: +4 -4 lines
Diff to previous 1.12 (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.12 / (download) - annotate - [select for diffs], Wed Apr 21 01:05:38 2004 UTC (19 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.11: +17 -14 lines
Diff to previous 1.11 (colored)

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

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

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

Revision 1.10 / (download) - annotate - [select for diffs], Thu Dec 4 19:38:23 2003 UTC (20 years, 2 months ago) by atatat
Branch: MAIN
Changes since 1.9: +19 -15 lines
Diff to previous 1.9 (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.9 / (download) - annotate - [select for diffs], Thu Aug 7 16:31:40 2003 UTC (20 years, 6 months ago) by agc
Branch: MAIN
Changes since 1.8: +35 -2 lines
Diff to previous 1.8 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.

Revision 1.8.2.1 / (download) - annotate - [select for diffs], Thu Jul 3 01:32:56 2003 UTC (20 years, 8 months ago) by wrstuden
Branch: ktrace-lwp
Changes since 1.8: +42 -37 lines
Diff to previous 1.8 (colored)

LWP-ify union fs.

Note: These changes suffer from the same cnp->cn_lwp issue noted for
ufs. They will need to get fixed at the same time as ufs. The fix is to
add struct lwp * as a parameter to some VOPs.

Note also that most of the cn_lwp references used to be cn_proc references,
so if cnp->cn_lwp is bad to use, unionfs's been naughty for quite some
time.

Revision 1.8 / (download) - annotate - [select for diffs], Sun Jun 29 22:31:14 2003 UTC (20 years, 8 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.7: +27 -28 lines
Diff to previous 1.7 (colored)

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

Revision 1.7 / (download) - annotate - [select for diffs], Sun Jun 29 18:43:27 2003 UTC (20 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.6: +10 -14 lines
Diff to previous 1.6 (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.6 / (download) - annotate - [select for diffs], Sun Jun 29 15:11:48 2003 UTC (20 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.5: +4 -4 lines
Diff to previous 1.5 (colored)

Fix problems with Darren's ktrace/lwp changes.

Revision 1.5 / (download) - annotate - [select for diffs], Sun Jun 29 09:56:33 2003 UTC (20 years, 8 months ago) by darrenr
Branch: MAIN
Changes since 1.4: +39 -34 lines
Diff to previous 1.4 (colored)

More changes for providing lwpid for ktrace (sparc GENERIC built)

Revision 1.4 / (download) - annotate - [select for diffs], Wed Apr 16 21:44:20 2003 UTC (20 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.3: +7 -10 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], Mon Mar 17 10:28:41 2003 UTC (20 years, 11 months ago) by jdolecek
Branch: MAIN
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored)

add comment for one NULL union_vfsops member

Revision 1.2 / (download) - annotate - [select for diffs], Mon Mar 17 09:11:31 2003 UTC (20 years, 11 months ago) by jdolecek
Branch: MAIN
Changes since 1.1: +7 -2 lines
Diff to previous 1.1 (colored)

make it possible for UNION fs to be loaded via LKM - instead of
having some #ifdef UNION code in vfs_vnops.c, introduce variable
'vn_union_readdir_hook' which is set to address of appropriate
vn_readdir() hook by union filesystem when it's loaded & mounted

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 16 08:26:54 2003 UTC (20 years, 11 months ago) by jdolecek
Branch: MAIN

move union filesystem code from sys/miscfs/union to sys/fs/union

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>