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


Keyword substitution: kv
Default branch: MAIN


Revision 1.85.2.2: download - view: text, markup, annotated - select for diffs
Fri Sep 20 09:51:40 2024 UTC (2 months, 2 weeks ago) by martin
Branches: netbsd-10
Diff to: previous 1.85.2.1: preferred, colored; branchpoint 1.85: preferred, colored; next MAIN 1.86: preferred, colored
Changes since revision 1.85.2.1: +6 -5 lines
Pull up following revision(s) (requested by rin in ticket #873):

	sys/fs/union/union_vfsops.c: revision 1.87

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

Revision 1.88: download - view: text, markup, annotated - select for diffs
Sat May 18 00:04:46 2024 UTC (6 months, 2 weeks ago) by thorpej
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +2 -3 lines
Remove unnecessary include of <sys/malloc.h>.

Revision 1.87: download - view: text, markup, annotated - select for diffs
Mon Feb 13 08:39:40 2023 UTC (21 months, 3 weeks ago) by hannken
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +6 -5 lines
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 - view: text, markup, annotated - select for diffs
Mon Feb 6 17:04:48 2023 UTC (21 months, 4 weeks ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE
Diff to: previous 1.79: preferred, colored; next MAIN 1.80: preferred, colored
Changes since revision 1.79: +10 -3 lines
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 - view: text, markup, annotated - select for diffs
Mon Feb 6 16:57:24 2023 UTC (21 months, 4 weeks ago) by martin
Branches: netbsd-10
CVS tags: netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +10 -3 lines
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 - view: text, markup, annotated - select for diffs
Mon Feb 6 10:33:32 2023 UTC (21 months, 4 weeks ago) by hannken
Branches: MAIN
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +10 -3 lines
Set IMNT_MPSAFE only if all lower layers have it set.

Revision 1.85: download - view: text, markup, annotated - select for diffs
Mon Nov 21 10:37:14 2022 UTC (2 years ago) by hannken
Branches: MAIN
CVS tags: netbsd-10-base
Branch point for: netbsd-10
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +8 -4 lines
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 - view: text, markup, annotated - select for diffs
Fri Nov 4 11:20:39 2022 UTC (2 years, 1 month ago) by hannken
Branches: MAIN
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +5 -3 lines
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 - view: text, markup, annotated - select for diffs
Mon Sep 12 13:11:41 2022 UTC (2 years, 2 months ago) by christos
Branches: MAIN
CVS tags: bouyer-sunxi-drm-base, bouyer-sunxi-drm
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +3 -3 lines
kmem_alloc -> kmem_zalloc, thanks Rin.

Revision 1.82: download - view: text, markup, annotated - select for diffs
Sun Sep 11 15:42:29 2022 UTC (2 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +34 -43 lines
- avoid another credential leak on error from Chris J-D
  (chris at accessvector dot net)
- KNF
- use kmem

Revision 1.78.14.2: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:08:51 2020 UTC (4 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.78.14.1: preferred, colored; branchpoint 1.78: preferred, colored; next MAIN 1.79: preferred, colored
Changes since revision 1.78.14.1: +21 -19 lines
Merge changes from current as of 20200406

Revision 1.81: download - view: text, markup, annotated - select for diffs
Mon Mar 16 21:20:10 2020 UTC (4 years, 8 months ago) by pgoyette
Branches: 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
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +18 -16 lines
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 - view: text, markup, annotated - select for diffs
Fri Jan 17 21:47:35 2020 UTC (4 years, 10 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.79: preferred, colored; next MAIN 1.80: preferred, colored
Changes since revision 1.79: +5 -5 lines
Sync with head.

Revision 1.80: download - view: text, markup, annotated - select for diffs
Fri Jan 17 20:08:08 2020 UTC (4 years, 10 months ago) by ad
Branches: MAIN
CVS tags: is-mlppp-base, is-mlppp, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +5 -5 lines
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 - view: text, markup, annotated - select for diffs
Mon Jun 10 22:09:02 2019 UTC (5 years, 5 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +3 -4 lines
Sync with HEAD

Revision 1.79: download - view: text, markup, annotated - select for diffs
Wed Feb 20 10:05:59 2019 UTC (5 years, 9 months ago) by hannken
Branches: 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
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +3 -4 lines
Set "mnt_lower" before the first file system operation on the new file system.

Revision 1.68.2.2: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:38:44 2017 UTC (7 years ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.68.2.1: preferred, colored; branchpoint 1.68: preferred, colored; next MAIN 1.69: preferred, colored
Changes since revision 1.68.2.1: +21 -7 lines
update from HEAD

Revision 1.73.2.3: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:53:06 2017 UTC (7 years, 3 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.73.2.2: preferred, colored; branchpoint 1.73: preferred, colored; next MAIN 1.74: preferred, colored
Changes since revision 1.73.2.2: +8 -3 lines
Sync with HEAD

Revision 1.75.2.2: download - view: text, markup, annotated - select for diffs
Wed Apr 26 02:53:26 2017 UTC (7 years, 7 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.75.2.1: preferred, colored; branchpoint 1.75: preferred, colored; next MAIN 1.76: preferred, colored
Changes since revision 1.75.2.1: +4 -2 lines
Sync with HEAD

Revision 1.75.4.1: download - view: text, markup, annotated - select for diffs
Fri Apr 21 16:54:02 2017 UTC (7 years, 7 months ago) by bouyer
Branches: bouyer-socketcan
Diff to: previous 1.75: preferred, colored; next MAIN 1.76: preferred, colored
Changes since revision 1.75: +8 -3 lines
Sync with HEAD

Revision 1.78: download - view: text, markup, annotated - select for diffs
Sat Apr 1 19:35:56 2017 UTC (7 years, 8 months ago) by riastradh
Branches: 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-3-RELEASE, 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
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +4 -2 lines
KASSERT(mutex_owned(vp->v_interlock)) in vnode iterator selector.

Revision 1.75.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 20 06:57:47 2017 UTC (7 years, 8 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +6 -3 lines
Sync with HEAD

Revision 1.77: download - view: text, markup, annotated - select for diffs
Mon Mar 6 10:10:07 2017 UTC (7 years, 9 months ago) by hannken
Branches: MAIN
CVS tags: pgoyette-localcount-20170320
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +4 -2 lines
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 - view: text, markup, annotated - select for diffs
Fri Feb 17 08:31:25 2017 UTC (7 years, 9 months ago) by hannken
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +4 -3 lines
Add generic genfs_suspendctl() and use it for all file systems.
Layered file systems need work.

Revision 1.73.2.2: download - view: text, markup, annotated - select for diffs
Tue Sep 22 12:06:06 2015 UTC (9 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.73.2.1: preferred, colored; branchpoint 1.73: preferred, colored
Changes since revision 1.73.2.1: +15 -5 lines
Sync with HEAD

Revision 1.75: download - view: text, markup, annotated - select for diffs
Thu Jul 23 09:45:21 2015 UTC (9 years, 4 months ago) by hannken
Branches: 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
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +15 -5 lines
union_unmount: use vfs_vnode_iterator to count attached vnodes.

Revision 1.73.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 6 15:18:19 2015 UTC (9 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +3 -4 lines
Sync with HEAD

Revision 1.74: download - view: text, markup, annotated - select for diffs
Mon Feb 16 10:22:00 2015 UTC (9 years, 9 months ago) by hannken
Branches: MAIN
CVS tags: nick-nhusb-base-20150606, nick-nhusb-base-20150406
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +3 -4 lines
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 - view: text, markup, annotated - select for diffs
Sat Oct 18 08:33:29 2014 UTC (10 years, 1 month ago) by snj
Branches: MAIN
CVS tags: nick-nhusb-base
Branch point for: nick-nhusb
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +3 -3 lines
src is too big these days to tolerate superfluous apostrophes.  It's
"its", people!

Revision 1.68.2.1: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:04:28 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +31 -35 lines
Rebase to HEAD as of a few days ago.

Revision 1.71.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:55:54 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.71: preferred, colored; next MAIN 1.72: preferred, colored
Changes since revision 1.71: +4 -2 lines
Rebase.

Revision 1.64.2.3: download - view: text, markup, annotated - select for diffs
Thu May 22 11:41:02 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.64.2.2: preferred, colored; branchpoint 1.64: preferred, colored; next MAIN 1.65: preferred, colored
Changes since revision 1.64.2.2: +31 -35 lines
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 - view: text, markup, annotated - select for diffs
Sun May 18 17:46:07 2014 UTC (10 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.68: preferred, colored; next MAIN 1.69: preferred, colored
Changes since revision 1.68: +31 -35 lines
sync with head

Revision 1.57.6.2.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 28 16:05:36 2014 UTC (10 years, 7 months ago) by sborrill
Branches: netbsd-5-2
CVS tags: netbsd-5-2-3-RELEASE
Diff to: previous 1.57.6.2: preferred, colored; next MAIN 1.57.6.3: preferred, colored
Changes since revision 1.57.6.2: +4 -2 lines
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 - view: text, markup, annotated - select for diffs
Mon Apr 28 16:03:15 2014 UTC (10 years, 7 months ago) by sborrill
Branches: netbsd-5-1
CVS tags: netbsd-5-1-5-RELEASE
Diff to: previous 1.57.6.1: preferred, colored; next MAIN 1.57.6.2: preferred, colored
Changes since revision 1.57.6.1: +4 -2 lines
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 - view: text, markup, annotated - select for diffs
Fri Apr 25 15:43:50 2014 UTC (10 years, 7 months ago) by sborrill
Branches: netbsd-5
Diff to: previous 1.57.6.2: preferred, colored; branchpoint 1.57: preferred, colored; next MAIN 1.58: preferred, colored
Changes since revision 1.57.6.2: +4 -2 lines
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 - view: text, markup, annotated - select for diffs
Mon Apr 21 10:17:48 2014 UTC (10 years, 7 months ago) by bouyer
Branches: netbsd-6-1
CVS tags: netbsd-6-1-5-RELEASE
Diff to: previous 1.67: preferred, colored; next MAIN 1.68: preferred, colored
Changes since revision 1.67: +4 -2 lines
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 - view: text, markup, annotated - select for diffs
Mon Apr 21 10:15:37 2014 UTC (10 years, 7 months ago) by bouyer
Branches: netbsd-6-0
CVS tags: netbsd-6-0-6-RELEASE
Diff to: previous 1.67: preferred, colored; next MAIN 1.68: preferred, colored
Changes since revision 1.67: +4 -2 lines
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 - view: text, markup, annotated - select for diffs
Mon Apr 21 10:14:18 2014 UTC (10 years, 7 months ago) by bouyer
Branches: netbsd-6
Diff to: previous 1.67: preferred, colored; next MAIN 1.68: preferred, colored
Changes since revision 1.67: +4 -2 lines
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 - view: text, markup, annotated - select for diffs
Wed Apr 16 18:55:19 2014 UTC (10 years, 7 months ago) by maxv
Branches: 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
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +4 -2 lines
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 - view: text, markup, annotated - select for diffs
Sun Mar 23 15:21:16 2014 UTC (10 years, 8 months ago) by hannken
Branches: MAIN
CVS tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15
Branch point for: tls-earlyentropy
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +24 -27 lines
Change all vfsops to use C99 designated initializers.

No functional changes intended.

Revision 1.70: download - view: text, markup, annotated - select for diffs
Tue Feb 25 18:30:11 2014 UTC (10 years, 9 months ago) by pooka
Branches: MAIN
CVS tags: riastradh-drm2-base3
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +2 -7 lines
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 - view: text, markup, annotated - select for diffs
Sun Feb 16 09:50:25 2014 UTC (10 years, 9 months ago) by hannken
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +7 -5 lines
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 - view: text, markup, annotated - select for diffs
Sat Jun 2 11:09:32 2012 UTC (12 years, 6 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.66.2.1: preferred, colored; branchpoint 1.66: preferred, colored; next MAIN 1.67: preferred, colored
Changes since revision 1.66.2.1: +6 -7 lines
sync to latest -current.

Revision 1.64.2.2: download - view: text, markup, annotated - select for diffs
Wed May 23 10:08:10 2012 UTC (12 years, 6 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.64.2.1: preferred, colored; branchpoint 1.64: preferred, colored
Changes since revision 1.64.2.1: +6 -7 lines
sync with head.

Revision 1.68: download - view: text, markup, annotated - select for diffs
Mon Apr 30 22:51:27 2012 UTC (12 years, 7 months ago) by rmind
Branches: 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
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +6 -7 lines
- Replace some malloc(9) uses with kmem(9).
- G/C M_IPMOPTS, M_IPMADDR and M_BWMETER.

Revision 1.64.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:08:21 2012 UTC (12 years, 7 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +5 -11 lines
sync with head

Revision 1.66.2.1: download - view: text, markup, annotated - select for diffs
Sat Feb 18 07:35:25 2012 UTC (12 years, 9 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +2 -10 lines
merge to -current.

Revision 1.67: download - view: text, markup, annotated - select for diffs
Mon Dec 5 11:12:10 2011 UTC (13 years ago) by hannken
Branches: 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
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +2 -10 lines
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 - view: text, markup, annotated - select for diffs
Wed Nov 23 19:39:11 2011 UTC (13 years ago) by hannken
Branches: MAIN
CVS tags: jmcneill-usbmp-pre-base2, jmcneill-usbmp-base
Branch point for: jmcneill-usbmp
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Mon Nov 21 18:29:22 2011 UTC (13 years ago) by hannken
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +4 -2 lines
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 - view: text, markup, annotated - select for diffs
Sat Sep 17 18:54:38 2011 UTC (13 years, 2 months ago) by bouyer
Branches: 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
Diff to: previous 1.57.6.1: preferred, colored; branchpoint 1.57: preferred, colored
Changes since revision 1.57.6.1: +9 -4 lines
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 - view: text, markup, annotated - select for diffs
Sun Aug 28 08:27:57 2011 UTC (13 years, 3 months ago) by hannken
Branches: MAIN
CVS tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +9 -4 lines
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 - view: text, markup, annotated - select for diffs
Sat Mar 5 20:55:10 2011 UTC (13 years, 9 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.61.4.1: preferred, colored; branchpoint 1.61: preferred, colored; next MAIN 1.62: preferred, colored
Changes since revision 1.61.4.1: +3 -3 lines
sync with head

Revision 1.61.2.1: download - view: text, markup, annotated - select for diffs
Tue Aug 17 06:47:23 2010 UTC (14 years, 3 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.61: preferred, colored; next MAIN 1.62: preferred, colored
Changes since revision 1.61: +7 -4 lines
Sync with HEAD.

Revision 1.52.4.5: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:54:37 2010 UTC (14 years, 3 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.52.4.4: preferred, colored; branchpoint 1.52: preferred, colored; next MAIN 1.53: preferred, colored
Changes since revision 1.52.4.4: +7 -4 lines
sync with head.

Revision 1.63: download - view: text, markup, annotated - select for diffs
Mon Jul 5 21:27:08 2010 UTC (14 years, 5 months ago) by pooka
Branches: 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
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Sat Jul 3 01:19:52 2010 UTC (14 years, 5 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +6 -3 lines
sync with head

Revision 1.62: download - view: text, markup, annotated - select for diffs
Wed Jun 30 13:10:35 2010 UTC (14 years, 5 months ago) by hannken
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +6 -3 lines
The directory vnode must be locked before we call VOP_WHITEOUT().

Should fix PR #23986 "problem mounting directories".

Revision 1.52.4.4: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:04:15 2010 UTC (14 years, 9 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.52.4.3: preferred, colored; branchpoint 1.52: preferred, colored
Changes since revision 1.52.4.3: +5 -5 lines
sync with head

Revision 1.61: download - view: text, markup, annotated - select for diffs
Fri Jan 8 11:35:09 2010 UTC (14 years, 11 months ago) by pooka
Branches: MAIN
CVS tags: yamt-nfs-mp-base9, uebayasi-xip-base1, uebayasi-xip-base
Branch point for: uebayasi-xip, rmind-uvmplock
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +5 -5 lines
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 - view: text, markup, annotated - select for diffs
Thu Jul 23 23:32:34 2009 UTC (15 years, 4 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.58.4.1: preferred, colored; branchpoint 1.58: preferred, colored; next MAIN 1.59: preferred, colored
Changes since revision 1.58.4.1: +5 -8 lines
Sync with HEAD.

Revision 1.52.4.3: download - view: text, markup, annotated - select for diffs
Sat Jul 18 14:53:22 2009 UTC (15 years, 4 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.52.4.2: preferred, colored; branchpoint 1.52: preferred, colored
Changes since revision 1.52.4.2: +5 -8 lines
sync with head.

Revision 1.60: download - view: text, markup, annotated - select for diffs
Mon Jun 29 05:08:18 2009 UTC (15 years, 5 months ago) by dholland
Branches: MAIN
CVS tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, matt-premerge-20091211, jymxensuspend-base, jym-xensuspend-nbase
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +5 -8 lines
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 - view: text, markup, annotated - select for diffs
Wed May 13 17:21:55 2009 UTC (15 years, 6 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +4 -4 lines
Sync with HEAD.

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

Revision 1.52.4.2: download - view: text, markup, annotated - select for diffs
Mon May 4 08:13:45 2009 UTC (15 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.52.4.1: preferred, colored; branchpoint 1.52: preferred, colored
Changes since revision 1.52.4.1: +38 -27 lines
sync with head.

Revision 1.57.4.2: download - view: text, markup, annotated - select for diffs
Tue Apr 28 07:36:58 2009 UTC (15 years, 7 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.57.4.1: preferred, colored; branchpoint 1.57: preferred, colored; next MAIN 1.58: preferred, colored
Changes since revision 1.57.4.1: +4 -4 lines
Sync with HEAD.

Revision 1.57.6.1: download - view: text, markup, annotated - select for diffs
Sat Apr 4 18:12:55 2009 UTC (15 years, 8 months ago) by snj
Branches: 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
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +4 -4 lines
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 - view: text, markup, annotated - select for diffs
Sat Apr 4 10:32:49 2009 UTC (15 years, 8 months ago) by ad
Branches: 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
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +4 -4 lines
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 - view: text, markup, annotated - select for diffs
Mon Jan 19 13:19:37 2009 UTC (15 years, 10 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +3 -3 lines
Sync with HEAD.

Revision 1.51.6.4: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:29:17 2009 UTC (15 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.51.6.3: preferred, colored; branchpoint 1.51: preferred, colored; next MAIN 1.52: preferred, colored
Changes since revision 1.51.6.3: +1 -1 lines
Sync with HEAD.

Revision 1.57.2.1: download - view: text, markup, annotated - select for diffs
Sat Dec 13 01:15:07 2008 UTC (15 years, 11 months ago) by haad
Branches: haad-dm
Diff to: previous 1.57: preferred, colored; next MAIN 1.58: preferred, colored
Changes since revision 1.57: +3 -3 lines
Update haad-dm branch to haad-dm-base2.

Revision 1.58: download - view: text, markup, annotated - select for diffs
Fri Dec 5 13:05:37 2008 UTC (16 years ago) by ad
Branches: 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
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +3 -3 lines
PR kern/40110: null, overlay and umap modules loading -> panic (layerfs symbols not there)

Add a layerfs module.

Revision 1.53.2.2: download - view: text, markup, annotated - select for diffs
Thu Sep 18 04:36:56 2008 UTC (16 years, 2 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.53.2.1: preferred, colored; next MAIN 1.54: preferred, colored
Changes since revision 1.53.2.1: +34 -26 lines
Sync with wrstuden-revivesa-base-2.

Revision 1.56.2.1: download - view: text, markup, annotated - select for diffs
Thu Jul 3 18:38:11 2008 UTC (16 years, 5 months ago) by simonb
Branches: simonb-wapbl
Diff to: previous 1.56: preferred, colored; next MAIN 1.57: preferred, colored
Changes since revision 1.56: +34 -26 lines
Sync with head.

Revision 1.51.6.3: download - view: text, markup, annotated - select for diffs
Sun Jun 29 09:33:13 2008 UTC (16 years, 5 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.51.6.2: preferred, colored; branchpoint 1.51: preferred, colored
Changes since revision 1.51.6.2: +32 -24 lines
Sync with HEAD.

Revision 1.57: download - view: text, markup, annotated - select for diffs
Sat Jun 28 01:34:05 2008 UTC (16 years, 5 months ago) by rumble
Branches: 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
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +34 -26 lines
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 - view: text, markup, annotated - select for diffs
Mon Jun 23 04:31:50 2008 UTC (16 years, 5 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +23 -4 lines
Sync w/ -current. 34 merge conflicts to follow.

Revision 1.52.2.2: download - view: text, markup, annotated - select for diffs
Wed Jun 4 02:05:38 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.52.2.1: preferred, colored; branchpoint 1.52: preferred, colored; next MAIN 1.53: preferred, colored
Changes since revision 1.52.2.1: +5 -2 lines
sync with head

Revision 1.51.6.2: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:24:06 2008 UTC (16 years, 6 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.51.6.1: preferred, colored; branchpoint 1.51: preferred, colored
Changes since revision 1.51.6.1: +22 -2 lines
Sync with HEAD.

Revision 1.56: download - view: text, markup, annotated - select for diffs
Sun May 18 13:56:12 2008 UTC (16 years, 6 months ago) by ad
Branches: MAIN
CVS tags: yamt-pf42-base4, yamt-pf42-base3, wrstuden-revivesa-base-1, wrstuden-revivesa-base, hpcarm-cleanup-nbase
Branch point for: simonb-wapbl
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +5 -2 lines
Until these get fixed or replaced:

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

Revision 1.52.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:35:06 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +21 -4 lines
sync with head.

Revision 1.52.4.1: download - view: text, markup, annotated - select for diffs
Fri May 16 02:25:22 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +21 -4 lines
sync with head.

Revision 1.55: download - view: text, markup, annotated - select for diffs
Tue May 13 08:31:13 2008 UTC (16 years, 6 months ago) by simonb
Branches: MAIN
CVS tags: yamt-pf42-base2, yamt-nfs-mp-base2
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +3 -3 lines
mnt_data is a pointer, set it to NULL not 0 when we're finished with it.

Revision 1.54: download - view: text, markup, annotated - select for diffs
Sat May 10 02:26:09 2008 UTC (16 years, 7 months ago) by rumble
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +19 -3 lines
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 - view: text, markup, annotated - select for diffs
Tue Apr 29 18:18:08 2008 UTC (16 years, 7 months ago) by ad
Branches: MAIN
Branch point for: wrstuden-revivesa
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +3 -2 lines
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 - view: text, markup, annotated - select for diffs
Thu Apr 3 12:43:00 2008 UTC (16 years, 8 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +5 -13 lines
Sync with HEAD.

Revision 1.51.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 24 07:16:13 2008 UTC (16 years, 8 months ago) by keiichi
Branches: keiichi-mipv6
Diff to: previous 1.51: preferred, colored; next MAIN 1.52: preferred, colored
Changes since revision 1.51: +5 -13 lines
sync with head.

Revision 1.48.4.2: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:04:57 2008 UTC (16 years, 8 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.48.4.1: preferred, colored; branchpoint 1.48: preferred, colored; next MAIN 1.49: preferred, colored
Changes since revision 1.48.4.1: +24 -13 lines
sync with HEAD

Revision 1.27.2.8: download - view: text, markup, annotated - select for diffs
Mon Mar 17 09:15:32 2008 UTC (16 years, 8 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.27.2.7: preferred, colored; next MAIN 1.28: preferred, colored
Changes since revision 1.27.2.7: +5 -13 lines
sync with head.

Revision 1.52: download - view: text, markup, annotated - select for diffs
Wed Feb 27 19:59:48 2008 UTC (16 years, 9 months ago) by matt
Branches: 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
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +5 -13 lines
Convert to ansi definitions from old-style definitons.

Revision 1.48.10.3: download - view: text, markup, annotated - select for diffs
Mon Feb 18 21:06:44 2008 UTC (16 years, 9 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.48.10.2: preferred, colored; branchpoint 1.48: preferred, colored; next MAIN 1.49: preferred, colored
Changes since revision 1.48.10.2: +21 -2 lines
Sync with HEAD.

Revision 1.27.2.7: download - view: text, markup, annotated - select for diffs
Mon Feb 4 09:24:05 2008 UTC (16 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.27.2.6: preferred, colored
Changes since revision 1.27.2.6: +21 -2 lines
sync with head.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Mon Jan 28 14:31:17 2008 UTC (16 years, 10 months ago) by dholland
Branches: MAIN
CVS tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, hpcarm-cleanup-base
Branch point for: mjf-devfs2, keiichi-mipv6
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +21 -2 lines
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 - view: text, markup, annotated - select for diffs
Mon Jan 21 09:45:57 2008 UTC (16 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.27.2.5: preferred, colored
Changes since revision 1.27.2.5: +3 -3 lines
sync with head

Revision 1.48.4.1: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:55:55 2008 UTC (16 years, 11 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +12 -23 lines
sync with HEAD

Revision 1.48.10.2: download - view: text, markup, annotated - select for diffs
Thu Dec 27 00:45:52 2007 UTC (16 years, 11 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.48.10.1: preferred, colored; branchpoint 1.48: preferred, colored
Changes since revision 1.48.10.1: +3 -3 lines
Sync with HEAD.

Revision 1.49.2.1: download - view: text, markup, annotated - select for diffs
Wed Dec 26 19:57:05 2007 UTC (16 years, 11 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.49: preferred, colored; next MAIN 1.50: preferred, colored
Changes since revision 1.49: +3 -3 lines
Sync with head.

Revision 1.48.2.2: download - view: text, markup, annotated - select for diffs
Sun Dec 9 19:38:13 2007 UTC (17 years ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.48.2.1: preferred, colored; branchpoint 1.48: preferred, colored; next MAIN 1.49: preferred, colored
Changes since revision 1.48.2.1: +3 -3 lines
Sync with HEAD.

Revision 1.50: download - view: text, markup, annotated - select for diffs
Sat Dec 8 19:29:46 2007 UTC (17 years ago) by pooka
Branches: 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
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Sat Dec 8 18:20:23 2007 UTC (17 years ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +11 -22 lines
Sync with HEAD.

Revision 1.27.2.5: download - view: text, markup, annotated - select for diffs
Fri Dec 7 17:32:15 2007 UTC (17 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.27.2.4: preferred, colored
Changes since revision 1.27.2.4: +11 -22 lines
sync with head

Revision 1.48.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 27 19:37:57 2007 UTC (17 years ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +11 -22 lines
Sync with HEAD. amd64 Xen support needs testing.

Revision 1.49: download - view: text, markup, annotated - select for diffs
Mon Nov 26 19:01:58 2007 UTC (17 years ago) by pooka
Branches: MAIN
CVS tags: vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base
Branch point for: vmlocking2
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +11 -22 lines
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 - view: text, markup, annotated - select for diffs
Mon Sep 3 14:40:38 2007 UTC (17 years, 3 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.27.2.3: preferred, colored
Changes since revision 1.27.2.3: +22 -33 lines
sync with head.

Revision 1.43.6.3: download - view: text, markup, annotated - select for diffs
Mon Aug 20 21:26:13 2007 UTC (17 years, 3 months ago) by ad
Branches: vmlocking
Diff to: previous 1.43.6.2: preferred, colored; branchpoint 1.43: preferred, colored; next MAIN 1.44: preferred, colored
Changes since revision 1.43.6.2: +10 -18 lines
Sync with HEAD.

Revision 1.46.2.1: download - view: text, markup, annotated - select for diffs
Wed Aug 15 13:49:03 2007 UTC (17 years, 3 months ago) by skrll
Branches: nick-csl-alignment
Diff to: previous 1.46: preferred, colored; next MAIN 1.47: preferred, colored
Changes since revision 1.46: +9 -17 lines
Sync with HEAD.

Revision 1.48.12.2: download - view: text, markup, annotated - select for diffs
Tue Jul 31 21:14:20 2007 UTC (17 years, 4 months ago) by pooka
Branches: matt-mips64
Diff to: previous 1.48.12.1: preferred, colored; branchpoint 1.48: preferred, colored; next MAIN 1.49: preferred, colored
Changes since revision 1.48.12.1: +547 -0 lines
* 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 (17 years, 4 months ago) by pooka
Branches: matt-mips64
FILE REMOVED
Changes since revision 1.48: +0 -547 lines
file union_vfsops.c was added on branch matt-mips64 on 2007-07-31 21:14:20 +0000

Revision 1.48: download - view: text, markup, annotated - select for diffs
Tue Jul 31 21:14:19 2007 UTC (17 years, 4 months ago) by pooka
Branches: 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
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +8 -16 lines
* 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 - view: text, markup, annotated - select for diffs
Thu Jul 26 22:57:39 2007 UTC (17 years, 4 months ago) by pooka
Branches: MAIN
CVS tags: hpcarm-cleanup
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +3 -3 lines
Use eopnotsupp() instead of vfs_stdsuspendctl() and retire the latter.

Revision 1.46: download - view: text, markup, annotated - select for diffs
Tue Jul 17 11:19:34 2007 UTC (17 years, 4 months ago) by pooka
Branches: MAIN
CVS tags: nick-csl-alignment-base
Branch point for: nick-csl-alignment
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Sun Jul 15 13:27:34 2007 UTC (17 years, 4 months ago) by ad
Branches: vmlocking
Diff to: previous 1.43.6.1: preferred, colored; branchpoint 1.43: preferred, colored
Changes since revision 1.43.6.1: +18 -20 lines
Sync with head.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Thu Jul 12 19:35:34 2007 UTC (17 years, 4 months ago) by dsl
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +18 -20 lines
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 - view: text, markup, annotated - select for diffs
Wed Jul 11 20:09:37 2007 UTC (17 years, 5 months ago) by mjf
Branches: mjf-ufs-trans
Diff to: previous 1.43: preferred, colored; next MAIN 1.44: preferred, colored
Changes since revision 1.43: +2 -3 lines
Sync with head.

Revision 1.43.2.1: download - view: text, markup, annotated - select for diffs
Sun Apr 15 16:03:48 2007 UTC (17 years, 7 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.43: preferred, colored; next MAIN 1.44: preferred, colored
Changes since revision 1.43: +2 -3 lines
sync with head.

Revision 1.43.6.1: download - view: text, markup, annotated - select for diffs
Tue Apr 10 13:26:37 2007 UTC (17 years, 8 months ago) by ad
Branches: vmlocking
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +2 -3 lines
Sync with head.

Revision 1.44: download - view: text, markup, annotated - select for diffs
Sun Apr 8 11:20:42 2007 UTC (17 years, 8 months ago) by hannken
Branches: MAIN
CVS tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, mjf-ufs-trans-base
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +2 -3 lines
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 - view: text, markup, annotated - select for diffs
Mon Feb 26 09:11:01 2007 UTC (17 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.27.2.2: preferred, colored
Changes since revision 1.27.2.2: +7 -23 lines
sync with head.

Revision 1.40.2.1: download - view: text, markup, annotated - select for diffs
Sat Feb 17 23:27:46 2007 UTC (17 years, 9 months ago) by tron
Branches: 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
Diff to: previous 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40: +8 -25 lines
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 - view: text, markup, annotated - select for diffs
Fri Feb 9 21:03:53 2007 UTC (17 years, 10 months ago) by ad
Branches: newlock2
Diff to: previous 1.37.2.3: preferred, colored; branchpoint 1.37: preferred, colored; next MAIN 1.38: preferred, colored
Changes since revision 1.37.2.3: +6 -23 lines
Sync with HEAD.

Revision 1.43: download - view: text, markup, annotated - select for diffs
Sun Feb 4 15:03:20 2007 UTC (17 years, 10 months ago) by chs
Branches: 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
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +6 -23 lines
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 - view: text, markup, annotated - select for diffs
Thu Feb 1 08:48:37 2007 UTC (17 years, 10 months ago) by ad
Branches: newlock2
Diff to: previous 1.37.2.2: preferred, colored; branchpoint 1.37: preferred, colored
Changes since revision 1.37.2.2: +3 -2 lines
Sync with head.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Fri Jan 19 14:49:10 2007 UTC (17 years, 10 months ago) by hannken
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +3 -2 lines
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 - view: text, markup, annotated - select for diffs
Fri Jan 12 01:04:06 2007 UTC (17 years, 10 months ago) by ad
Branches: newlock2
Diff to: previous 1.37.2.1: preferred, colored; branchpoint 1.37: preferred, colored
Changes since revision 1.37.2.1: +4 -4 lines
Sync with head.

Revision 1.27.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:50:04 2006 UTC (17 years, 11 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.27.2.1: preferred, colored
Changes since revision 1.27.2.1: +18 -31 lines
sync with head.

Revision 1.37.4.2: download - view: text, markup, annotated - select for diffs
Sun Dec 10 07:18:43 2006 UTC (18 years ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.37.4.1: preferred, colored; branchpoint 1.37: preferred, colored; next MAIN 1.38: preferred, colored
Changes since revision 1.37.4.1: +13 -13 lines
sync with head.

Revision 1.41: download - view: text, markup, annotated - select for diffs
Sat Dec 9 16:11:51 2006 UTC (18 years ago) by chs
Branches: MAIN
CVS tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +4 -4 lines
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 - view: text, markup, annotated - select for diffs
Sat Nov 18 21:39:21 2006 UTC (18 years ago) by ad
Branches: newlock2
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +13 -28 lines
Sync with head.

Revision 1.40: download - view: text, markup, annotated - select for diffs
Thu Nov 16 01:33:37 2006 UTC (18 years ago) by christos
Branches: MAIN
CVS tags: netbsd-4-base
Branch point for: netbsd-4
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +11 -11 lines
__unused removal on arguments; approved by core.

Revision 1.37.4.1: download - view: text, markup, annotated - select for diffs
Sun Oct 22 06:07:09 2006 UTC (18 years, 1 month ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +13 -28 lines
sync with head

Revision 1.39: download - view: text, markup, annotated - select for diffs
Fri Oct 20 18:58:12 2006 UTC (18 years, 1 month ago) by reinoud
Branches: MAIN
CVS tags: yamt-splraiseipl-base2
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +4 -5 lines
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 - view: text, markup, annotated - select for diffs
Thu Oct 12 01:32:14 2006 UTC (18 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +11 -25 lines
- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.32.6.4: download - view: text, markup, annotated - select for diffs
Thu Sep 14 12:31:48 2006 UTC (18 years, 2 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.32.6.3: preferred, colored; branchpoint 1.32: preferred, colored; next MAIN 1.33: preferred, colored
Changes since revision 1.32.6.3: +4 -2 lines
sync with head.

Revision 1.32.2.1: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:57:15 2006 UTC (18 years, 3 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.32: preferred, colored; next MAIN 1.33: preferred, colored
Changes since revision 1.32: +15 -12 lines
sync with head

Revision 1.37: download - view: text, markup, annotated - select for diffs
Sun Sep 3 21:29:37 2006 UTC (18 years, 3 months ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +4 -2 lines
add missing initializers

Revision 1.32.6.3: download - view: text, markup, annotated - select for diffs
Fri Aug 11 15:45:45 2006 UTC (18 years, 4 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.32.6.2: preferred, colored; branchpoint 1.32: preferred, colored
Changes since revision 1.32.6.2: +3 -3 lines
sync with head

Revision 1.36: download - view: text, markup, annotated - select for diffs
Sun Jul 23 22:06:10 2006 UTC (18 years, 4 months ago) by ad
Branches: MAIN
CVS tags: yamt-pdpolicy-base8, yamt-pdpolicy-base7, abandoned-netbsd-4-base, abandoned-netbsd-4
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +3 -3 lines
Use the LWP cached credentials where sane.

Revision 1.27.2.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 15:09:37 2006 UTC (18 years, 5 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +41 -101 lines
sync with head.

Revision 1.32.4.2: download - view: text, markup, annotated - select for diffs
Thu Jun 1 22:38:06 2006 UTC (18 years, 6 months ago) by kardel
Branches: simonb-timecounters
CVS tags: simonb-timcounters-final
Diff to: previous 1.32.4.1: preferred, colored; branchpoint 1.32: preferred, colored; next MAIN 1.33: preferred, colored
Changes since revision 1.32.4.1: +8 -7 lines
Sync with head.

Revision 1.32.10.2: download - view: text, markup, annotated - select for diffs
Wed May 24 15:50:40 2006 UTC (18 years, 6 months ago) by tron
Branches: peter-altq
Diff to: previous 1.32.10.1: preferred, colored; branchpoint 1.32: preferred, colored; next MAIN 1.33: preferred, colored
Changes since revision 1.32.10.1: +8 -10 lines
Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.32.6.2: download - view: text, markup, annotated - select for diffs
Wed May 24 10:58:40 2006 UTC (18 years, 6 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.32.6.1: preferred, colored; branchpoint 1.32: preferred, colored
Changes since revision 1.32.6.1: +8 -10 lines
sync with head.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Sun May 14 21:31:52 2006 UTC (18 years, 6 months ago) by elad
Branches: 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
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +8 -7 lines
integrate kauth.

Revision 1.32.8.3: download - view: text, markup, annotated - select for diffs
Sat May 6 23:31:30 2006 UTC (18 years, 7 months ago) by christos
Branches: elad-kernelauth
Diff to: previous 1.32.8.2: preferred, colored; branchpoint 1.32: preferred, colored; next MAIN 1.33: preferred, colored
Changes since revision 1.32.8.2: +3 -2 lines
- 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 - view: text, markup, annotated - select for diffs
Sat Apr 22 11:39:58 2006 UTC (18 years, 7 months ago) by simonb
Branches: simonb-timecounters
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +7 -7 lines
Sync with head.

Revision 1.32.8.2: download - view: text, markup, annotated - select for diffs
Wed Apr 19 05:03:56 2006 UTC (18 years, 7 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.32.8.1: preferred, colored; branchpoint 1.32: preferred, colored
Changes since revision 1.32.8.1: +7 -7 lines
sync with head.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Fri Apr 14 22:00:14 2006 UTC (18 years, 7 months ago) by christos
Branches: MAIN
CVS tags: elad-kernelauth-base
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +2 -5 lines
Coverity CID 715: Remove dead code.

Revision 1.32.6.1: download - view: text, markup, annotated - select for diffs
Sat Apr 1 12:07:38 2006 UTC (18 years, 8 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +7 -4 lines
sync with head.

Revision 1.32.10.1: download - view: text, markup, annotated - select for diffs
Tue Mar 28 09:42:26 2006 UTC (18 years, 8 months ago) by tron
Branches: peter-altq
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +7 -4 lines
Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Mon Mar 20 19:54:15 2006 UTC (18 years, 8 months ago) by christos
Branches: MAIN
CVS tags: yamt-pdpolicy-base4, yamt-pdpolicy-base3
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +7 -4 lines
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 - view: text, markup, annotated - select for diffs
Wed Mar 8 01:31:33 2006 UTC (18 years, 9 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +9 -9 lines
Adapt to kernel authorization KPI.

Revision 1.31.2.1: download - view: text, markup, annotated - select for diffs
Sun Jan 15 10:02:56 2006 UTC (18 years, 10 months ago) by yamt
Branches: yamt-uio_vmspace
Diff to: previous 1.31: preferred, colored; next MAIN 1.32: preferred, colored
Changes since revision 1.31: +4 -26 lines
sync with head.

Revision 1.25.2.1.2.1: download - view: text, markup, annotated - select for diffs
Sun Jan 8 15:45:15 2006 UTC (18 years, 11 months ago) by riz
Branches: netbsd-3-0
CVS tags: netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE
Diff to: previous 1.25.2.1: preferred, colored; next MAIN 1.25.2.2: preferred, colored
Changes since revision 1.25.2.1: +2 -24 lines
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 - view: text, markup, annotated - select for diffs
Sun Jan 8 15:45:11 2006 UTC (18 years, 11 months ago) by riz
Branches: 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
Diff to: previous 1.25.2.1: preferred, colored; branchpoint 1.25: preferred, colored; next MAIN 1.26: preferred, colored
Changes since revision 1.25.2.1: +2 -24 lines
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 - view: text, markup, annotated - select for diffs
Fri Jan 6 23:53:37 2006 UTC (18 years, 11 months ago) by riz
Branches: netbsd-2-0
Diff to: previous 1.11.2.1: preferred, colored; branchpoint 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11.2.1: +2 -24 lines
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 - view: text, markup, annotated - select for diffs
Fri Jan 6 23:53:26 2006 UTC (18 years, 11 months ago) by riz
Branches: netbsd-2
Diff to: previous 1.11.2.1: preferred, colored; next MAIN 1.11.2.2: preferred, colored
Changes since revision 1.11.2.1: +4 -26 lines
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 - view: text, markup, annotated - select for diffs
Fri Jan 6 23:53:22 2006 UTC (18 years, 11 months ago) by riz
Branches: netbsd-2-1
Diff to: previous 1.11.2.1: preferred, colored; next MAIN 1.11.2.2: preferred, colored
Changes since revision 1.11.2.1: +4 -26 lines
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 - view: text, markup, annotated - select for diffs
Thu Jan 5 20:31:33 2006 UTC (18 years, 11 months ago) by wrstuden
Branches: 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
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +4 -26 lines
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 - view: text, markup, annotated - select for diffs
Sun Dec 11 12:24:29 2005 UTC (18 years, 11 months ago) by christos
Branches: MAIN
Branch point for: yamt-uio_vmspace
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +26 -26 lines
merge ktrace-lwp.

Revision 1.8.2.9: download - view: text, markup, annotated - select for diffs
Thu Nov 10 14:09:44 2005 UTC (19 years, 1 month ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.8.2.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8.2.8: +19 -57 lines
Sync with HEAD. Here we go again...

Revision 1.30: download - view: text, markup, annotated - select for diffs
Fri Sep 23 12:10:33 2005 UTC (19 years, 2 months ago) by jmmv
Branches: 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
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +4 -43 lines
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 - view: text, markup, annotated - select for diffs
Tue Aug 30 19:11:43 2005 UTC (19 years, 3 months ago) by xtraeme
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +15 -15 lines
Remove __P()

Revision 1.25.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 28 09:58:59 2005 UTC (19 years, 3 months ago) by tron
Branches: 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
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Wed Aug 24 15:21:28 2005 UTC (19 years, 3 months ago) by nakayama
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Sun May 29 21:00:29 2005 UTC (19 years, 6 months ago) by christos
Branches: MAIN
Branch point for: yamt-lazymbuf
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +7 -6 lines
- rename variables to avoid shadowing.
- add a few const.

Revision 1.24.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 29 11:29:22 2005 UTC (19 years, 7 months ago) by kent
Branches: kent-audio2
Diff to: previous 1.24: preferred, colored; next MAIN 1.25: preferred, colored
Changes since revision 1.24: +7 -6 lines
sync with -current

Revision 1.8.2.8: download - view: text, markup, annotated - select for diffs
Fri Apr 1 14:30:56 2005 UTC (19 years, 8 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.8.2.7: preferred, colored
Changes since revision 1.8.2.7: +3 -2 lines
Sync with HEAD.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Tue Mar 29 02:41:05 2005 UTC (19 years, 8 months ago) by thorpej
Branches: MAIN
CVS tags: kent-audio2-base
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +3 -2 lines
- 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 - view: text, markup, annotated - select for diffs
Sat Mar 19 08:36:11 2005 UTC (19 years, 8 months ago) by yamt
Branches: yamt-km
Diff to: previous 1.24: preferred, colored; next MAIN 1.25: preferred, colored
Changes since revision 1.24: +6 -6 lines
sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.8.2.7: download - view: text, markup, annotated - select for diffs
Fri Mar 4 16:51:46 2005 UTC (19 years, 9 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.8.2.6: preferred, colored
Changes since revision 1.8.2.6: +6 -6 lines
Sync with HEAD.

Hi Perry!

Revision 1.25: download - view: text, markup, annotated - select for diffs
Sat Feb 26 22:58:55 2005 UTC (19 years, 9 months ago) by perry
Branches: MAIN
CVS tags: yamt-km-base4, yamt-km-base3, netbsd-3-base
Branch point for: netbsd-3
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +6 -6 lines
nuke trailing whitespace

Revision 1.8.2.6: download - view: text, markup, annotated - select for diffs
Mon Jan 17 19:32:25 2005 UTC (19 years, 10 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.8.2.5: preferred, colored
Changes since revision 1.8.2.5: +3 -2 lines
Sync with HEAD.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Sun Jan 2 16:08:28 2005 UTC (19 years, 11 months ago) by thorpej
Branches: MAIN
CVS tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge
Branch point for: yamt-km, kent-audio2
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +3 -2 lines
Add the system call and VFS infrastructure for file system extended
attributes.

From FreeBSD.

Revision 1.8.2.5: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:35:02 2004 UTC (20 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.8.2.4: preferred, colored
Changes since revision 1.8.2.4: +26 -26 lines
Fix the sync with head I botched.

Revision 1.8.2.4: download - view: text, markup, annotated - select for diffs
Sat Sep 18 14:53:02 2004 UTC (20 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.8.2.3: preferred, colored
Changes since revision 1.8.2.3: +26 -26 lines
Sync with HEAD.

Revision 1.8.2.3: download - view: text, markup, annotated - select for diffs
Tue Aug 24 17:57:37 2004 UTC (20 years, 3 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.8.2.2: preferred, colored
Changes since revision 1.8.2.2: +10 -15 lines
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 - view: text, markup, annotated - select for diffs
Tue Aug 3 10:52:42 2004 UTC (20 years, 4 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.8.2.1: preferred, colored
Changes since revision 1.8.2.1: +94 -49 lines
Sync with HEAD

Revision 1.23: download - view: text, markup, annotated - select for diffs
Thu Jul 1 10:03:29 2004 UTC (20 years, 5 months ago) by hannken
Branches: MAIN
CVS tags: kent-audio1-base, kent-audio1
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +3 -2 lines
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 - view: text, markup, annotated - select for diffs
Mon May 31 02:04:35 2004 UTC (20 years, 6 months ago) by wrstuden
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +3 -4 lines
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 - view: text, markup, annotated - select for diffs
Sun May 30 09:48:37 2004 UTC (20 years, 6 months ago) by tron
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +3 -2 lines
Include "miscfs/genfs/layer_extern.h" to get prototype for
layerfs_snapshot().

Revision 1.20: download - view: text, markup, annotated - select for diffs
Sat May 29 23:49:31 2004 UTC (20 years, 6 months ago) by wrstuden
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -3 lines
unionfs can use layerfs_snapshot() too.

Revision 1.11.2.1: download - view: text, markup, annotated - select for diffs
Sat May 29 09:04:14 2004 UTC (20 years, 6 months ago) by tron
Branches: 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
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +4 -3 lines
Pull up revision 1.18 (requested by atatat in ticket #393):
Sysctl descriptions under vfs subtree

Revision 1.19: download - view: text, markup, annotated - select for diffs
Tue May 25 14:54:57 2004 UTC (20 years, 6 months ago) by hannken
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +3 -2 lines
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 - view: text, markup, annotated - select for diffs
Tue May 25 04:44:44 2004 UTC (20 years, 6 months ago) by atatat
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +4 -3 lines
Sysctl descriptions under vfs subtree

Revision 1.17: download - view: text, markup, annotated - select for diffs
Mon May 24 03:09:48 2004 UTC (20 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +33 -18 lines
Can't do the trick with using sbp as temporary storage; allocate memory
instead.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sat May 22 22:13:50 2004 UTC (20 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +3 -3 lines
declare the correct variable; thanks Juan RP.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Sat May 22 20:42:08 2004 UTC (20 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +15 -30 lines
simplify stats taking and avoid the extra copy on the stack.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Wed May 12 02:07:39 2004 UTC (20 years, 7 months ago) by jrf
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +3 -3 lines
caddr_t -> void * and removal of some more casts.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Tue Apr 27 17:37:31 2004 UTC (20 years, 7 months ago) by jrf
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +4 -4 lines
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 - view: text, markup, annotated - select for diffs
Wed Apr 21 01:05:38 2004 UTC (20 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +17 -14 lines
Replace the statfs() family of system calls with statvfs().
Retain binary compatibility.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed Mar 24 15:34:52 2004 UTC (20 years, 8 months ago) by atatat
Branches: MAIN
CVS tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +6 -4 lines
Tango on sysctl_createv() and flags.  The flags have all been renamed,
and sysctl_createv() now uses more arguments.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Thu Dec 4 19:38:23 2003 UTC (21 years ago) by atatat
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +19 -15 lines
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 - view: text, markup, annotated - select for diffs
Thu Aug 7 16:31:40 2003 UTC (21 years, 4 months ago) by agc
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +35 -2 lines
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 - view: text, markup, annotated - select for diffs
Thu Jul 3 01:32:56 2003 UTC (21 years, 5 months ago) by wrstuden
Branches: ktrace-lwp
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +42 -37 lines
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 - view: text, markup, annotated - select for diffs
Sun Jun 29 22:31:14 2003 UTC (21 years, 5 months ago) by fvdl
Branches: MAIN
Branch point for: ktrace-lwp
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +27 -28 lines
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 - view: text, markup, annotated - select for diffs
Sun Jun 29 18:43:27 2003 UTC (21 years, 5 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +10 -14 lines
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 - view: text, markup, annotated - select for diffs
Sun Jun 29 15:11:48 2003 UTC (21 years, 5 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +4 -4 lines
Fix problems with Darren's ktrace/lwp changes.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sun Jun 29 09:56:33 2003 UTC (21 years, 5 months ago) by darrenr
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +39 -34 lines
More changes for providing lwpid for ktrace (sparc GENERIC built)

Revision 1.4: download - view: text, markup, annotated - select for diffs
Wed Apr 16 21:44:20 2003 UTC (21 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +7 -10 lines
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 - view: text, markup, annotated - select for diffs
Mon Mar 17 10:28:41 2003 UTC (21 years, 8 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +3 -3 lines
add comment for one NULL union_vfsops member

Revision 1.2: download - view: text, markup, annotated - select for diffs
Mon Mar 17 09:11:31 2003 UTC (21 years, 8 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +7 -2 lines
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 - view: text, markup, annotated - select for diffs
Sun Mar 16 08:26:54 2003 UTC (21 years, 8 months ago) by jdolecek
Branches: MAIN
move union filesystem code from sys/miscfs/union to sys/fs/union

Diff request

This form allows you to request diffs 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.

Log view options

CVSweb <webmaster@jp.NetBSD.org>