The NetBSD Project

CVS log for src/sys/fs/cd9660/cd9660_vfsops.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.103 / (download) - annotate - [select for diffs], Sat Feb 3 22:39:27 2024 UTC (2 months, 1 week ago) by christos
Branch: MAIN
CVS Tags: HEAD
Changes since 1.102: +45 -20 lines
Diff to previous 1.102 (colored) to selected 1.63.6.1 (colored)

add checks for id and mask in the update case (thanks hannken)

Revision 1.102 / (download) - annotate - [select for diffs], Sat Feb 3 18:45:50 2024 UTC (2 months, 1 week ago) by christos
Branch: MAIN
Changes since 1.101: +3 -3 lines
Diff to previous 1.101 (colored) to selected 1.63.6.1 (colored)

need the new args pointer...

Revision 1.101 / (download) - annotate - [select for diffs], Sat Feb 3 18:44:43 2024 UTC (2 months, 1 week ago) by christos
Branch: MAIN
Changes since 1.100: +15 -12 lines
Diff to previous 1.100 (colored) to selected 1.63.6.1 (colored)

fix MNT_UPDATE (thanks hannken)

Revision 1.100 / (download) - annotate - [select for diffs], Sat Feb 3 17:38:22 2024 UTC (2 months, 1 week ago) by christos
Branch: MAIN
Changes since 1.99: +26 -6 lines
Diff to previous 1.99 (colored) to selected 1.63.6.1 (colored)

Provide backwards compatibility (pointed out by hannken)

Revision 1.99 / (download) - annotate - [select for diffs], Sat Feb 3 15:26:35 2024 UTC (2 months, 1 week ago) by hannken
Branch: MAIN
Changes since 1.98: +4 -2 lines
Diff to previous 1.98 (colored) to selected 1.63.6.1 (colored)

cd9660_mountroot: must initialize new args "fmask" and "dmask".

Revision 1.98 / (download) - annotate - [select for diffs], Fri Feb 2 20:27:26 2024 UTC (2 months, 1 week ago) by christos
Branch: MAIN
Changes since 1.97: +11 -3 lines
Diff to previous 1.97 (colored) to selected 1.63.6.1 (colored)

PR/57897: Ricardo Branco: Add support for mount options mask,dirmask,uid,gid

Revision 1.97 / (download) - annotate - [select for diffs], Tue May 3 07:33:07 2022 UTC (23 months, 2 weeks ago) by hannken
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, 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, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.96: +6 -3 lines
Diff to previous 1.96 (colored) to selected 1.63.6.1 (colored)

Lock devvp for vinvalbuf().

Revision 1.93.12.1 / (download) - annotate - [select for diffs], Wed Apr 8 14:08:49 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.93: +24 -22 lines
Diff to previous 1.93 (colored) next main 1.94 (colored) to selected 1.63.6.1 (colored)

Merge changes from current as of 20200406

Revision 1.96 / (download) - annotate - [select for diffs], Sat Apr 4 20:49:30 2020 UTC (4 years ago) by ad
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh
Changes since 1.95: +3 -3 lines
Diff to previous 1.95 (colored) to selected 1.63.6.1 (colored)

Merge the remaining changes from the ad-namecache branch, affecting namei()
and getcwd():

- push vnode locking back as far as possible.
- do most lookups directly in the namecache, avoiding vnode locks & refs.
- don't block new refs to vnodes across VOP_INACTIVE().
- get shared locks for VOP_LOOKUP() if the file system supports it.
- correct lock types for VOP_ACCESS() / VOP_GETATTR() in a few places.

Possible future enhancements:

- make the lookups lockless.
- support dotdot lookups by being lockless and inferring absence of chroot.
- maybe make it work for layered file systems.
- avoid vnode references at the root & cwd.

Revision 1.95 / (download) - annotate - [select for diffs], Mon Mar 16 21:20:09 2020 UTC (4 years, 1 month ago) by pgoyette
Branch: MAIN
Changes since 1.94: +17 -15 lines
Diff to previous 1.94 (colored) to selected 1.63.6.1 (colored)

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

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

Revision 1.93.18.2 / (download) - annotate - [select for diffs], Sun Jan 19 21:21:54 2020 UTC (4 years, 2 months ago) by ad
Branch: ad-namecache
Changes since 1.93.18.1: +3 -3 lines
Diff to previous 1.93.18.1 (colored) to branchpoint 1.93 (colored) next main 1.94 (colored) to selected 1.63.6.1 (colored)

Set IMNT_SHRLOOKUP and use it for the in-cache case.  Need to check what
more can be done with tmpfs though, it can probably do the whole lookup.

Revision 1.93.18.1 / (download) - annotate - [select for diffs], Fri Jan 17 21:47:33 2020 UTC (4 years, 2 months ago) by ad
Branch: ad-namecache
Changes since 1.93: +8 -8 lines
Diff to previous 1.93 (colored) to selected 1.63.6.1 (colored)

Sync with head.

Revision 1.94 / (download) - annotate - [select for diffs], Fri Jan 17 20:08:07 2020 UTC (4 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: is-mlppp-base, is-mlppp, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1
Changes since 1.93: +8 -8 lines
Diff to previous 1.93 (colored) to selected 1.63.6.1 (colored)

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

Revision 1.75.2.4 / (download) - annotate - [select for diffs], Sun Dec 3 11:38:41 2017 UTC (6 years, 4 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.75.2.3: +7 -7 lines
Diff to previous 1.75.2.3 (colored) to branchpoint 1.75 (colored) next main 1.76 (colored) to selected 1.63.6.1 (colored)

update from HEAD

Revision 1.89.4.2 / (download) - annotate - [select for diffs], Mon Aug 28 17:53:05 2017 UTC (6 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.89.4.1: +6 -6 lines
Diff to previous 1.89.4.1 (colored) to branchpoint 1.89 (colored) next main 1.90 (colored) to selected 1.63.6.1 (colored)

Sync with HEAD

Revision 1.93.2.1 / (download) - annotate - [select for diffs], Thu Apr 27 05:36:37 2017 UTC (6 years, 11 months ago) by pgoyette
Branch: prg-localcount2
Changes since 1.93: +9 -5 lines
Diff to previous 1.93 (colored) next main 1.94 (colored) to selected 1.63.6.1 (colored)

Restore all work from the former pgoyette-localcount branch (which is
now abandoned doe to cvs merge botch).

The branch now builds, and installs via anita.  There are still some
problems (cgd is non-functional and all atf tests time-out) but they
will get resolved soon.

Revision 1.90.2.4 / (download) - annotate - [select for diffs], Wed Apr 26 02:53:25 2017 UTC (6 years, 11 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.90.2.3: +5 -5 lines
Diff to previous 1.90.2.3 (colored) to branchpoint 1.90 (colored) next main 1.91 (colored) to selected 1.63.6.1 (colored)

Sync with HEAD

Revision 1.90.4.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:54:00 2017 UTC (6 years, 11 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.90: +6 -6 lines
Diff to previous 1.90 (colored) next main 1.91 (colored) to selected 1.63.6.1 (colored)

Sync with HEAD

Revision 1.93 / (download) - annotate - [select for diffs], Mon Apr 17 08:32:00 2017 UTC (7 years ago) by hannken
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, phil-wifi-base, phil-wifi-20191119, phil-wifi-20190609, 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-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, netbsd-9, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, isaki-audio2-base, isaki-audio2, bouyer-socketcan-base1, ad-namecache-base
Branch point for: prg-localcount2, phil-wifi, ad-namecache
Changes since 1.92: +4 -4 lines
Diff to previous 1.92 (colored) to selected 1.63.6.1 (colored)

Remove unused argument "nextp" from vfs_busy() and vfs_unbusy().
Remove argument "keepref" from vfs_unbusy() and add vfs_ref() where needed.

Revision 1.92 / (download) - annotate - [select for diffs], Mon Apr 17 08:31:01 2017 UTC (7 years ago) by hannken
Branch: MAIN
Changes since 1.91: +3 -3 lines
Diff to previous 1.91 (colored) to selected 1.63.6.1 (colored)

Add vfs_ref(mp) and vfs_rele(mp) to add or remove a reference to
struct mount.  Rename vfs_destroy(mp) to vfs_rele(mp) and replace
incrementing mp->mnt_refcnt with vfs_ref(mp).

Revision 1.90.2.3 / (download) - annotate - [select for diffs], Mon Mar 20 06:57:46 2017 UTC (7 years ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.90.2.2: +3 -3 lines
Diff to previous 1.90.2.2 (colored) to branchpoint 1.90 (colored) to selected 1.63.6.1 (colored)

Sync with HEAD

Revision 1.91 / (download) - annotate - [select for diffs], Fri Feb 17 08:31:24 2017 UTC (7 years, 1 month ago) by hannken
Branch: MAIN
CVS Tags: pgoyette-localcount-20170320, jdolecek-ncq-base, jdolecek-ncq
Changes since 1.90: +3 -3 lines
Diff to previous 1.90 (colored) to selected 1.63.6.1 (colored)

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

Revision 1.90.2.2 / (download) - annotate - [select for diffs], Sat Jul 23 00:44:59 2016 UTC (7 years, 8 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.90.2.1: +3 -3 lines
Diff to previous 1.90.2.1 (colored) to branchpoint 1.90 (colored) to selected 1.63.6.1 (colored)

Be consistent in the ordering of operations.

Revision 1.90.2.1 / (download) - annotate - [select for diffs], Wed Jul 20 23:47:56 2016 UTC (7 years, 8 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.90: +9 -5 lines
Diff to previous 1.90 (colored) to selected 1.63.6.1 (colored)

Adapt machine-independant code to the new {b,c}devsw reference-counting
(using localcount(9)).  All callers of {b,c}devsw_lookup() now call
{b,c}devsw_lookup_acquire() which retains a reference on the 'struct
{b,c}devsw'.  This reference must be released by the caller once it is
finished with the structure's content (or other data that would disappear
if the 'struct {b,c}devsw' were to disappear).

Revision 1.89.4.1 / (download) - annotate - [select for diffs], Mon Apr 6 15:18:18 2015 UTC (9 years ago) by skrll
Branch: nick-nhusb
Changes since 1.89: +5 -5 lines
Diff to previous 1.89 (colored) to selected 1.63.6.1 (colored)

Sync with HEAD

Revision 1.90 / (download) - annotate - [select for diffs], Sat Mar 28 19:24:05 2015 UTC (9 years ago) by maxv
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, localcount-20160914, bouyer-socketcan-base
Branch point for: pgoyette-localcount, bouyer-socketcan
Changes since 1.89: +5 -5 lines
Diff to previous 1.89 (colored) to selected 1.63.6.1 (colored)

Remove the 'cred' argument from bread(). Remove a now unused var in
ffs_snapshot.c. Update the man page accordingly.

ok hannken@

Revision 1.75.2.3 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:26 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.75.2.2: +114 -172 lines
Diff to previous 1.75.2.2 (colored) to branchpoint 1.75 (colored) to selected 1.63.6.1 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.83.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:55:53 2014 UTC (9 years, 8 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.83: +78 -130 lines
Diff to previous 1.83 (colored) next main 1.84 (colored) to selected 1.63.6.1 (colored)

Rebase.

Revision 1.89 / (download) - annotate - [select for diffs], Wed Jul 9 08:43:54 2014 UTC (9 years, 9 months ago) by maxv
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, nick-nhusb-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
Branch point for: nick-nhusb
Changes since 1.88: +2 -4 lines
Diff to previous 1.88 (colored) to selected 1.63.6.1 (colored)

Remove ROOTNAME (unused).

Revision 1.88 / (download) - annotate - [select for diffs], Sun Jun 22 09:47:40 2014 UTC (9 years, 9 months ago) by hannken
Branch: MAIN
Changes since 1.87: +4 -6 lines
Diff to previous 1.87 (colored) to selected 1.63.6.1 (colored)

CID 1223346: No need to check bp against NULL.  It is always valid here.

Revision 1.87 / (download) - annotate - [select for diffs], Mon Jun 16 09:55:49 2014 UTC (9 years, 10 months ago) by hannken
Branch: MAIN
Changes since 1.86: +31 -45 lines
Diff to previous 1.86 (colored) to selected 1.63.6.1 (colored)

Change cd9660 from hashlist to vcache.

Revision 1.86 / (download) - annotate - [select for diffs], Sat Jun 14 07:39:28 2014 UTC (9 years, 10 months ago) by hannken
Branch: MAIN
Changes since 1.85: +45 -85 lines
Diff to previous 1.85 (colored) to selected 1.63.6.1 (colored)

Remove the hints "isodir" and "relocated" from cd9660_vget_internal()
and always reread the directory entry by inumber.  For directories
the directory entry is always its "." entry.

Always read directories via the device vnode to prevent buffer cache
inconsistency.  Keep i_devvp as a hint for fstat(1) and friends and
always use im_devvp for reads.  No need to vref()/vrele() i_devvp.

The additional bread is either cached because cd9660_lookup() just
released the buffer or will be used in the near future when the
directory gets traversed during lookup.

No objections on tech-kern@

Revision 1.73.2.3 / (download) - annotate - [select for diffs], Thu May 22 11:41:00 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.73.2.2: +44 -48 lines
Diff to previous 1.73.2.2 (colored) to branchpoint 1.73 (colored) next main 1.74 (colored) to selected 1.63.6.1 (colored)

sync with head.

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

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

Revision 1.78.2.1 / (download) - annotate - [select for diffs], Sun May 18 17:46:04 2014 UTC (9 years, 11 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.78: +50 -50 lines
Diff to previous 1.78 (colored) next main 1.79 (colored) to selected 1.63.6.1 (colored)

sync with head

Revision 1.85 / (download) - annotate - [select for diffs], Tue May 13 17:05:26 2014 UTC (9 years, 11 months ago) by martin
Branch: MAIN
CVS Tags: rmind-smpnet-nbase, rmind-smpnet-base
Changes since 1.84: +10 -6 lines
Diff to previous 1.84 (colored) to selected 1.63.6.1 (colored)

PR kern/48799: make filehandles properly use 64bit inodes on CD9660 file
systems. Patch from Thomas Schmitt, with slight modifications.

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

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

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

Revision 1.63.6.1.2.1 / (download) - annotate - [select for diffs], Mon Apr 28 16:03:14 2014 UTC (9 years, 11 months ago) by sborrill
Branch: netbsd-5-1
CVS Tags: netbsd-5-1-5-RELEASE
Changes since 1.63.6.1: +4 -2 lines
Diff to previous 1.63.6.1 (colored) next main 1.63.6.2 (colored)

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

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

Revision 1.63.6.2 / (download) - annotate - [select for diffs], Fri Apr 25 15:43:49 2014 UTC (9 years, 11 months ago) by sborrill
Branch: netbsd-5
Changes since 1.63.6.1: +4 -2 lines
Diff to previous 1.63.6.1 (colored) to branchpoint 1.63 (colored) next main 1.64 (colored)

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

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

Revision 1.74.12.1 / (download) - annotate - [select for diffs], Mon Apr 21 10:17:47 2014 UTC (9 years, 11 months ago) by bouyer
Branch: netbsd-6-1
CVS Tags: netbsd-6-1-5-RELEASE
Changes since 1.74: +4 -2 lines
Diff to previous 1.74 (colored) next main 1.75 (colored) to selected 1.63.6.1 (colored)

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

Revision 1.74.10.1 / (download) - annotate - [select for diffs], Mon Apr 21 10:15:36 2014 UTC (9 years, 11 months ago) by bouyer
Branch: netbsd-6-0
CVS Tags: netbsd-6-0-6-RELEASE
Changes since 1.74: +4 -2 lines
Diff to previous 1.74 (colored) next main 1.75 (colored) to selected 1.63.6.1 (colored)

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

Revision 1.74.6.1 / (download) - annotate - [select for diffs], Mon Apr 21 10:14:18 2014 UTC (9 years, 11 months ago) by bouyer
Branch: netbsd-6
Changes since 1.74: +4 -2 lines
Diff to previous 1.74 (colored) next main 1.75 (colored) to selected 1.63.6.1 (colored)

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

Revision 1.84 / (download) - annotate - [select for diffs], Wed Apr 16 18:55:18 2014 UTC (10 years ago) by maxv
Branch: MAIN
CVS Tags: yamt-pagecache-base9
Changes since 1.83: +4 -2 lines
Diff to previous 1.83 (colored) to selected 1.63.6.1 (colored)

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

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

ok christos@

Revision 1.83 / (download) - annotate - [select for diffs], Mon Mar 24 04:03:25 2014 UTC (10 years ago) by dholland
Branch: MAIN
CVS Tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15
Branch point for: tls-earlyentropy
Changes since 1.82: +14 -12 lines
Diff to previous 1.82 (colored) to selected 1.63.6.1 (colored)

Tidy up locking in cd9660_mount; thrash the lock less, and make it
clear that the lock is only dropped when calling iso_mountfs().

While here, don't use the vnode pointer's value after vrele().

Revision 1.82 / (download) - annotate - [select for diffs], Sun Mar 23 15:21:15 2014 UTC (10 years ago) by hannken
Branch: MAIN
Changes since 1.81: +25 -27 lines
Diff to previous 1.81 (colored) to selected 1.63.6.1 (colored)

Change all vfsops to use C99 designated initializers.

No functional changes intended.

Revision 1.81 / (download) - annotate - [select for diffs], Tue Feb 25 18:30:10 2014 UTC (10 years, 1 month ago) by pooka
Branch: MAIN
CVS Tags: riastradh-drm2-base3
Changes since 1.80: +2 -6 lines
Diff to previous 1.80 (colored) to selected 1.63.6.1 (colored)

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

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

Revision 1.80 / (download) - annotate - [select for diffs], Sat Nov 23 13:35:36 2013 UTC (10 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.79: +3 -5 lines
Diff to previous 1.79 (colored) to selected 1.63.6.1 (colored)

change the mountlist CIRCLEQ into a TAILQ

Revision 1.79 / (download) - annotate - [select for diffs], Mon Sep 30 18:57:59 2013 UTC (10 years, 6 months ago) by hannken
Branch: MAIN
Changes since 1.78: +4 -4 lines
Diff to previous 1.78 (colored) to selected 1.63.6.1 (colored)

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

Welcome to 6.99.24

Discussed on tech-kern@ some time ago.

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

Revision 1.78 / (download) - annotate - [select for diffs], Sun Jun 23 07:28:36 2013 UTC (10 years, 9 months ago) by dholland
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2
Branch point for: rmind-smpnet
Changes since 1.77: +3 -3 lines
Diff to previous 1.77 (colored) to selected 1.63.6.1 (colored)

Stick ffs_, ext2_, chfs_, filecore_, cd9660_, or mfs_ in front of
the following symbols so as to disambiguate fully. (Christos already
did the lfs ones.)

   lblkno
   lblktosize
   lfragtosize
   numfrags
   blkroundup
   fragroundup

Revision 1.75.2.2 / (download) - annotate - [select for diffs], Sun Jun 23 06:18:27 2013 UTC (10 years, 9 months ago) by tls
Branch: tls-maxphys
Changes since 1.75.2.1: +3 -3 lines
Diff to previous 1.75.2.1 (colored) to branchpoint 1.75 (colored) to selected 1.63.6.1 (colored)

resync from head

Revision 1.77 / (download) - annotate - [select for diffs], Wed Jun 19 18:16:53 2013 UTC (10 years, 9 months ago) by dholland
Branch: MAIN
Changes since 1.76: +3 -3 lines
Diff to previous 1.76 (colored) to selected 1.63.6.1 (colored)

blkoff() -> cd9660_blkoff()
blksize() -> cd9660_blksize()

Revision 1.75.2.1 / (download) - annotate - [select for diffs], Mon Feb 25 00:29:46 2013 UTC (11 years, 1 month ago) by tls
Branch: tls-maxphys
Changes since 1.75: +2 -3 lines
Diff to previous 1.75 (colored) to selected 1.63.6.1 (colored)

resync with head

Revision 1.73.2.2 / (download) - annotate - [select for diffs], Wed Jan 23 00:06:18 2013 UTC (11 years, 2 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.73.2.1: +2 -3 lines
Diff to previous 1.73.2.1 (colored) to branchpoint 1.73 (colored) to selected 1.63.6.1 (colored)

sync with head

Revision 1.76 / (download) - annotate - [select for diffs], Thu Dec 20 08:03:42 2012 UTC (11 years, 3 months ago) by hannken
Branch: MAIN
CVS Tags: yamt-pagecache-base8, khorben-n900, agc-symver-base, agc-symver
Changes since 1.75: +2 -3 lines
Diff to previous 1.75 (colored) to selected 1.63.6.1 (colored)

Change bread() and breadn() to never return a buffer on
error and modify all callers to not brelse() on error.

Welcome to 6.99.16

PR kern/46282 (6.0_BETA crash: msdosfs_bmap -> pcbmap -> bread -> bio_doread)

Revision 1.73.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:18 2012 UTC (12 years ago) by yamt
Branch: yamt-pagecache
Changes since 1.73: +6 -3 lines
Diff to previous 1.73 (colored) to selected 1.63.6.1 (colored)

sync with head

Revision 1.74.4.1 / (download) - annotate - [select for diffs], Thu Apr 5 21:33:35 2012 UTC (12 years ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.74: +4 -3 lines
Diff to previous 1.74 (colored) next main 1.75 (colored) to selected 1.63.6.1 (colored)

sync to latest -current.

Revision 1.75 / (download) - annotate - [select for diffs], Tue Mar 13 18:40:35 2012 UTC (12 years, 1 month ago) by elad
Branch: MAIN
CVS Tags: yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base10
Branch point for: tls-maxphys
Changes since 1.74: +4 -3 lines
Diff to previous 1.74 (colored) to selected 1.63.6.1 (colored)

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

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

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

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

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

Revision 1.74 / (download) - annotate - [select for diffs], Mon Nov 14 18:35:12 2011 UTC (12 years, 5 months ago) by hannken
Branch: MAIN
CVS Tags: 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-pre-base2, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: netbsd-6-1, netbsd-6-0, netbsd-6, jmcneill-usbmp
Changes since 1.73: +4 -2 lines
Diff to previous 1.73 (colored) to selected 1.63.6.1 (colored)

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

Revision 1.73 / (download) - annotate - [select for diffs], Tue Sep 27 01:01:43 2011 UTC (12 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base
Branch point for: yamt-pagecache
Changes since 1.72: +3 -3 lines
Diff to previous 1.72 (colored) to selected 1.63.6.1 (colored)

define and use ISO_MAXNAMLEN instead of MAXNAMLEN

Revision 1.71.6.1 / (download) - annotate - [select for diffs], Thu Jun 23 14:20:13 2011 UTC (12 years, 9 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.71: +4 -3 lines
Diff to previous 1.71 (colored) next main 1.72 (colored) to selected 1.63.6.1 (colored)

Catchup with rmind-uvmplock merge.

Revision 1.72 / (download) - annotate - [select for diffs], Sun Jun 12 03:35:52 2011 UTC (12 years, 10 months ago) by rmind
Branch: MAIN
Changes since 1.71: +4 -3 lines
Diff to previous 1.71 (colored) to selected 1.63.6.1 (colored)

Welcome to 5.99.53!  Merge rmind-uvmplock branch:

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

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

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

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

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

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

Revision 1.70.4.2 / (download) - annotate - [select for diffs], Thu May 19 03:43:00 2011 UTC (12 years, 11 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.70.4.1: +4 -3 lines
Diff to previous 1.70.4.1 (colored) to branchpoint 1.70 (colored) next main 1.71 (colored) to selected 1.63.6.1 (colored)

Implement sharing of vnode_t::v_interlock amongst vnodes:
- Lock is shared amongst UVM objects using uvm_obj_setlock() or getnewvnode().
- Adjust vnode cache to handle unsharing, add VI_LOCKSHARE flag for that.
- Use sharing in tmpfs and layerfs for underlying object.
- Simplify locking in ubc_fault().
- Sprinkle some asserts.

Discussed with ad@.

Revision 1.70.2.1 / (download) - annotate - [select for diffs], Tue Aug 17 06:47:14 2010 UTC (13 years, 8 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.70: +4 -4 lines
Diff to previous 1.70 (colored) next main 1.71 (colored) to selected 1.63.6.1 (colored)

Sync with HEAD.

Revision 1.57.4.5 / (download) - annotate - [select for diffs], Wed Aug 11 22:54:32 2010 UTC (13 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.57.4.4: +4 -4 lines
Diff to previous 1.57.4.4 (colored) to branchpoint 1.57 (colored) next main 1.58 (colored) to selected 1.63.6.1 (colored)

sync with head.

Revision 1.70.4.1 / (download) - annotate - [select for diffs], Sat Jul 3 01:19:49 2010 UTC (13 years, 9 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.70: +4 -4 lines
Diff to previous 1.70 (colored) to selected 1.63.6.1 (colored)

sync with head

Revision 1.71 / (download) - annotate - [select for diffs], Thu Jun 24 13:03:09 2010 UTC (13 years, 9 months ago) by hannken
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, rmind-uvmplock-nbase, rmind-uvmplock-base, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, cherry-xenmp-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: cherry-xenmp
Changes since 1.70: +4 -4 lines
Diff to previous 1.70 (colored) to selected 1.63.6.1 (colored)

Clean up vnode lock operations pass 2:

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

Welcome to 5.99.32.

Discussed on tech-kern.

Revision 1.63.12.1 / (download) - annotate - [select for diffs], Wed Apr 21 00:28:12 2010 UTC (13 years, 11 months ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Changes since 1.63: +4 -3 lines
Diff to previous 1.63 (colored) next main 1.64 (colored) to selected 1.63.6.1 (colored)

sync to netbsd-5

Revision 1.57.4.4 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:13 2010 UTC (14 years, 1 month ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.57.4.3: +6 -6 lines
Diff to previous 1.57.4.3 (colored) to branchpoint 1.57 (colored) to selected 1.63.6.1 (colored)

sync with head

Revision 1.70 / (download) - annotate - [select for diffs], Tue Jan 26 21:29:48 2010 UTC (14 years, 2 months ago) by mlelstv
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, uebayasi-xip-base1, uebayasi-xip-base
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.69: +3 -4 lines
Diff to previous 1.69 (colored) to selected 1.63.6.1 (colored)

Drop two uses of disk label data.

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

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

Revision 1.69 / (download) - annotate - [select for diffs], Fri Jan 8 11:35:08 2010 UTC (14 years, 3 months ago) by pooka
Branch: MAIN
Changes since 1.68: +3 -3 lines
Diff to previous 1.68 (colored) to selected 1.63.6.1 (colored)

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

no functional change

Revision 1.63.6.1 / (download) - annotate - [selected], Tue Oct 27 21:58:34 2009 UTC (14 years, 5 months ago) by bouyer
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, 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, matt-nb5-pq3-base, matt-nb5-pq3
Branch point for: netbsd-5-2, netbsd-5-1
Changes since 1.63: +4 -3 lines
Diff to previous 1.63 (colored)

Pull up following revision(s) (requested by tsutsui in ticket #1115):
	sys/fs/cd9660/cd9660_vfsops.c: revision 1.68
Apply a similar fix for mount function from ffs_vfsops.c rev 1.186:
 Change cd9660_mount, in MNT_UPDATE case, to check dev_t's for equality
 instead of just vnode pointers.  Fixes erroneous "Invalid argument"
 errors from mount(8) with -u against cd9660 root in the presence of
 mfs or tmpfs /dev prepared after initial mountroot.
Tested on QEMU running cobalt Restore CD.

Revision 1.68 / (download) - annotate - [select for diffs], Mon Oct 19 17:53:36 2009 UTC (14 years, 6 months ago) by tsutsui
Branch: MAIN
CVS Tags: matt-premerge-20091211, jym-xensuspend-nbase
Changes since 1.67: +4 -3 lines
Diff to previous 1.67 (colored) to selected 1.63.6.1 (colored)

Apply a similar fix for mount function from ffs_vfsops.c rev 1.186:
 Change cd9660_mount, in MNT_UPDATE case, to check dev_t's for equality
 instead of just vnode pointers.  Fixes erroneous "Invalid argument"
 errors from mount(8) with -u against cd9660 root in the presence of
 mfs or tmpfs /dev prepared after initial mountroot.

Tested on QEMU running cobalt Restore CD.

Revision 1.65.2.2 / (download) - annotate - [select for diffs], Thu Jul 23 23:32:31 2009 UTC (14 years, 8 months ago) by jym
Branch: jym-xensuspend
Changes since 1.65.2.1: +5 -6 lines
Diff to previous 1.65.2.1 (colored) to branchpoint 1.65 (colored) next main 1.66 (colored) to selected 1.63.6.1 (colored)

Sync with HEAD.

Revision 1.57.4.3 / (download) - annotate - [select for diffs], Sat Jul 18 14:53:20 2009 UTC (14 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.57.4.2: +5 -6 lines
Diff to previous 1.57.4.2 (colored) to branchpoint 1.57 (colored) to selected 1.63.6.1 (colored)

sync with head.

Revision 1.67 / (download) - annotate - [select for diffs], Mon Jun 29 05:08:17 2009 UTC (14 years, 9 months ago) by dholland
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, jymxensuspend-base
Changes since 1.66: +5 -6 lines
Diff to previous 1.66 (colored) to selected 1.63.6.1 (colored)

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

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

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

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

Revision 1.65.2.1 / (download) - annotate - [select for diffs], Wed May 13 17:21:49 2009 UTC (14 years, 11 months ago) by jym
Branch: jym-xensuspend
Changes since 1.65: +8 -10 lines
Diff to previous 1.65 (colored) to selected 1.63.6.1 (colored)

Sync with HEAD.

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

Revision 1.57.4.2 / (download) - annotate - [select for diffs], Mon May 4 08:13:42 2009 UTC (14 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.57.4.1: +48 -39 lines
Diff to previous 1.57.4.1 (colored) to branchpoint 1.57 (colored) to selected 1.63.6.1 (colored)

sync with head.

Revision 1.63.4.3 / (download) - annotate - [select for diffs], Tue Apr 28 07:36:52 2009 UTC (14 years, 11 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.63.4.2: +8 -10 lines
Diff to previous 1.63.4.2 (colored) to branchpoint 1.63 (colored) next main 1.64 (colored) to selected 1.63.6.1 (colored)

Sync with HEAD.

Revision 1.66 / (download) - annotate - [select for diffs], Sat Apr 25 18:53:44 2009 UTC (14 years, 11 months ago) by elad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, jym-xensuspend-base
Changes since 1.65: +8 -10 lines
Diff to previous 1.65 (colored) to selected 1.63.6.1 (colored)

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

Proposed with no objections on tech-kern@:

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

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

Revision 1.63.4.2 / (download) - annotate - [select for diffs], Tue Mar 3 18:32:35 2009 UTC (15 years, 1 month ago) by skrll
Branch: nick-hppapmap
Changes since 1.63.4.1: +3 -3 lines
Diff to previous 1.63.4.1 (colored) to branchpoint 1.63 (colored) to selected 1.63.6.1 (colored)

Sync with HEAD.

Revision 1.65 / (download) - annotate - [select for diffs], Thu Jan 22 16:05:03 2009 UTC (15 years, 2 months ago) by cegger
Branch: MAIN
CVS Tags: nick-hppapmap-base2
Branch point for: jym-xensuspend
Changes since 1.64: +3 -3 lines
Diff to previous 1.64 (colored) to selected 1.63.6.1 (colored)

buildfix: re-adapt for major/minor returning 32bit value again.

Revision 1.63.4.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:19:33 2009 UTC (15 years, 2 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.63: +3 -3 lines
Diff to previous 1.63 (colored) to selected 1.63.6.1 (colored)

Sync with HEAD.

Revision 1.56.6.4 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:16 2009 UTC (15 years, 3 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.56.6.3: +1 -1 lines
Diff to previous 1.56.6.3 (colored) to branchpoint 1.56 (colored) next main 1.57 (colored) to selected 1.63.6.1 (colored)

Sync with HEAD.

Revision 1.64 / (download) - annotate - [select for diffs], Sun Jan 11 10:07:54 2009 UTC (15 years, 3 months ago) by cegger
Branch: MAIN
CVS Tags: mjf-devfs2-base
Changes since 1.63: +3 -3 lines
Diff to previous 1.63 (colored) to selected 1.63.6.1 (colored)

make this compile

Revision 1.61.2.2 / (download) - annotate - [select for diffs], Thu Sep 18 04:36:55 2008 UTC (15 years, 7 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.61.2.1: +38 -27 lines
Diff to previous 1.61.2.1 (colored) to branchpoint 1.61 (colored) next main 1.62 (colored) to selected 1.63.6.1 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.62.2.1 / (download) - annotate - [select for diffs], Thu Jul 3 18:38:10 2008 UTC (15 years, 9 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.62: +38 -27 lines
Diff to previous 1.62 (colored) next main 1.63 (colored) to selected 1.63.6.1 (colored)

Sync with head.

Revision 1.56.6.3 / (download) - annotate - [select for diffs], Sun Jun 29 09:33:12 2008 UTC (15 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.56.6.2: +36 -25 lines
Diff to previous 1.56.6.2 (colored) to branchpoint 1.56 (colored) to selected 1.63.6.1 (colored)

Sync with HEAD.

Revision 1.63 / (download) - annotate - [select for diffs], Sat Jun 28 01:34:05 2008 UTC (15 years, 9 months ago) by rumble
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, simonb-wapbl-nbase, simonb-wapbl-base, netbsd-5-base, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, netbsd-5, matt-nb5-mips64
Changes since 1.62: +38 -27 lines
Diff to previous 1.62 (colored) to selected 1.63.6.1 (colored)

Create sysctl entries during module initialisation and destroy them
appropriately.

Many of these file systems are now ready for modularisation.

Revision 1.61.2.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:31:46 2008 UTC (15 years, 9 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.61: +5 -5 lines
Diff to previous 1.61 (colored) to selected 1.63.6.1 (colored)

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

Revision 1.56.6.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:04 2008 UTC (15 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.56.6.1: +23 -6 lines
Diff to previous 1.56.6.1 (colored) to branchpoint 1.56 (colored) to selected 1.63.6.1 (colored)

Sync with HEAD.

Revision 1.57.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:34:59 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-pf42
Changes since 1.57: +25 -8 lines
Diff to previous 1.57 (colored) next main 1.58 (colored) to selected 1.63.6.1 (colored)

sync with head.

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

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

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

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

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

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

Welcome to 4.99.63

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

Revision 1.57.4.1 / (download) - annotate - [select for diffs], Fri May 16 02:25:17 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.57: +22 -5 lines
Diff to previous 1.57 (colored) to selected 1.63.6.1 (colored)

sync with head.

Revision 1.61 / (download) - annotate - [select for diffs], Tue May 6 18:43:44 2008 UTC (15 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base2
Branch point for: wrstuden-revivesa
Changes since 1.60: +3 -4 lines
Diff to previous 1.60 (colored) to selected 1.63.6.1 (colored)

PR kern/38141 lookup/vfs_busy acquire rwlock recursively

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

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

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

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

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

Revision 1.60 / (download) - annotate - [select for diffs], Sat May 3 15:57:41 2008 UTC (15 years, 11 months ago) by ad
Branch: MAIN
Changes since 1.59: +19 -3 lines
Diff to previous 1.59 (colored) to selected 1.63.6.1 (colored)

Convert cd9660 to attach as a module.

Revision 1.59 / (download) - annotate - [select for diffs], Wed Apr 30 12:49:16 2008 UTC (15 years, 11 months ago) by ad
Branch: MAIN
Changes since 1.58: +6 -5 lines
Diff to previous 1.58 (colored) to selected 1.63.6.1 (colored)

PR kern/38135 vfs_busy/vfs_trybusy confusion

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

Revision 1.58 / (download) - annotate - [select for diffs], Tue Apr 29 18:18:08 2008 UTC (15 years, 11 months ago) by ad
Branch: MAIN
Changes since 1.57: +3 -2 lines
Diff to previous 1.57 (colored) to selected 1.63.6.1 (colored)

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

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

Revision 1.56.6.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:42:59 2008 UTC (16 years ago) by mjf
Branch: mjf-devfs2
Changes since 1.56: +17 -49 lines
Diff to previous 1.56 (colored) to selected 1.63.6.1 (colored)

Sync with HEAD.

Revision 1.56.2.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:16:12 2008 UTC (16 years ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.56: +17 -49 lines
Diff to previous 1.56 (colored) next main 1.57 (colored) to selected 1.63.6.1 (colored)

sync with head.

Revision 1.47.4.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:56 2008 UTC (16 years ago) by matt
Branch: matt-armv6
Changes since 1.47.4.2: +24 -84 lines
Diff to previous 1.47.4.2 (colored) to branchpoint 1.47 (colored) next main 1.48 (colored) to selected 1.63.6.1 (colored)

sync with HEAD

Revision 1.24.2.9 / (download) - annotate - [select for diffs], Mon Mar 17 09:15:32 2008 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.24.2.8: +17 -49 lines
Diff to previous 1.24.2.8 (colored) next main 1.25 (colored) to selected 1.63.6.1 (colored)

sync with head.

Revision 1.57 / (download) - annotate - [select for diffs], Wed Feb 27 19:43:36 2008 UTC (16 years, 1 month ago) by matt
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, ad-socklock-base1
Branch point for: yamt-pf42, yamt-nfs-mp
Changes since 1.56: +17 -49 lines
Diff to previous 1.56 (colored) to selected 1.63.6.1 (colored)

Convert to ansi definitions from old-style definitons.

Revision 1.49.4.3 / (download) - annotate - [select for diffs], Mon Feb 18 21:06:35 2008 UTC (16 years, 2 months ago) by mjf
Branch: mjf-devfs
Changes since 1.49.4.2: +10 -38 lines
Diff to previous 1.49.4.2 (colored) to branchpoint 1.49 (colored) next main 1.50 (colored) to selected 1.63.6.1 (colored)

Sync with HEAD.

Revision 1.24.2.8 / (download) - annotate - [select for diffs], Mon Feb 4 09:23:43 2008 UTC (16 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.24.2.7: +9 -37 lines
Diff to previous 1.24.2.7 (colored) to selected 1.63.6.1 (colored)

sync with head.

Revision 1.56 / (download) - annotate - [select for diffs], Wed Jan 30 11:46:59 2008 UTC (16 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, hpcarm-cleanup-base
Branch point for: mjf-devfs2, keiichi-mipv6
Changes since 1.55: +4 -5 lines
Diff to previous 1.55 (colored) to selected 1.63.6.1 (colored)

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

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

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

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

Revision 1.54 / (download) - annotate - [select for diffs], Thu Jan 24 17:32:52 2008 UTC (16 years, 2 months ago) by ad
Branch: MAIN
Changes since 1.53: +4 -34 lines
Diff to previous 1.53 (colored) to selected 1.63.6.1 (colored)

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

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

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

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

Revision 1.24.2.7 / (download) - annotate - [select for diffs], Mon Jan 21 09:45:43 2008 UTC (16 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.24.2.6: +24 -20 lines
Diff to previous 1.24.2.6 (colored) to selected 1.63.6.1 (colored)

sync with head

Revision 1.47.4.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:55:40 2008 UTC (16 years, 3 months ago) by matt
Branch: matt-armv6
Changes since 1.47.4.1: +39 -55 lines
Diff to previous 1.47.4.1 (colored) to branchpoint 1.47 (colored) to selected 1.63.6.1 (colored)

sync with HEAD

Revision 1.52.4.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:55:27 2008 UTC (16 years, 3 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.52: +3 -3 lines
Diff to previous 1.52 (colored) next main 1.53 (colored) to selected 1.63.6.1 (colored)

Sync with HEAD

Revision 1.53 / (download) - annotate - [select for diffs], Wed Jan 2 11:48:40 2008 UTC (16 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: matt-armv6-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Changes since 1.52: +3 -3 lines
Diff to previous 1.52 (colored) to selected 1.63.6.1 (colored)

Merge vmlocking2 to head.

Revision 1.49.4.2 / (download) - annotate - [select for diffs], Thu Dec 27 00:45:43 2007 UTC (16 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.49.4.1: +23 -19 lines
Diff to previous 1.49.4.1 (colored) to branchpoint 1.49 (colored) to selected 1.63.6.1 (colored)

Sync with HEAD.

Revision 1.50.2.3 / (download) - annotate - [select for diffs], Wed Dec 26 21:39:31 2007 UTC (16 years, 3 months ago) by ad
Branch: vmlocking2
Changes since 1.50.2.2: +3 -3 lines
Diff to previous 1.50.2.2 (colored) to branchpoint 1.50 (colored) next main 1.51 (colored) to selected 1.63.6.1 (colored)

Sync with head.

Revision 1.47.2.3 / (download) - annotate - [select for diffs], Sun Dec 9 19:38:07 2007 UTC (16 years, 4 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.47.2.2: +23 -19 lines
Diff to previous 1.47.2.2 (colored) to branchpoint 1.47 (colored) next main 1.48 (colored) to selected 1.63.6.1 (colored)

Sync with HEAD.

Revision 1.40.6.1 / (download) - annotate - [select for diffs], Sun Dec 9 16:04:00 2007 UTC (16 years, 4 months ago) by reinoud
Branch: reinoud-bufcleanup
Changes since 1.40: +22 -18 lines
Diff to previous 1.40 (colored) next main 1.41 (colored) to selected 1.63.6.1 (colored)

Pullup to HEAD

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

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

Revision 1.49.4.1 / (download) - annotate - [select for diffs], Sat Dec 8 18:20:12 2007 UTC (16 years, 4 months ago) by mjf
Branch: mjf-devfs
Changes since 1.49: +17 -37 lines
Diff to previous 1.49 (colored) to selected 1.63.6.1 (colored)

Sync with HEAD.

Revision 1.50.2.2 / (download) - annotate - [select for diffs], Sat Dec 8 17:57:37 2007 UTC (16 years, 4 months ago) by ad
Branch: vmlocking2
Changes since 1.50.2.1: +2 -2 lines
Diff to previous 1.50.2.1 (colored) to branchpoint 1.50 (colored) to selected 1.63.6.1 (colored)

Sync with head.

Revision 1.51 / (download) - annotate - [select for diffs], Sat Dec 8 14:41:12 2007 UTC (16 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: vmlocking2-base2, reinoud-bufcleanup-nbase
Changes since 1.50: +22 -18 lines
Diff to previous 1.50 (colored) to selected 1.63.6.1 (colored)

Merge locking changes + fixes from the vmlocking branch.

Revision 1.24.2.6 / (download) - annotate - [select for diffs], Fri Dec 7 17:31:51 2007 UTC (16 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.24.2.5: +17 -37 lines
Diff to previous 1.24.2.5 (colored) to selected 1.63.6.1 (colored)

sync with head

Revision 1.50.2.1 / (download) - annotate - [select for diffs], Tue Dec 4 13:03:03 2007 UTC (16 years, 4 months ago) by ad
Branch: vmlocking2
Changes since 1.50: +23 -19 lines
Diff to previous 1.50 (colored) to selected 1.63.6.1 (colored)

Pull the vmlocking changes into a new branch.

Revision 1.47.2.2 / (download) - annotate - [select for diffs], Tue Nov 27 19:37:34 2007 UTC (16 years, 4 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.47.2.1: +17 -37 lines
Diff to previous 1.47.2.1 (colored) to branchpoint 1.47 (colored) to selected 1.63.6.1 (colored)

Sync with HEAD. amd64 Xen support needs testing.

Revision 1.50 / (download) - annotate - [select for diffs], Mon Nov 26 19:01:42 2007 UTC (16 years, 4 months ago) by pooka
Branch: MAIN
CVS Tags: vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-base
Branch point for: vmlocking2
Changes since 1.49: +17 -37 lines
Diff to previous 1.49 (colored) to selected 1.63.6.1 (colored)

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

quick consensus on tech-kern

Revision 1.47.4.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:31:04 2007 UTC (16 years, 5 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.47: +20 -22 lines
Diff to previous 1.47 (colored) to selected 1.63.6.1 (colored)

sync with HEAD

Revision 1.24.2.5 / (download) - annotate - [select for diffs], Sat Oct 27 11:35:00 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.24.2.4: +20 -22 lines
Diff to previous 1.24.2.4 (colored) to selected 1.63.6.1 (colored)

sync with head.

Revision 1.47.2.1 / (download) - annotate - [select for diffs], Fri Oct 26 15:48:12 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.47: +20 -22 lines
Diff to previous 1.47 (colored) to selected 1.63.6.1 (colored)

Sync with HEAD.

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

Revision 1.40.2.10 / (download) - annotate - [select for diffs], Wed Oct 24 16:23:21 2007 UTC (16 years, 5 months ago) by ad
Branch: vmlocking
Changes since 1.40.2.9: +3 -14 lines
Diff to previous 1.40.2.9 (colored) to branchpoint 1.40 (colored) next main 1.41 (colored) to selected 1.63.6.1 (colored)

- Kill ISODEVMAP.
- Mark cd9660 MPSAFE.

Revision 1.40.2.9 / (download) - annotate - [select for diffs], Wed Oct 24 16:16:32 2007 UTC (16 years, 5 months ago) by ad
Branch: vmlocking
Changes since 1.40.2.8: +22 -6 lines
Diff to previous 1.40.2.8 (colored) to branchpoint 1.40 (colored) to selected 1.63.6.1 (colored)

- Fix a race in cd9660_vget().
- simplelock -> mutex.

Revision 1.47.6.1 / (download) - annotate - [select for diffs], Sun Oct 14 11:48:26 2007 UTC (16 years, 6 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.47: +20 -22 lines
Diff to previous 1.47 (colored) next main 1.48 (colored) to selected 1.63.6.1 (colored)

sync with head.

Revision 1.49 / (download) - annotate - [select for diffs], Wed Oct 10 20:42:22 2007 UTC (16 years, 6 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, vmlocking-base, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: mjf-devfs
Changes since 1.48: +6 -6 lines
Diff to previous 1.48 (colored) to selected 1.63.6.1 (colored)

Merge from vmlocking:

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

Revision 1.48 / (download) - annotate - [select for diffs], Mon Oct 8 18:04:02 2007 UTC (16 years, 6 months ago) by ad
Branch: MAIN
Changes since 1.47: +16 -18 lines
Diff to previous 1.47 (colored) to selected 1.63.6.1 (colored)

Merge brelse() changes from the vmlocking branch.

Revision 1.40.2.8 / (download) - annotate - [select for diffs], Sun Sep 16 19:04:27 2007 UTC (16 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.40.2.7: +2 -3 lines
Diff to previous 1.40.2.7 (colored) to branchpoint 1.40 (colored) to selected 1.63.6.1 (colored)

Checkpoint work in progress on the vnode lifecycle and reference counting
stuff. This makes it work properly without kernel_lock and fixes a few
quite old bugs. See vfs_subr.c 1.283.2.17 for details.

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

sync with head.

Revision 1.40.2.7 / (download) - annotate - [select for diffs], Fri Aug 24 23:28:38 2007 UTC (16 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.40.2.6: +4 -4 lines
Diff to previous 1.40.2.6 (colored) to branchpoint 1.40 (colored) to selected 1.63.6.1 (colored)

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

Revision 1.40.2.6 / (download) - annotate - [select for diffs], Mon Aug 20 21:26:04 2007 UTC (16 years, 8 months ago) by ad
Branch: vmlocking
Changes since 1.40.2.5: +12 -9 lines
Diff to previous 1.40.2.5 (colored) to branchpoint 1.40 (colored) to selected 1.63.6.1 (colored)

Sync with HEAD.

Revision 1.44.2.1 / (download) - annotate - [select for diffs], Wed Aug 15 13:48:55 2007 UTC (16 years, 8 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.44: +11 -8 lines
Diff to previous 1.44 (colored) next main 1.45 (colored) to selected 1.63.6.1 (colored)

Sync with HEAD.

Revision 1.47.8.2 / (download) - annotate - [select for diffs], Tue Jul 31 21:14:18 2007 UTC (16 years, 8 months ago) by pooka
Branch: matt-mips64
Changes since 1.47.8.1: +979 -0 lines
Diff to previous 1.47.8.1 (colored) to branchpoint 1.47 (colored) next main 1.48 (colored) to selected 1.63.6.1 (colored)

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

Revision 1.47.8.1, Tue Jul 31 21:14:17 2007 UTC (16 years, 8 months ago) by pooka
Branch: matt-mips64
Changes since 1.47: +0 -979 lines
FILE REMOVED

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

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

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

Revision 1.40.2.5 / (download) - annotate - [select for diffs], Sun Jul 29 11:37:09 2007 UTC (16 years, 8 months ago) by ad
Branch: vmlocking
Changes since 1.40.2.4: +3 -3 lines
Diff to previous 1.40.2.4 (colored) to branchpoint 1.40 (colored) to selected 1.63.6.1 (colored)

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

Revision 1.46 / (download) - annotate - [select for diffs], Thu Jul 26 22:57:37 2007 UTC (16 years, 8 months ago) by pooka
Branch: MAIN
CVS Tags: hpcarm-cleanup
Changes since 1.45: +3 -3 lines
Diff to previous 1.45 (colored) to selected 1.63.6.1 (colored)

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

Revision 1.45 / (download) - annotate - [select for diffs], Mon Jul 23 11:27:46 2007 UTC (16 years, 8 months ago) by pooka
Branch: MAIN
Changes since 1.44: +5 -2 lines
Diff to previous 1.44 (colored) to selected 1.63.6.1 (colored)

Initialize size and/or writesize when creating a vnode.

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

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

christos ok

Revision 1.40.2.4 / (download) - annotate - [select for diffs], Sun Jul 15 13:27:28 2007 UTC (16 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.40.2.3: +18 -20 lines
Diff to previous 1.40.2.3 (colored) to branchpoint 1.40 (colored) to selected 1.63.6.1 (colored)

Sync with head.

Revision 1.43 / (download) - annotate - [select for diffs], Thu Jul 12 19:35:32 2007 UTC (16 years, 9 months ago) by dsl
Branch: MAIN
Changes since 1.42: +17 -14 lines
Diff to previous 1.42 (colored) to selected 1.63.6.1 (colored)

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

Revision 1.40.4.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:09:20 2007 UTC (16 years, 9 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.40: +3 -8 lines
Diff to previous 1.40 (colored) next main 1.41 (colored) to selected 1.63.6.1 (colored)

Sync with head.

Revision 1.42 / (download) - annotate - [select for diffs], Mon Jul 9 00:01:42 2007 UTC (16 years, 9 months ago) by pooka
Branch: MAIN
CVS Tags: mjf-ufs-trans-base
Changes since 1.41: +2 -7 lines
Diff to previous 1.41 (colored) to selected 1.63.6.1 (colored)

mntflushbuf() cargo cult comment mania cleanup.  there is no mntflushbuf().

Revision 1.41 / (download) - annotate - [select for diffs], Sat Jun 30 09:37:55 2007 UTC (16 years, 9 months ago) by pooka
Branch: MAIN
Changes since 1.40: +3 -3 lines
Diff to previous 1.40 (colored) to selected 1.63.6.1 (colored)

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

Revision 1.40.2.3 / (download) - annotate - [select for diffs], Sun Jun 17 21:31:05 2007 UTC (16 years, 10 months ago) by ad
Branch: vmlocking
Changes since 1.40.2.2: +3 -3 lines
Diff to previous 1.40.2.2 (colored) to branchpoint 1.40 (colored) to selected 1.63.6.1 (colored)

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

Revision 1.40.2.2 / (download) - annotate - [select for diffs], Sun May 13 17:36:31 2007 UTC (16 years, 11 months ago) by ad
Branch: vmlocking
Changes since 1.40.2.1: +16 -18 lines
Diff to previous 1.40.2.1 (colored) to branchpoint 1.40 (colored) to selected 1.63.6.1 (colored)

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

Revision 1.40.2.1 / (download) - annotate - [select for diffs], Tue Mar 13 17:50:37 2007 UTC (17 years, 1 month ago) by ad
Branch: vmlocking
Changes since 1.40: +4 -4 lines
Diff to previous 1.40 (colored) to selected 1.63.6.1 (colored)

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

Revision 1.39.2.1 / (download) - annotate - [select for diffs], Mon Mar 12 05:58:10 2007 UTC (17 years, 1 month ago) by rmind
Branch: yamt-idlelwp
Changes since 1.39: +3 -3 lines
Diff to previous 1.39 (colored) next main 1.40 (colored) to selected 1.63.6.1 (colored)

Sync with HEAD.

Revision 1.40 / (download) - annotate - [select for diffs], Sun Mar 4 06:02:59 2007 UTC (17 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic
Branch point for: vmlocking, reinoud-bufcleanup, mjf-ufs-trans
Changes since 1.39: +3 -3 lines
Diff to previous 1.39 (colored) to selected 1.63.6.1 (colored)

Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.24.2.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:10:55 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.24.2.2: +3 -2 lines
Diff to previous 1.24.2.2 (colored) to selected 1.63.6.1 (colored)

sync with head.

Revision 1.35.2.2 / (download) - annotate - [select for diffs], Thu Feb 1 08:48:32 2007 UTC (17 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.35.2.1: +3 -2 lines
Diff to previous 1.35.2.1 (colored) to branchpoint 1.35 (colored) next main 1.36 (colored) to selected 1.63.6.1 (colored)

Sync with head.

Revision 1.39 / (download) - annotate - [select for diffs], Fri Jan 19 14:49:09 2007 UTC (17 years, 3 months ago) by hannken
Branch: MAIN
CVS Tags: post-newlock2-merge, newlock2-nbase, newlock2-base, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp
Changes since 1.38: +3 -2 lines
Diff to previous 1.38 (colored) to selected 1.63.6.1 (colored)

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

Implemented for file systems of type ffs.

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

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

Welcome to 4.99.9 (new vfs op vfs_suspendctl).

Revision 1.24.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:49:56 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.24.2.1: +48 -39 lines
Diff to previous 1.24.2.1 (colored) to selected 1.63.6.1 (colored)

sync with head.

Revision 1.35.4.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:18:37 2006 UTC (17 years, 4 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.35.4.1: +16 -16 lines
Diff to previous 1.35.4.1 (colored) to branchpoint 1.35 (colored) next main 1.36 (colored) to selected 1.63.6.1 (colored)

sync with head.

Revision 1.35.2.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:39:17 2006 UTC (17 years, 5 months ago) by ad
Branch: newlock2
Changes since 1.35: +21 -23 lines
Diff to previous 1.35 (colored) to selected 1.63.6.1 (colored)

Sync with head.

Revision 1.38 / (download) - annotate - [select for diffs], Thu Nov 16 01:33:35 2006 UTC (17 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, 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, netbsd-4, matt-nb4-arm-base, matt-nb4-arm
Changes since 1.37: +14 -14 lines
Diff to previous 1.37 (colored) to selected 1.63.6.1 (colored)

__unused removal on arguments; approved by core.

Revision 1.37 / (download) - annotate - [select for diffs], Tue Oct 24 19:59:52 2006 UTC (17 years, 5 months ago) by drochner
Branch: MAIN
Changes since 1.36: +4 -4 lines
Diff to previous 1.36 (colored) to selected 1.63.6.1 (colored)

minor fix to error handling (from OpenBSD, rev.1.40):
only set devvp->v_specmountpoint on successful mounts

Revision 1.35.4.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:07:06 2006 UTC (17 years, 5 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.35: +19 -21 lines
Diff to previous 1.35 (colored) to selected 1.63.6.1 (colored)

sync with head

Revision 1.36 / (download) - annotate - [select for diffs], Thu Oct 12 01:32:10 2006 UTC (17 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.35: +19 -21 lines
Diff to previous 1.35 (colored) to selected 1.63.6.1 (colored)

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

Revision 1.30.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:56:56 2006 UTC (17 years, 7 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.30: +32 -20 lines
Diff to previous 1.30 (colored) next main 1.31 (colored) to selected 1.63.6.1 (colored)

sync with head

Revision 1.31.2.3 / (download) - annotate - [select for diffs], Sun Sep 3 15:25:13 2006 UTC (17 years, 7 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.31.2.2: +4 -2 lines
Diff to previous 1.31.2.2 (colored) to branchpoint 1.31 (colored) next main 1.32 (colored) to selected 1.63.6.1 (colored)

sync with head.

Revision 1.35 / (download) - annotate - [select for diffs], Mon Aug 28 00:35:22 2006 UTC (17 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.34: +4 -2 lines
Diff to previous 1.34 (colored) to selected 1.63.6.1 (colored)

add missing initializers

Revision 1.31.2.2 / (download) - annotate - [select for diffs], Fri Aug 11 15:45:33 2006 UTC (17 years, 8 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.31.2.1: +27 -18 lines
Diff to previous 1.31.2.1 (colored) to branchpoint 1.31 (colored) to selected 1.63.6.1 (colored)

sync with head

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

Use the LWP cached credentials where sane.

Revision 1.32.4.1 / (download) - annotate - [select for diffs], Thu Jul 13 17:49:50 2006 UTC (17 years, 9 months ago) by gdamore
Branch: gdamore-uart
Changes since 1.32: +24 -13 lines
Diff to previous 1.32 (colored) next main 1.33 (colored) to selected 1.63.6.1 (colored)

Merge from HEAD.

Revision 1.33 / (download) - annotate - [select for diffs], Thu Jul 13 12:00:25 2006 UTC (17 years, 9 months ago) by martin
Branch: MAIN
Changes since 1.32: +24 -13 lines
Diff to previous 1.32 (colored) to selected 1.63.6.1 (colored)

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

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

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

Revision 1.24.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:09:23 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.24: +46 -82 lines
Diff to previous 1.24 (colored) to selected 1.63.6.1 (colored)

sync with head.

Revision 1.30.6.2 / (download) - annotate - [select for diffs], Thu Jun 1 22:37:51 2006 UTC (17 years, 10 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.30.6.1: +7 -6 lines
Diff to previous 1.30.6.1 (colored) next main 1.31 (colored) to selected 1.63.6.1 (colored)

Sync with head.

Revision 1.31.6.1 / (download) - annotate - [select for diffs], Wed May 24 15:50:33 2006 UTC (17 years, 10 months ago) by tron
Branch: peter-altq
Changes since 1.31: +7 -6 lines
Diff to previous 1.31 (colored) next main 1.32 (colored) to selected 1.63.6.1 (colored)

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

Revision 1.31.2.1 / (download) - annotate - [select for diffs], Wed May 24 10:58:35 2006 UTC (17 years, 10 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.31: +7 -6 lines
Diff to previous 1.31 (colored) to selected 1.63.6.1 (colored)

sync with head.

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

integrate kauth.

Revision 1.31.4.3 / (download) - annotate - [select for diffs], Sat May 6 23:31:29 2006 UTC (17 years, 11 months ago) by christos
Branch: elad-kernelauth
Changes since 1.31.4.2: +3 -2 lines
Diff to previous 1.31.4.2 (colored) to branchpoint 1.31 (colored) next main 1.32 (colored) to selected 1.63.6.1 (colored)

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

Approved by core.

Revision 1.30.6.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:39:55 2006 UTC (17 years, 11 months ago) by simonb
Branch: simonb-timecounters
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (colored) to selected 1.63.6.1 (colored)

Sync with head.

Revision 1.31.4.2 / (download) - annotate - [select for diffs], Fri Mar 10 14:23:39 2006 UTC (18 years, 1 month ago) by elad
Branch: elad-kernelauth
Changes since 1.31.4.1: +3 -3 lines
Diff to previous 1.31.4.1 (colored) to branchpoint 1.31 (colored) to selected 1.63.6.1 (colored)

generic_authorize() -> kauth_authorize_generic().

Revision 1.31.4.1 / (download) - annotate - [select for diffs], Wed Mar 8 01:31:33 2006 UTC (18 years, 1 month ago) by elad
Branch: elad-kernelauth
Changes since 1.31: +6 -6 lines
Diff to previous 1.31 (colored) to selected 1.63.6.1 (colored)

Adapt to kernel authorization KPI.

Revision 1.30.2.1 / (download) - annotate - [select for diffs], Wed Mar 1 09:28:41 2006 UTC (18 years, 1 month ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (colored) next main 1.31 (colored) to selected 1.63.6.1 (colored)

sync with head.

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

Use device_class() instead of accessing dv_class directly.

Revision 1.30 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:25 2005 UTC (18 years, 4 months ago) by christos
Branch: MAIN
Branch point for: yamt-uio_vmspace, simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.29: +32 -30 lines
Diff to previous 1.29 (colored) to selected 1.63.6.1 (colored)

merge ktrace-lwp.

Revision 1.8.2.11 / (download) - annotate - [select for diffs], Thu Nov 10 14:09:27 2005 UTC (18 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.8.2.10: +15 -54 lines
Diff to previous 1.8.2.10 (colored) next main 1.9 (colored) to selected 1.63.6.1 (colored)

Sync with HEAD. Here we go again...

Revision 1.29 / (download) - annotate - [select for diffs], Wed Nov 2 12:38:58 2005 UTC (18 years, 5 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, ktrace-lwp-base
Changes since 1.28: +5 -5 lines
Diff to previous 1.28 (colored) to selected 1.63.6.1 (colored)

merge yamt-vop branch.  remove following VOPs.

	VOP_BLKATOFF
	VOP_VALLOC
	VOP_BALLOC
	VOP_REALLOCBLKS
	VOP_VFREE
	VOP_TRUNCATE
	VOP_UPDATE

Revision 1.28.2.1 / (download) - annotate - [select for diffs], Thu Oct 20 05:16:52 2005 UTC (18 years, 6 months ago) by yamt
Branch: yamt-vop
Changes since 1.28: +5 -5 lines
Diff to previous 1.28 (colored) next main 1.29 (colored) to selected 1.63.6.1 (colored)

adapt cd9660.

Revision 1.28 / (download) - annotate - [select for diffs], Fri Sep 30 08:15:46 2005 UTC (18 years, 6 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, thorpej-vnode-attr-base, thorpej-vnode-attr
Branch point for: yamt-vop
Changes since 1.27: +3 -5 lines
Diff to previous 1.27 (colored) to selected 1.63.6.1 (colored)

In cd9660_mount, initialize imp to VFSTOISOFS(mp) instead of NULL.
Remove redundant assignments to imp.  This fixes the page fault
panic when the kernel mounts an ISO9660 filesystem, introduced at
revision 1.27.

Revision 1.27 / (download) - annotate - [select for diffs], Fri Sep 23 12:10:32 2005 UTC (18 years, 6 months ago) by jmmv
Branch: MAIN
Changes since 1.26: +5 -42 lines
Diff to previous 1.26 (colored) to selected 1.63.6.1 (colored)

Apply the NFS exports list rototill patch:

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

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

Revision 1.26 / (download) - annotate - [select for diffs], Tue Aug 30 18:47:19 2005 UTC (18 years, 7 months ago) by xtraeme
Branch: MAIN
Changes since 1.25: +5 -5 lines
Diff to previous 1.25 (colored) to selected 1.63.6.1 (colored)

Remove __P()

Revision 1.22.2.1 / (download) - annotate - [select for diffs], Wed Aug 24 18:43:38 2005 UTC (18 years, 7 months ago) by riz
Branch: netbsd-3
CVS Tags: netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0
Changes since 1.22: +4 -4 lines
Diff to previous 1.22 (colored) next main 1.23 (colored) to selected 1.63.6.1 (colored)

Pull up following revision(s) (requested by yamt in ticket #688):
	sys/miscfs/genfs/genfs_vnops.c: revision 1.98 via patch
	sys/ufs/ffs/ffs_vfsops.c: revision 1.165
	sys/ufs/lfs/lfs_extern.h: revision 1.69
	sys/fs/filecorefs/filecore_vfsops.c: revision 1.20
	sys/nfs/nfs_node.c: revision 1.80
	sys/fs/smbfs/smbfs_node.c: revision 1.24
	sys/fs/cd9660/cd9660_vfsops.c: revision 1.24
	sys/fs/msdosfs/msdosfs_denode.c: revision 1.8
	sys/miscfs/genfs/genfs_node.h: revision 1.6
	sys/ufs/lfs/lfs_vfsops.c: revision 1.183
	sys/ufs/ext2fs/ext2fs_vfsops.c: revision 1.86
	sys/fs/adosfs/advfsops.c: revision 1.23
	sys/fs/ntfs/ntfs_vfsops.c: revision 1.31
- constify genfs_ops.
- use member designators.

        sys/miscfs/genfs/genfs_vnops.c: revision 1.99 via patch
genfs_getpages: don't forget to put the vnode onto the syncer's work que
ue
even in the case of PGO_LOCKED.

        sys/uvm/uvm_bio.c: revision 1.40
        sys/uvm/uvm_pager.h: revision 1.29
        sys/miscfs/genfs/genfs_vnops.c: revision 1.100 via patch
        sys/ufs/ufs/ufs_inode.c: revision 1.50
- introduce PGO_NOBLOCKALLOC and use it for ubc mapping
  to prevent unnecessary block allocations in the case that
  page size > block size.
- ufs_balloc_range: use VM_PROT_WRITE+PGO_NOBLOCKALLOC rather than
  VM_PROT_READ.

        sys/uvm/uvm_fault.c: revision 1.96
        sys/miscfs/genfs/genfs_vnops.c: revision 1.101 via patch
        sys/uvm/uvm_object.h: revision 1.19
        sys/miscfs/genfs/genfs_node.h: revision 1.7
ensure that vnodes with dirty pages are always on syncer's queue.
- genfs_putpages: wait for i/o completion of PG_RELEASED/PG_PAGEOUT pages by
  setting "wasclean" false when encountering them.
  suggested by Stephan Uphoff in PR/24596 (1).
- genfs_putpages: write protect pages when cleaning out, if
  we're going to take the vnode off the syncer's queue.
  uvm_fault: don't write-map pages unless its vnode is already on
  the syncer's queue.
  fix PR/24596 (3) but in the different way from the suggested fix.
  (to keep our current behaviour, ie. not to require explicit msync.
  discussed on tech-kern@.)
- genfs_putpages: don't mistakenly take a vnode off the queue
  by introducing a generation number in genfs_node.
  genfs_getpages: increment the generation number.
  suggested by Stephan Uphoff in PR/24596 (2).
- add some assertions.

        sys/miscfs/genfs/genfs_vnops.c: revision 1.102 via patch
genfs_putpages: don't bother to clean the vnode unless VONWORKLST.

        sys/ufs/ffs/ffs_vnops.c: revision 1.71
ffs_full_fsync: because VBLK/VCHR can be mmap'ed,
do VOP_PUTPAGES for them as well.

        sys/uvm/uvm_fault.c: revision 1.97
uvm_fault: check a correct object in the case of layered filesystems.
fix PR/30811 from Jukka Salmi.

        sys/uvm/uvm_object.h: revision 1.20
        sys/ufs/ffs/ffs_vfsops.c: revision 1.167
        sys/uvm/uvm_bio.c: revision 1.41
        sys/ufs/ufs/ufs_vnops.c: revision 1.129
        sys/uvm/uvm_mmap.c: revision 1.92
        sys/uvm/uvm_fault.c: revision 1.98
        sys/kern/vfs_subr.c: revision 1.252
        sys/fs/msdosfs/denode.h: revision 1.5
        sys/miscfs/genfs/genfs_vnops.c: revision 1.103 via patch
        sys/fs/msdosfs/msdosfs_denode.c: revision 1.9
        sys/sys/vnode.h: revision 1.141
        sys/ufs/ufs/ufs_inode.c: revision 1.51
        sys/ufs/ufs/ufs_extern.h: revision 1.45 via patch
        sys/miscfs/genfs/genfs_node.h: revision 1.8
        sys/ufs/lfs/lfs_vfsops.c: revision 1.184
        sys/uvm/uvm_pager.h: revision 1.30
        sys/ufs/ext2fs/ext2fs_vfsops.c: revision 1.87
update file timestamps for nfsd loaned-read and mmap.
PR/25279.  discussed on tech-kern@.

        sys/miscfs/genfs/genfs_vnops.c: revision 1.104 via patch
don't write-protect wired pages.  pointed by Chuck Silvers.
for now, leave a vnode on the syncer's queue, as suggested by him.

        sys/ufs/ffs/ffs_vnops.c: revision 1.72
revert VCHR part of ffs_vnops.c 1.71.
as VCHR uses the device pager, no point to call VOP_PUTPAGES here.
pointed by Chuck Silvers.

Revision 1.25 / (download) - annotate - [select for diffs], Fri Aug 5 13:24:18 2005 UTC (18 years, 8 months ago) by jmmv
Branch: MAIN
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored) to selected 1.63.6.1 (colored)

Fix comment regarding sbp->f_favail (which was a duplicate due to a pasto).

Revision 1.24 / (download) - annotate - [select for diffs], Tue Jun 28 09:30:37 2005 UTC (18 years, 9 months ago) by yamt
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.23: +4 -4 lines
Diff to previous 1.23 (colored) to selected 1.63.6.1 (colored)

- constify genfs_ops.
- use member designators.

Revision 1.21.2.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:22 2005 UTC (18 years, 11 months ago) by kent
Branch: kent-audio2
Changes since 1.21: +40 -39 lines
Diff to previous 1.21 (colored) next main 1.22 (colored) to selected 1.63.6.1 (colored)

sync with -current

Revision 1.8.2.10 / (download) - annotate - [select for diffs], Fri Apr 1 14:30:56 2005 UTC (19 years ago) by skrll
Branch: ktrace-lwp
Changes since 1.8.2.9: +3 -2 lines
Diff to previous 1.8.2.9 (colored) to selected 1.63.6.1 (colored)

Sync with HEAD.

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

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

Revision 1.21.4.1 / (download) - annotate - [select for diffs], Sat Mar 19 08:36:06 2005 UTC (19 years, 1 month ago) by yamt
Branch: yamt-km
Changes since 1.21: +39 -39 lines
Diff to previous 1.21 (colored) next main 1.22 (colored) to selected 1.63.6.1 (colored)

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

Revision 1.8.2.9 / (download) - annotate - [select for diffs], Fri Mar 4 16:51:29 2005 UTC (19 years, 1 month ago) by skrll
Branch: ktrace-lwp
Changes since 1.8.2.8: +38 -38 lines
Diff to previous 1.8.2.8 (colored) to selected 1.63.6.1 (colored)

Sync with HEAD.

Hi Perry!

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

nuke trailing whitespace

Revision 1.8.2.8 / (download) - annotate - [select for diffs], Mon Jan 17 19:32:12 2005 UTC (19 years, 3 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.8.2.7: +34 -39 lines
Diff to previous 1.8.2.7 (colored) to selected 1.63.6.1 (colored)

Sync with HEAD.

Revision 1.21 / (download) - annotate - [select for diffs], Sun Jan 9 03:11:48 2005 UTC (19 years, 3 months ago) by mycroft
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge
Branch point for: yamt-km, kent-audio2
Changes since 1.20: +33 -39 lines
Diff to previous 1.20 (colored) to selected 1.63.6.1 (colored)

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

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

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

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

From FreeBSD.

Revision 1.8.2.7 / (download) - annotate - [select for diffs], Mon Nov 29 07:24:50 2004 UTC (19 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.8.2.6: +10 -7 lines
Diff to previous 1.8.2.6 (colored) to selected 1.63.6.1 (colored)

Sync with HEAD.

Revision 1.19 / (download) - annotate - [select for diffs], Sun Nov 21 21:49:08 2004 UTC (19 years, 4 months ago) by jdolecek
Branch: MAIN
CVS Tags: kent-audio1-base, kent-audio1
Changes since 1.18: +10 -7 lines
Diff to previous 1.18 (colored) to selected 1.63.6.1 (colored)

when Joliet extension is in use, encode the Joliet Unicode file names
into UTF-8, rather than filtering them to ISO-8859-1 subset

provide vfs.cd9660.utf8_joliet sysctl to switch to the former
iso-8859-1-only handling, default is to UTF-8 encode

Revision 1.8.2.6 / (download) - annotate - [select for diffs], Tue Sep 21 13:34:43 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.8.2.5: +33 -31 lines
Diff to previous 1.8.2.5 (colored) to selected 1.63.6.1 (colored)

Fix the sync with head I botched.

Revision 1.8.2.5 / (download) - annotate - [select for diffs], Sat Sep 18 14:52:37 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.8.2.4: +33 -33 lines
Diff to previous 1.8.2.4 (colored) to selected 1.63.6.1 (colored)

Sync with HEAD.

Revision 1.18 / (download) - annotate - [select for diffs], Mon Sep 13 19:25:48 2004 UTC (19 years, 7 months ago) by jdolecek
Branch: MAIN
Changes since 1.17: +4 -2 lines
Diff to previous 1.17 (colored) to selected 1.63.6.1 (colored)

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

Revision 1.8.2.4 / (download) - annotate - [select for diffs], Wed Aug 25 06:58:58 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.8.2.3: +2 -3 lines
Diff to previous 1.8.2.3 (colored) to selected 1.63.6.1 (colored)

Sync with HEAD.

Revision 1.8.2.3 / (download) - annotate - [select for diffs], Tue Aug 24 17:57:36 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.8.2.2: +10 -14 lines
Diff to previous 1.8.2.2 (colored) to selected 1.63.6.1 (colored)

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

Revision 1.17 / (download) - annotate - [select for diffs], Sun Aug 15 07:19:54 2004 UTC (19 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.16: +2 -3 lines
Diff to previous 1.16 (colored) to selected 1.63.6.1 (colored)

Fixing age old cruft:
* Rather than using mnt_maxsymlinklen to indicate that a file systems returns
  d_type fields(!), add a new internal flag, IMNT_DTYPE.

Add 3 new elements to ufsmount:
* um_maxsymlinklen, replaces mnt_maxsymlinklen (which never should have existed
  in the first place).
* um_dirblksiz, which tracks the current directory block size, eliminating the
  FS-specific checks littered throughout the code.  This may be used later to
  make the block size variable.
* um_maxfilesize, which is the maximum file size, possibly adjusted lower due
  to implementation issues.

Sync some bug fixes from FFS into ext2fs, particularly:
* ffs_lookup.c 1.21, 1.28, 1.33, 1.48
* ffs_inode.c 1.43, 1.44, 1.45, 1.66, 1.67
* ffs_vnops.c 1.84, 1.85, 1.86

Clean up some crappy pointer frobnication.

Revision 1.8.2.2 / (download) - annotate - [select for diffs], Tue Aug 3 10:52:23 2004 UTC (19 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.8.2.1: +36 -33 lines
Diff to previous 1.8.2.1 (colored) to selected 1.63.6.1 (colored)

Sync with HEAD

Revision 1.16 / (download) - annotate - [select for diffs], Mon Jul 5 07:28:45 2004 UTC (19 years, 9 months ago) by pk
Branch: MAIN
Changes since 1.15: +2 -3 lines
Diff to previous 1.15 (colored) to selected 1.63.6.1 (colored)

Call inittodr() from main(). Let file system code set the recorded `last
update' time (if any) through the new function setrootfstime().

Revision 1.11.2.1 / (download) - annotate - [select for diffs], Sat May 29 09:05:27 2004 UTC (19 years, 10 months ago) by tron
Branch: netbsd-2-0
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2
Changes since 1.11: +4 -3 lines
Diff to previous 1.11 (colored) next main 1.12 (colored) to selected 1.63.6.1 (colored)

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

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

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

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

Welcome to 2.0F.

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

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

Sysctl descriptions under vfs subtree

Revision 1.13 / (download) - annotate - [select for diffs], Tue Apr 27 17:37:30 2004 UTC (19 years, 11 months ago) by jrf
Branch: MAIN
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored) to selected 1.63.6.1 (colored)

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

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

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

Revision 1.12 / (download) - annotate - [select for diffs], Wed Apr 21 01:05:37 2004 UTC (20 years ago) by christos
Branch: MAIN
Changes since 1.11: +15 -15 lines
Diff to previous 1.11 (colored) to selected 1.63.6.1 (colored)

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

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

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

Revision 1.10 / (download) - annotate - [select for diffs], Thu Dec 4 19:38:23 2003 UTC (20 years, 4 months ago) by atatat
Branch: MAIN
Changes since 1.9: +19 -13 lines
Diff to previous 1.9 (colored) to selected 1.63.6.1 (colored)

Dynamic sysctl.

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

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

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

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

Revision 1.9 / (download) - annotate - [select for diffs], Thu Aug 7 16:31:35 2003 UTC (20 years, 8 months ago) by agc
Branch: MAIN
Changes since 1.8: +3 -7 lines
Diff to previous 1.8 (colored) to selected 1.63.6.1 (colored)

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

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

Revision 1.8.2.1 / (download) - annotate - [select for diffs], Wed Jul 2 15:26:28 2003 UTC (20 years, 9 months ago) by darrenr
Branch: ktrace-lwp
Changes since 1.8: +47 -41 lines
Diff to previous 1.8 (colored) to selected 1.63.6.1 (colored)

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

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

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

Revision 1.7 / (download) - annotate - [select for diffs], Sun Jun 29 18:43:23 2003 UTC (20 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.6: +10 -14 lines
Diff to previous 1.6 (colored) to selected 1.63.6.1 (colored)

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

Revision 1.6 / (download) - annotate - [select for diffs], Sat Jun 28 14:21:49 2003 UTC (20 years, 9 months ago) by darrenr
Branch: MAIN
Changes since 1.5: +47 -41 lines
Diff to previous 1.5 (colored) to selected 1.63.6.1 (colored)

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

Bump the kernel rev up to 1.6V

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

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

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

Revision 1.4 / (download) - annotate - [select for diffs], Thu Apr 3 15:37:55 2003 UTC (21 years ago) by christos
Branch: MAIN
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored) to selected 1.63.6.1 (colored)

Avoid stupid printfs during mountroot attempt.

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

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

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

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

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

With with HEAD.

Revision 1.1.2.1, Mon Dec 23 17:52:09 2002 UTC (21 years, 3 months ago) by thorpej
Branch: nathanw_sa
Changes since 1.1: +0 -1009 lines
FILE REMOVED

file cd9660_vfsops.c was added on branch nathanw_sa on 2002-12-29 19:55:40 +0000

Revision 1.1 / (download) - annotate - [select for diffs], Mon Dec 23 17:52:09 2002 UTC (21 years, 3 months ago) by jdolecek
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, fvdl_fs64_base
Branch point for: nathanw_sa
Diff to selected 1.63.6.1 (colored)

move cd9660 filesystem code from sys/isofs/cd9660 to sys/fs/cd9660

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




CVSweb <webmaster@jp.NetBSD.org>