The NetBSD Project

CVS log for src/sys/fs/tmpfs/tmpfs_vfsops.c

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.78: download - view: text, markup, annotated - select for diffs
Thu Nov 10 10:54:14 2022 UTC (2 years ago) by hannken
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, 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, HEAD
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +17 -14 lines
Tmpfs_mount() uses tmpfs_unmount() for cleanup if set_statvfs_info() fails.
This will not work as tmpfs_unmount() needs a suspended file system.

Just call set_statvfs_info() before allocating the root vnode and add
and use a common error exit label.

Reported-by: syzbot+343f2bfea65a32ab4222@syzkaller.appspotmail.com

Revision 1.72.10.3: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:05:03 2020 UTC (4 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.72.10.2: preferred, colored; branchpoint 1.72: preferred, colored; next MAIN 1.73: preferred, colored
Changes since revision 1.72.10.2: +0 -4 lines
Mostly merge changes from HEAD upto 20200411

Revision 1.72.10.2: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:08:50 2020 UTC (4 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.72.10.1: preferred, colored; branchpoint 1.72: preferred, colored
Changes since revision 1.72.10.1: +10 -8 lines
Merge changes from current as of 20200406

Revision 1.77: download - view: text, markup, annotated - select for diffs
Sat Apr 4 20:49:30 2020 UTC (4 years, 8 months ago) by ad
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +4 -3 lines
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.74.4.1: download - view: text, markup, annotated - select for diffs
Tue Mar 3 18:48:40 2020 UTC (4 years, 9 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE
Diff to: previous 1.74: preferred, colored; next MAIN 1.75: preferred, colored
Changes since revision 1.74: +2 -6 lines
Pull up following revision(s) (requested by rin in ticket #753):

	sys/fs/tmpfs/tmpfs_vfsops.c: revision 1.75

remove an always false check and its' "This can never happen?" comment.

Revision 1.75.2.3: download - view: text, markup, annotated - select for diffs
Fri Jan 24 16:48:58 2020 UTC (4 years, 10 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.75.2.2: preferred, colored; branchpoint 1.75: preferred, colored; next MAIN 1.76: preferred, colored
Changes since revision 1.75.2.2: +4 -3 lines
- Put all the namecache stuff back into vnode_impl_t.
- Tidy vfs_cache.c up, finish the comments.
- Finalise how ID information is entered to the cache.
- Handle very small/old systems.

Revision 1.75.2.2: download - view: text, markup, annotated - select for diffs
Sun Jan 19 21:21:54 2020 UTC (4 years, 10 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.75.2.1: preferred, colored; branchpoint 1.75: preferred, colored
Changes since revision 1.75.2.1: +3 -3 lines
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.75.2.1: download - view: text, markup, annotated - select for diffs
Fri Jan 17 21:47:34 2020 UTC (4 years, 10 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +8 -7 lines
Sync with head.

Revision 1.76: download - view: text, markup, annotated - select for diffs
Fri Jan 17 20:08:08 2020 UTC (4 years, 10 months ago) by ad
Branches: MAIN
CVS tags: is-mlppp-base, is-mlppp, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +8 -7 lines
VFS_VGET(), VFS_ROOT(), VFS_FHTOVP(): give them a "int lktype" argument, to
allow us to get shared locks (or no lock) on the returned vnode.  Matches
FreeBSD.

Revision 1.75: download - view: text, markup, annotated - select for diffs
Fri Oct 4 12:34:40 2019 UTC (5 years, 2 months ago) by mrg
Branches: MAIN
CVS tags: phil-wifi-20191119, ad-namecache-base
Branch point for: ad-namecache
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +2 -6 lines
remove an always false check and its' "This can never happen?" comment.

Revision 1.72.10.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:09:01 2019 UTC (5 years, 5 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +10 -10 lines
Sync with HEAD

Revision 1.72.8.2: download - view: text, markup, annotated - select for diffs
Fri Jan 18 08:50:57 2019 UTC (5 years, 10 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.72.8.1: preferred, colored; branchpoint 1.72: preferred, colored; next MAIN 1.73: preferred, colored
Changes since revision 1.72.8.1: +3 -3 lines
Synch with HEAD

Revision 1.74: download - view: text, markup, annotated - select for diffs
Tue Jan 1 10:06:54 2019 UTC (5 years, 11 months ago) by hannken
Branches: MAIN
CVS tags: phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, netbsd-9-base, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, isaki-audio2-base, isaki-audio2
Branch point for: netbsd-9
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +3 -3 lines
Add "void *extra" argument to vcache_new() so a file system may
pass more information about the file to create.

Welcome to 8.99.30

Revision 1.72.8.1: download - view: text, markup, annotated - select for diffs
Thu Sep 6 06:56:41 2018 UTC (6 years, 3 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +9 -9 lines
Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

Revision 1.72.2.1: download - view: text, markup, annotated - select for diffs
Thu Aug 9 13:24:41 2018 UTC (6 years, 3 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1
Diff to: previous 1.72: preferred, colored; next MAIN 1.73: preferred, colored
Changes since revision 1.72: +9 -9 lines
Pull up following revision(s) (requested by christos in ticket #968):

	sys/fs/tmpfs/tmpfs_vfsops.c: revision 1.73

Fix tmpfs performance regression from rmind@:
Just from a very quick look, it seems like a regression introduced with
the vcache changes: the MP-safe flag is set too late and not inherited
by the root vnode.

Revision 1.73: download - view: text, markup, annotated - select for diffs
Thu Aug 9 08:43:56 2018 UTC (6 years, 3 months ago) by christos
Branches: MAIN
CVS tags: pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +9 -9 lines
FIx performance regression from rmind@:

Just from a very quick look, it seems like a regression introduced with
the vcache changes: the MP-safe flag is set too late and not inherited
by the root vnode.

Revision 1.52.12.2: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:38:43 2017 UTC (7 years ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.52.12.1: preferred, colored; branchpoint 1.52: preferred, colored; next MAIN 1.53: preferred, colored
Changes since revision 1.52.12.1: +89 -46 lines
update from HEAD

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

Revision 1.72: download - view: text, markup, annotated - select for diffs
Thu Jun 1 02:45:13 2017 UTC (7 years, 6 months ago) by chs
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, phil-wifi-base, pgoyette-compat-base, 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, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek
Branch point for: phil-wifi, pgoyette-compat, netbsd-8
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +2 -5 lines
remove checks for failure after memory allocation calls that cannot fail:

  kmem_alloc() with KM_SLEEP
  kmem_zalloc() with KM_SLEEP
  percpu_alloc()
  pserialize_create()
  psref_class_create()

all of these paths include an assertion that the allocation has not failed,
so callers should not assert that again.

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

Revision 1.67.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 20 06:57:47 2017 UTC (7 years, 8 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.67: preferred, colored; next MAIN 1.68: preferred, colored
Changes since revision 1.67: +13 -4 lines
Sync with HEAD

Revision 1.71: download - view: text, markup, annotated - select for diffs
Wed Mar 1 10:44:47 2017 UTC (7 years, 9 months ago) by hannken
Branches: MAIN
CVS tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +3 -10 lines
Change the protocol to update a mounted file system from read-write
to read-only and vice versa:

- Add an internal flag IMNT_WANTRDONLY.
- Set either IMNT_WANTRDWR or IMNT_WANTRDONLY if going from or to read-only.
- After successfull call to VFS_MOUNT() set or clear MNT_RDONLY.

Adapt tmpfs and rumpfs to the new protocol.  Other file systems will be
updated when they get the IMNT_CAN_RWTORO property.

Welcome to 7.99.64

Revision 1.70: download - view: text, markup, annotated - select for diffs
Fri Feb 17 08:31:25 2017 UTC (7 years, 9 months ago) by hannken
Branches: MAIN
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +3 -3 lines
Add generic genfs_suspendctl() and use it for all file systems.
Layered file systems need work.

Revision 1.63.4.4: download - view: text, markup, annotated - select for diffs
Sun Feb 5 13:40:55 2017 UTC (7 years, 10 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.63.4.3: preferred, colored; branchpoint 1.63: preferred, colored
Changes since revision 1.63.4.3: +19 -3 lines
Sync with HEAD

Revision 1.69: download - view: text, markup, annotated - select for diffs
Fri Jan 27 10:47:54 2017 UTC (7 years, 10 months ago) by hannken
Branches: MAIN
CVS tags: nick-nhusb-base-20170204
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +19 -3 lines
Run vflush() when going from read/write to read only.

Revision 1.63.4.3: download - view: text, markup, annotated - select for diffs
Wed Oct 5 20:56:02 2016 UTC (8 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.63.4.2: preferred, colored; branchpoint 1.63: preferred, colored
Changes since revision 1.63.4.2: +11 -3 lines
Sync with HEAD

Revision 1.68: download - view: text, markup, annotated - select for diffs
Fri Aug 26 21:44:24 2016 UTC (8 years, 3 months ago) by dholland
Branches: MAIN
CVS tags: pgoyette-localcount-20170107, pgoyette-localcount-20161104, nick-nhusb-base-20161204, nick-nhusb-base-20161004, localcount-20160914, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +11 -3 lines
In the event that loading the root vnode fails, bail out of
tmpfs_mount instead of crashing.

Came up in PR 51436, where kmem issues caused internal allocations to
wrongly fail. However, that could happen for real sometime (e.g.
probably if you tried to mount a new tmpfs when the system was very
low on memory, or possibly for other reasons entirely) and crashing
isn't the ticket.

(This is not a fix for PR 51436)

Revision 1.63.2.1: download - view: text, markup, annotated - select for diffs
Mon May 9 19:45:00 2016 UTC (8 years, 6 months ago) by snj
Branches: netbsd-7
CVS tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, 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
Diff to: previous 1.63: preferred, colored; next MAIN 1.64: preferred, colored
Changes since revision 1.63: +16 -7 lines
Pull up following revision(s) (requested by joerg in ticket #1163):
	sys/fs/tmpfs/tmpfs_vfsops.c: revision 1.66, 1.67
	sys/fs/tmpfs/tmpfs_vnops.c: revision 1.124
Only recheck size/node limits on update mounts, if there actually have
been specified.
--
Implement most of mount -ur functionality for tmpfs. Remaining issue is
the question who is responsible for syncing pending writes, but the
functionality is good enough for serving as read-only chroot base in
bulk builds.

Revision 1.63.4.2: download - view: text, markup, annotated - select for diffs
Sat Mar 19 11:30:31 2016 UTC (8 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.63.4.1: preferred, colored; branchpoint 1.63: preferred, colored
Changes since revision 1.63.4.1: +16 -7 lines
Sync with HEAD

Revision 1.67: download - view: text, markup, annotated - select for diffs
Sat Mar 12 08:51:13 2016 UTC (8 years, 8 months ago) by joerg
Branches: MAIN
CVS tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319
Branch point for: pgoyette-localcount
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +3 -3 lines
Implement most of mount -ur functionality for tmpfs. Remaining issue is
the question who is responsible for syncing pending writes, but the
functionality is good enough for serving as read-only chroot base in
bulk builds.

Revision 1.66: download - view: text, markup, annotated - select for diffs
Sat Mar 12 08:45:23 2016 UTC (8 years, 8 months ago) by joerg
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +15 -6 lines
Only recheck size/node limits on update mounts, if there actually have
been specified.

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

Revision 1.65: download - view: text, markup, annotated - select for diffs
Mon Jul 6 10:07:12 2015 UTC (9 years, 5 months ago) by hannken
Branches: MAIN
CVS tags: nick-nhusb-base-20151226, nick-nhusb-base-20150921
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +45 -12 lines
Change tmpfs to vcache.
- Use tmpfs node address as key.
- Remove tn_vlock, field tn_vnode now protected by vcache.
- Add a hold count to tmpfs node to prevent nodes from disappearing
  while tmpfs_fhtovp() trys to vcache_get() them.  Last holder
  destroys reclaimed nodes.
- Remove the now unneeded parent unlock/lock for lookup of '..'.

Revision 1.64: download - view: text, markup, annotated - select for diffs
Mon Jul 6 10:05:50 2015 UTC (9 years, 5 months ago) by hannken
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +14 -27 lines
Use VFS_PROTOS() for tmpfs.

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

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

Revision 1.63: download - view: text, markup, annotated - select for diffs
Tue Jun 10 16:10:59 2014 UTC (10 years, 5 months ago) by martin
Branches: MAIN
CVS tags: tls-maxphys-base, tls-earlyentropy-base, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-base, 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
Branch point for: nick-nhusb, netbsd-7
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +10 -2 lines
Check for invalid mount arguments early and gracefully fail the mount.
Spotted by pooka@

Revision 1.62: download - view: text, markup, annotated - select for diffs
Sat Jun 7 09:54:34 2014 UTC (10 years, 6 months ago) by martin
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +3 -3 lines
Remove the hardcoded 4 MB free kernel memory limit and replace it
by uvmexp.freetarg, as discussed on tech-kern.
Main purpose is to make tmpfs usable (as far as possible) on small memory
machines.
This is a bit experimental, but we need to give it some real world exposure
to see how well it works.

Revision 1.52.2.1: download - view: text, markup, annotated - select for diffs
Thu May 22 11:41:02 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.52: preferred, colored; next MAIN 1.53: preferred, colored
Changes since revision 1.52: +83 -58 lines
sync with head.

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

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

Revision 1.52.16.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:46:06 2014 UTC (10 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.52: preferred, colored; next MAIN 1.53: preferred, colored
Changes since revision 1.52: +83 -58 lines
sync with head

Revision 1.61: download - view: text, markup, annotated - select for diffs
Wed Apr 30 01:59:30 2014 UTC (10 years, 7 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +3 -3 lines
fix typo

Revision 1.60: download - view: text, markup, annotated - select for diffs
Wed Apr 30 01:33:51 2014 UTC (10 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +16 -6 lines
handle MNT_UPDATE

Revision 1.44.22.1: download - view: text, markup, annotated - select for diffs
Mon Apr 28 16:05:36 2014 UTC (10 years, 7 months ago) by sborrill
Branches: netbsd-5-2
CVS tags: netbsd-5-2-3-RELEASE
Diff to: previous 1.44: preferred, colored; next MAIN 1.45: preferred, colored
Changes since revision 1.44: +4 -2 lines
Pull up the following revisions(s) (requested by maxv in ticket #1901):
	sys/kern/vfs_syscalls.c:	revision 1.478, 1.480 via patch
	sys/coda/coda_vfsops.c:		revision 1.81
	sys/fs/adosfs/advfsops.c:	revision 1.70
	sys/fs/cd9660/cd9660_vfsops.c:	revision 1.84
	sys/fs/efs/efs_vfsops.c:	revision 1.25
	sys/fs/filecorefs/filecore_vfsops.c:	revision 1.76
	sys/fs/hfs/hfs_vfsops.c:	revision 1.31
	sys/fs/msdosfs/msdosfs_vfsops.c:	revision 1.107
	sys/fs/ntfs/ntfs_vfsops.c:	revision 1.94
	sys/fs/ptyfs/ptyfs_vfsops.c:	revision 1.50 via patch
	sys/fs/puffs/puffs_vfsops.c:	revision 1.110 via patch
	sys/fs/smbfs/smbfs_vfsops.c:	revision 1.100
	sys/fs/sysvbfs/sysvbfs_vfsops.c:	revision 1.43
	sys/fs/tmpfs/tmpfs_vfsops.c:	revision 1.59 via patch
	sys/fs/udf/udf_vfsops.c:	revision 1.67
	sys/fs/union/union_vfsops.c:	revision 1.72
	sys/fs/unionfs/unionfs_vfsops.c:	revision 1.13
	sys/kern/vfs_syscalls.c:	revision 1.479
	sys/miscfs/nullfs/null_vfsops.c:	revision 1.88 via patch
	sys/miscfs/overlay/overlay_vfsops.c:	revision 1.61
	sys/miscfs/procfs/procfs_vfsops.c:	revision 1.91
	sys/miscfs/umapfs/umap_vfsops.c:	revision 1.92
	sys/nfs/nfs_vfsops.c:		revision 1.227
	sys/ufs/ext2fs/ext2fs_vfsops.c:	revision 1.180
	sys/ufs/ffs/ffs_vfsops.c:	revision 1.297
	sys/ufs/lfs/lfs_vfsops.c:	revision 1.321
	sys/ufs/mfs/mfs_vfsops.c:	revision 1.107

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

Revision 1.44.18.1: download - view: text, markup, annotated - select for diffs
Mon Apr 28 16:03:15 2014 UTC (10 years, 7 months ago) by sborrill
Branches: netbsd-5-1
CVS tags: netbsd-5-1-5-RELEASE
Diff to: previous 1.44: preferred, colored; next MAIN 1.45: preferred, colored
Changes since revision 1.44: +4 -2 lines
Pull up the following revisions(s) (requested by maxv in ticket #1901):
	sys/kern/vfs_syscalls.c:	revision 1.478, 1.480 via patch
	sys/coda/coda_vfsops.c:		revision 1.81
	sys/fs/adosfs/advfsops.c:	revision 1.70
	sys/fs/cd9660/cd9660_vfsops.c:	revision 1.84
	sys/fs/efs/efs_vfsops.c:	revision 1.25
	sys/fs/filecorefs/filecore_vfsops.c:	revision 1.76
	sys/fs/hfs/hfs_vfsops.c:	revision 1.31
	sys/fs/msdosfs/msdosfs_vfsops.c:	revision 1.107
	sys/fs/ntfs/ntfs_vfsops.c:	revision 1.94
	sys/fs/ptyfs/ptyfs_vfsops.c:	revision 1.50 via patch
	sys/fs/puffs/puffs_vfsops.c:	revision 1.110 via patch
	sys/fs/smbfs/smbfs_vfsops.c:	revision 1.100
	sys/fs/sysvbfs/sysvbfs_vfsops.c:	revision 1.43
	sys/fs/tmpfs/tmpfs_vfsops.c:	revision 1.59 via patch
	sys/fs/udf/udf_vfsops.c:	revision 1.67
	sys/fs/union/union_vfsops.c:	revision 1.72
	sys/fs/unionfs/unionfs_vfsops.c:	revision 1.13
	sys/kern/vfs_syscalls.c:	revision 1.479
	sys/miscfs/nullfs/null_vfsops.c:	revision 1.88 via patch
	sys/miscfs/overlay/overlay_vfsops.c:	revision 1.61
	sys/miscfs/procfs/procfs_vfsops.c:	revision 1.91
	sys/miscfs/umapfs/umap_vfsops.c:	revision 1.92
	sys/nfs/nfs_vfsops.c:		revision 1.227
	sys/ufs/ext2fs/ext2fs_vfsops.c:	revision 1.180
	sys/ufs/ffs/ffs_vfsops.c:	revision 1.297
	sys/ufs/lfs/lfs_vfsops.c:	revision 1.321
	sys/ufs/mfs/mfs_vfsops.c:	revision 1.107

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

Revision 1.44.4.1: download - view: text, markup, annotated - select for diffs
Fri Apr 25 15:43:50 2014 UTC (10 years, 7 months ago) by sborrill
Branches: netbsd-5
Diff to: previous 1.44: preferred, colored; next MAIN 1.45: preferred, colored
Changes since revision 1.44: +4 -2 lines
Pull up the following revisions(s) (requested by maxv in ticket #1901):
	sys/kern/vfs_syscalls.c:	revision 1.478, 1.480 via patch
	sys/coda/coda_vfsops.c:		revision 1.81
	sys/fs/adosfs/advfsops.c:	revision 1.70
	sys/fs/cd9660/cd9660_vfsops.c:	revision 1.84
	sys/fs/efs/efs_vfsops.c:	revision 1.25
	sys/fs/filecorefs/filecore_vfsops.c:	revision 1.76
	sys/fs/hfs/hfs_vfsops.c:	revision 1.31
	sys/fs/msdosfs/msdosfs_vfsops.c:	revision 1.107
	sys/fs/ntfs/ntfs_vfsops.c:	revision 1.94
	sys/fs/ptyfs/ptyfs_vfsops.c:	revision 1.50 via patch
	sys/fs/puffs/puffs_vfsops.c:	revision 1.110 via patch
	sys/fs/smbfs/smbfs_vfsops.c:	revision 1.100
	sys/fs/sysvbfs/sysvbfs_vfsops.c:	revision 1.43
	sys/fs/tmpfs/tmpfs_vfsops.c:	revision 1.59 via patch
	sys/fs/udf/udf_vfsops.c:	revision 1.67
	sys/fs/union/union_vfsops.c:	revision 1.72
	sys/fs/unionfs/unionfs_vfsops.c:	revision 1.13
	sys/kern/vfs_syscalls.c:	revision 1.479
	sys/miscfs/nullfs/null_vfsops.c:	revision 1.88 via patch
	sys/miscfs/overlay/overlay_vfsops.c:	revision 1.61
	sys/miscfs/procfs/procfs_vfsops.c:	revision 1.91
	sys/miscfs/umapfs/umap_vfsops.c:	revision 1.92
	sys/nfs/nfs_vfsops.c:		revision 1.227
	sys/ufs/ext2fs/ext2fs_vfsops.c:	revision 1.180
	sys/ufs/ffs/ffs_vfsops.c:	revision 1.297
	sys/ufs/lfs/lfs_vfsops.c:	revision 1.321
	sys/ufs/mfs/mfs_vfsops.c:	revision 1.107

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

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

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

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

Revision 1.59: download - view: text, markup, annotated - select for diffs
Wed Apr 16 18:55:19 2014 UTC (10 years, 7 months ago) by maxv
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +5 -2 lines
An (un)privileged user can easily make the kernel dereference a NULL
pointer.

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

ok christos@

Revision 1.58: download - view: text, markup, annotated - select for diffs
Sun Mar 23 15:21:16 2014 UTC (10 years, 8 months ago) by hannken
Branches: MAIN
CVS tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15
Branch point for: tls-earlyentropy
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +23 -27 lines
Change all vfsops to use C99 designated initializers.

No functional changes intended.

Revision 1.57: download - view: text, markup, annotated - select for diffs
Thu Feb 6 16:18:38 2014 UTC (10 years, 9 months ago) by hannken
Branches: MAIN
CVS tags: riastradh-drm2-base3
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +2 -3 lines
Remove an annoying printf.  And to answer the question:  VFS_VGET() gets
used by NFS V3 server for readdirplus.

Revision 1.56: download - view: text, markup, annotated - select for diffs
Sat Jan 4 12:36:49 2014 UTC (10 years, 11 months ago) by hannken
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +17 -10 lines
Fix a race where thread1 runs VOP_REMOVE() and gets preempted in
tmpfs_reclaim() before the call to tmpfs_free_node().  Thread2
runs VFS_FHTOVP() and gets a new vnode attached to the node thread1
is about to destroy.

Change tmpfs_fhtovp() to check the generation number after
tmpfs_vnode_get() succeeded.

Revision 1.55: download - view: text, markup, annotated - select for diffs
Sat Nov 23 16:35:32 2013 UTC (11 years ago) by rmind
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +8 -2 lines
- Simplify tmpfs_update(), eliminate tmpfs_note_t::tn_status and deferred
  timestamp updates.  Fix some incorrect updates and plug some missing ones.
  Should fix PR/48385.
- tmpfs_rmdir: avoid O(n) scan when the directory is not empty and whiteout
  entries were never added.

Revision 1.54: download - view: text, markup, annotated - select for diffs
Sun Nov 10 12:46:19 2013 UTC (11 years ago) by rmind
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +4 -3 lines
Handle whiteout case in tmpfs_dir_detach() and tmpfs_unmount().

Revision 1.53: download - view: text, markup, annotated - select for diffs
Fri Nov 8 15:44:23 2013 UTC (11 years ago) by rmind
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +23 -20 lines
tmpfs: replace the broken tmpfs_dircookie() logic which uses the node
address truncated to 31 bits (required for 32-bit readdir compatibility,
e.g. linux32).  Instead, assign 2^31 range using the following logic:
- The first half of the 2^31 is assigned incrementally (the fast path).
- When exceeded, use the second half of 2^31, but manage with vmem(9).

It will require 2 billion files per-directory to trigger vmem(9) usage.
Also, while here, add some fixes for tmpfs_unmount().

Should fix PR/47739, PR/47480, PR/46088 and PR/41068.
Thanks to wiz@ for stress testing.

Revision 1.52: download - view: text, markup, annotated - select for diffs
Tue Sep 27 01:10:43 2011 UTC (13 years, 2 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-tag8, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, 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, khorben-n900, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3, agc-symver-base, agc-symver
Branch point for: yamt-pagecache, tls-maxphys, rmind-smpnet, netbsd-6-1, netbsd-6-0, netbsd-6
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +3 -3 lines
define and use TMPFS_MAXNAMLEN instead of MAXNAMLEN

Revision 1.46.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 6 09:09:24 2011 UTC (13 years, 6 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.46: preferred, colored; next MAIN 1.47: preferred, colored
Changes since revision 1.46: +90 -120 lines
Sync with HEAD.

Revision 1.44.16.3: download - view: text, markup, annotated - select for diffs
Tue May 31 03:05:00 2011 UTC (13 years, 6 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.44.16.2: preferred, colored; branchpoint 1.44: preferred, colored; next MAIN 1.45: preferred, colored
Changes since revision 1.44.16.2: +88 -115 lines
sync with head

Revision 1.51: download - view: text, markup, annotated - select for diffs
Sun May 29 22:29:07 2011 UTC (13 years, 6 months ago) by rmind
Branches: MAIN
CVS tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base, cherry-xenmp
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +27 -19 lines
- Rework and document inode reference counting.  Also document inode life
  cycle (destruction part).  Perform link counting in tmpfs_dir_attach()
  and tmpfs_dir_detach(), instead of alloc/free and arbitrary places.
  Fixes PR/44285, PR/44288, PR/44657 and likely PR/42484.

- Fix the race between the lookup and inode destruction.  Fixes PR/43167
  and its duplicates PR/40088, PR/40757.

- Improve tmpfs_rename() locking a little, fix kqueue event notifications
  and also fix PR/43617.  Add simplistic tmpfs_parentcheck_p(); to be
  expanded and used for further rename() locking fixes.

- Cache directory entry "hint" in the tmpfs node, add tmpfs_dir_cached(),
  and thus avoid unnecessary lookup in tmpfs_remove() and tmpfs_rmdir().

- Set correct _PC_FILESIZEBITS value in tmpfs_pathconf().  Fixes PR/43576.

- Few minor fixes.

Revision 1.50: download - view: text, markup, annotated - select for diffs
Tue May 24 20:17:49 2011 UTC (13 years, 6 months ago) by rmind
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +39 -67 lines
- Describe some locking.
- Add VOP argument comments, add some asserts.
- Update/fix/remove outdated/missleading comments.
- Clean up, de-indent, KNF, misc.

No functional changes intended.

Revision 1.49: download - view: text, markup, annotated - select for diffs
Tue May 24 01:09:47 2011 UTC (13 years, 6 months ago) by rmind
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +8 -14 lines
- tmpfs_alloc_node/tmpfs_free_node: move inode limiting into tmpfs_node_get()
  and tmpfs_node_put(), update outdated/wrong comments and move/add asserts.
- tmpfs_mount: check for the version of arguments a bit earlier.

Revision 1.48: download - view: text, markup, annotated - select for diffs
Thu May 19 03:21:23 2011 UTC (13 years, 6 months ago) by rmind
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +27 -28 lines
- tmpfs: do not create dirent/node pools per-mount, there is no need to.
- tmpfs_mount: fix a leak of mount structures in error path.

Revision 1.44.16.2: download - view: text, markup, annotated - select for diffs
Thu Apr 21 01:42:06 2011 UTC (13 years, 7 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.44.16.1: preferred, colored; branchpoint 1.44: preferred, colored
Changes since revision 1.44.16.1: +3 -6 lines
sync with head

Revision 1.47: download - view: text, markup, annotated - select for diffs
Sat Apr 2 14:24:53 2011 UTC (13 years, 8 months ago) by hannken
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +3 -6 lines
Fix file handle operations for tmpfs by removing a now bogus test and
fixing the return value of tmpfs_fhtovp() in the not-found case.

When vmlocking2 was merged to head (Jan 2008 !!) the inode numbering was
changed.  Before inodes were numbered 2..tm_nodes_max-1 and after the
merge the numbers are derived from the nodes memory address.

Fixes PR #43605 (tmpfs file handles are broken)

Revision 1.44.14.1: download - view: text, markup, annotated - select for diffs
Tue Aug 17 06:47:22 2010 UTC (14 years, 3 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.44: preferred, colored; next MAIN 1.45: preferred, colored
Changes since revision 1.44: +31 -46 lines
Sync with HEAD.

Revision 1.38.10.3: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:54:36 2010 UTC (14 years, 3 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.38.10.2: preferred, colored; branchpoint 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38.10.2: +31 -46 lines
sync with head.

Revision 1.44.16.1: download - view: text, markup, annotated - select for diffs
Sat Jul 3 01:19:51 2010 UTC (14 years, 5 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +31 -46 lines
sync with head

Revision 1.46: download - view: text, markup, annotated - select for diffs
Sat Jun 26 03:38:14 2010 UTC (14 years, 5 months ago) by rmind
Branches: MAIN
CVS tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, matt-mips64-premerge-20101231, jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: jruoho-x86intr
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +9 -5 lines
tmpfs_statvfs: hold accounting lock, since tmpfs_pages_avail() and
tmpfs_bytes_max() may fluctuate while in calculations.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Tue Jun 22 18:32:08 2010 UTC (14 years, 5 months ago) by rmind
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +26 -45 lines
Replace tmpfs_pool custom allocator code with a simpler layer for memory
accounting.  Use wired memory (which can be limited) for meta-data, and
kmem(9) for string allocations.

Close PR/31944.  Fix PR/38361 while here.  OK ad@.

Revision 1.38.10.2: download - view: text, markup, annotated - select for diffs
Mon May 4 08:13:44 2009 UTC (15 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.38.10.1: preferred, colored; branchpoint 1.38: preferred, colored
Changes since revision 1.38.10.1: +3 -2 lines
sync with head.

Revision 1.41.4.1: download - view: text, markup, annotated - select for diffs
Sun Oct 19 22:17:18 2008 UTC (16 years, 1 month ago) by haad
Branches: haad-dm
Diff to: previous 1.41: preferred, colored; next MAIN 1.42: preferred, colored
Changes since revision 1.41: +3 -2 lines
Sync with HEAD.

Revision 1.38.6.2: download - view: text, markup, annotated - select for diffs
Sun Sep 28 10:40:51 2008 UTC (16 years, 2 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.38.6.1: preferred, colored; branchpoint 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38.6.1: +1 -0 lines
Sync with HEAD.

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

Revision 1.41.2.3: download - view: text, markup, annotated - select for diffs
Thu Jul 31 04:51:02 2008 UTC (16 years, 4 months ago) by simonb
Branches: simonb-wapbl
Diff to: previous 1.41.2.2: preferred, colored; branchpoint 1.41: preferred, colored; next MAIN 1.42: preferred, colored
Changes since revision 1.41.2.2: +3 -2 lines
Sync with head.

Revision 1.44: download - view: text, markup, annotated - select for diffs
Tue Jul 29 09:10:09 2008 UTC (16 years, 4 months ago) by pooka
Branches: MAIN
CVS tags: yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, uebayasi-xip-base1, uebayasi-xip-base, simonb-wapbl-nbase, simonb-wapbl-base, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, nick-hppapmap, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, mjf-devfs2-base, matt-premerge-20091211, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: uebayasi-xip, rmind-uvmplock, netbsd-5-2, netbsd-5-1, netbsd-5
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +3 -2 lines
Solve the fstat-wants-to-look-at-kernel-data-structures in a nicer
way: don't export the fs internals to innocent userspace programs
which just want to mount the file system.

Revision 1.41.2.2: download - view: text, markup, annotated - select for diffs
Tue Jul 29 07:00:30 2008 UTC (16 years, 4 months ago) by simonb
Branches: simonb-wapbl
Diff to: previous 1.41.2.1: preferred, colored; branchpoint 1.41: preferred, colored
Changes since revision 1.41.2.1: +2 -3 lines
Sync with head.

Revision 1.43: download - view: text, markup, annotated - select for diffs
Mon Jul 28 18:00:20 2008 UTC (16 years, 4 months ago) by pooka
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +2 -3 lines
shuffle around some more defs for fstat

noticed by Kurt Schreiner on current-users

Revision 1.41.2.1: download - view: text, markup, annotated - select for diffs
Mon Jul 28 14:37:35 2008 UTC (16 years, 4 months ago) by simonb
Branches: simonb-wapbl
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +3 -2 lines
Sync with head.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Mon Jul 28 12:42:12 2008 UTC (16 years, 4 months ago) by pooka
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +3 -2 lines
Install mount argument structure header just like every other file system.

Revision 1.40.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 23 04:31:49 2008 UTC (16 years, 5 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +19 -3 lines
Sync w/ -current. 34 merge conflicts to follow.

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

Revision 1.38.8.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:35:03 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38: +20 -10 lines
sync with head.

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

Revision 1.41: download - view: text, markup, annotated - select for diffs
Sat May 10 02:26:09 2008 UTC (16 years, 6 months ago) by rumble
Branches: MAIN
CVS tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, hpcarm-cleanup-nbase
Branch point for: simonb-wapbl, haad-dm
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +19 -3 lines
Convert file systems to dynamically attach with the new module interface.
Make VFS hooks dynamic while we're here and say farewell to VFS_ATTACH and
VFS_HOOKS_ATTACH linksets.

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

Quick sanity check by ad@.

Revision 1.40: download - view: text, markup, annotated - select for diffs
Tue Apr 29 18:18:08 2008 UTC (16 years, 7 months ago) by ad
Branches: MAIN
Branch point for: wrstuden-revivesa
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +3 -2 lines
PR kern/38057 ffs makes assuptions about devvp file system
PR kern/33406 softdeps get stuck in endless loop

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

Revision 1.39: download - view: text, markup, annotated - select for diffs
Mon Apr 28 20:24:02 2008 UTC (16 years, 7 months ago) by martin
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +2 -9 lines
Remove clause 3 and 4 from TNF licenses

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

Revision 1.29.2.4: download - view: text, markup, annotated - select for diffs
Mon Feb 18 21:06:40 2008 UTC (16 years, 9 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.29.2.3: preferred, colored; branchpoint 1.29: preferred, colored; next MAIN 1.30: preferred, colored
Changes since revision 1.29.2.3: +31 -41 lines
Sync with HEAD.

Revision 1.12.6.10: download - view: text, markup, annotated - select for diffs
Mon Feb 11 14:59:53 2008 UTC (16 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.12.6.9: preferred, colored; branchpoint 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12.6.9: +7 -3 lines
sync with head.

Revision 1.38: download - view: text, markup, annotated - select for diffs
Wed Feb 6 11:22:12 2008 UTC (16 years, 10 months ago) by jmmv
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, ad-socklock-base1
Branch point for: yamt-pf42, yamt-nfs-mp, mjf-devfs2
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +3 -3 lines
Drop trailing whitespace.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Tue Feb 5 15:02:45 2008 UTC (16 years, 10 months ago) by ad
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +6 -2 lines
Limit kva usage to 8TB and the number of inodes to 2G. Should fix
PR kern/37951.

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

Revision 1.36: download - view: text, markup, annotated - select for diffs
Mon Jan 28 14:31:17 2008 UTC (16 years, 10 months ago) by dholland
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +5 -2 lines
Fix some race conditions in rename.
Introduce a per-FS rename lock and new vfsops to manipulate it.
Get this lock while renaming. Also add another relookup() in do_sys_rename,
which is a hack to kludge around some of the worst deficiencies of
ufs_rename.
reviewed-by: pooka (and an earlier rev by ad)
posted on tech-kern with no objections.

Revision 1.12.6.8: download - view: text, markup, annotated - select for diffs
Mon Jan 21 09:45:55 2008 UTC (16 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.12.6.7: preferred, colored; branchpoint 1.12: preferred, colored
Changes since revision 1.12.6.7: +24 -41 lines
sync with head

Revision 1.33.4.2: download - view: text, markup, annotated - select for diffs
Sat Jan 19 12:15:18 2008 UTC (16 years, 10 months ago) by bouyer
Branches: bouyer-xeni386
Diff to: previous 1.33.4.1: preferred, colored; branchpoint 1.33: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33.4.1: +0 -1 lines
Sync with HEAD

Revision 1.35: download - view: text, markup, annotated - select for diffs
Thu Jan 17 18:22:52 2008 UTC (16 years, 10 months ago) by pooka
Branches: MAIN
CVS tags: bouyer-xeni386-nbase, bouyer-xeni386-base
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +2 -3 lines
Remove bogus KASSERT: we can't make any assumptions about a dirent's
node in unmount since it might have been freed already.

fixes PR kern/37667.  per discussion with ad & simonb.

Revision 1.27.4.3: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:55:52 2008 UTC (16 years, 11 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.27.4.2: preferred, colored; branchpoint 1.27: preferred, colored
Changes since revision 1.27.4.2: +25 -42 lines
sync with HEAD

Revision 1.33.4.1: download - view: text, markup, annotated - select for diffs
Wed Jan 2 21:55:40 2008 UTC (16 years, 11 months ago) by bouyer
Branches: bouyer-xeni386
CVS tags: bouyer-xeni386-merge1
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +23 -39 lines
Sync with HEAD

Revision 1.34: download - view: text, markup, annotated - select for diffs
Wed Jan 2 11:48:47 2008 UTC (16 years, 11 months ago) by ad
Branches: MAIN
CVS tags: matt-armv6-base
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +23 -39 lines
Merge vmlocking2 to head.

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

Revision 1.32.2.6: download - view: text, markup, annotated - select for diffs
Wed Dec 26 21:39:34 2007 UTC (16 years, 11 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.32.2.5: preferred, colored; branchpoint 1.32: preferred, colored; next MAIN 1.33: preferred, colored
Changes since revision 1.32.2.5: +3 -3 lines
Sync with head.

Revision 1.32.2.5: download - view: text, markup, annotated - select for diffs
Thu Dec 13 16:21:59 2007 UTC (16 years, 11 months ago) by yamt
Branches: vmlocking2
Diff to: previous 1.32.2.4: preferred, colored; branchpoint 1.32: preferred, colored
Changes since revision 1.32.2.4: +3 -2 lines
don't leak linkcount on errors.

Revision 1.32.2.4: download - view: text, markup, annotated - select for diffs
Wed Dec 12 17:38:40 2007 UTC (16 years, 11 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.32.2.3: preferred, colored; branchpoint 1.32: preferred, colored
Changes since revision 1.32.2.3: +4 -5 lines
Minor corrections to previous.

Revision 1.32.2.3: download - view: text, markup, annotated - select for diffs
Wed Dec 12 17:33:15 2007 UTC (16 years, 11 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.32.2.2: preferred, colored; branchpoint 1.32: preferred, colored
Changes since revision 1.32.2.2: +11 -5 lines
- Don't use LK_RETRY in tmpfs_alloc_vp().
- Reduce cosmetic diffs to head.

Revision 1.27.2.7: download - view: text, markup, annotated - select for diffs
Sun Dec 9 19:38:12 2007 UTC (16 years, 11 months ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.27.2.6: preferred, colored; branchpoint 1.27: preferred, colored; next MAIN 1.28: preferred, colored
Changes since revision 1.27.2.6: +3 -3 lines
Sync with HEAD.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Sat Dec 8 19:29:45 2007 UTC (17 years ago) by pooka
Branches: 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
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +3 -3 lines
Remove cn_lwp from struct componentname.  curlwp should be used
from on.  The NDINIT() macro no longer takes the lwp parameter and
associates the credentials of the calling thread with the namei
structure.

Revision 1.29.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 8 18:20:21 2007 UTC (17 years ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.29.2.1: preferred, colored; branchpoint 1.29: preferred, colored
Changes since revision 1.29.2.1: +14 -29 lines
Sync with HEAD.

Revision 1.32.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 8 14:42:25 2007 UTC (17 years ago) by ad
Branches: vmlocking2
Diff to: previous 1.32.2.1: preferred, colored; branchpoint 1.32: preferred, colored
Changes since revision 1.32.2.1: +4 -12 lines
Reduce coverage of the per-mount lock by using atomic ops.

Revision 1.12.6.7: download - view: text, markup, annotated - select for diffs
Fri Dec 7 17:32:11 2007 UTC (17 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.12.6.6: preferred, colored; branchpoint 1.12: preferred, colored
Changes since revision 1.12.6.6: +14 -29 lines
sync with head

Revision 1.32.2.1: download - view: text, markup, annotated - select for diffs
Tue Dec 4 13:03:10 2007 UTC (17 years ago) by ad
Branches: vmlocking2
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +32 -46 lines
Pull the vmlocking changes into a new branch.

Revision 1.27.2.6: download - view: text, markup, annotated - select for diffs
Tue Nov 27 19:37:55 2007 UTC (17 years ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.27.2.5: preferred, colored; branchpoint 1.27: preferred, colored
Changes since revision 1.27.2.5: +14 -29 lines
Sync with HEAD. amd64 Xen support needs testing.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Mon Nov 26 19:01:55 2007 UTC (17 years ago) by pooka
Branches: MAIN
CVS tags: vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base
Branch point for: vmlocking2
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +14 -29 lines
Remove the "struct lwp *" argument from all VFS and VOP interfaces.
The general trend is to remove it from all kernel interfaces and
this is a start.  In case the calling lwp is desired, curlwp should
be used.

quick consensus on tech-kern

Revision 1.29.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 19 00:48:32 2007 UTC (17 years ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +2 -2 lines
Sync with HEAD.

Revision 1.28.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 13 16:01:51 2007 UTC (17 years ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.28: preferred, colored; next MAIN 1.29: preferred, colored
Changes since revision 1.28: +3 -3 lines
Sync with HEAD

Revision 1.27.2.5: download - view: text, markup, annotated - select for diffs
Sun Nov 11 16:47:56 2007 UTC (17 years ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.27.2.4: preferred, colored; branchpoint 1.27: preferred, colored
Changes since revision 1.27.2.4: +46 -32 lines
Sync with HEAD.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Sat Nov 10 03:36:16 2007 UTC (17 years ago) by ad
Branches: MAIN
CVS tags: bouyer-xenamd64-base2, bouyer-xenamd64-base
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +44 -30 lines
Back out the tmpfs changes; there appears to be a bug lurking.

Revision 1.27.4.2: download - view: text, markup, annotated - select for diffs
Thu Nov 8 10:59:58 2007 UTC (17 years, 1 month ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.27.4.1: preferred, colored; branchpoint 1.27: preferred, colored
Changes since revision 1.27.4.1: +32 -46 lines
sync with -HEAD

Revision 1.27.4.1: download - view: text, markup, annotated - select for diffs
Tue Nov 6 23:31:21 2007 UTC (17 years, 1 month ago) by matt
Branches: matt-armv6
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +5 -2 lines
sync with HEAD

Revision 1.27.2.4: download - view: text, markup, annotated - select for diffs
Tue Nov 6 21:16:24 2007 UTC (17 years, 1 month ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.27.2.3: preferred, colored; branchpoint 1.27: preferred, colored
Changes since revision 1.27.2.3: +32 -46 lines
Sync with HEAD.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Tue Nov 6 19:50:55 2007 UTC (17 years, 1 month ago) by ad
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +32 -46 lines
Merge from vmlocking.

Revision 1.12.6.6: download - view: text, markup, annotated - select for diffs
Sat Oct 27 11:35:15 2007 UTC (17 years, 1 month ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.12.6.5: preferred, colored; branchpoint 1.12: preferred, colored
Changes since revision 1.12.6.5: +5 -2 lines
sync with head.

Revision 1.27.2.3: download - view: text, markup, annotated - select for diffs
Fri Oct 26 15:48:23 2007 UTC (17 years, 1 month ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.27.2.2: preferred, colored; branchpoint 1.27: preferred, colored
Changes since revision 1.27.2.2: +3 -3 lines
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.29: download - view: text, markup, annotated - select for diffs
Tue Oct 23 19:45:29 2007 UTC (17 years, 1 month ago) by dyoung
Branches: MAIN
CVS tags: jmcneill-base
Branch point for: mjf-devfs
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +3 -3 lines
Fix typo: I'm pretty sure that in tmpfs_done(), both of the malloc(9)
types are supposed to be detached, not attached.

Revision 1.20.4.7: download - view: text, markup, annotated - select for diffs
Mon Oct 8 20:19:29 2007 UTC (17 years, 2 months ago) by ad
Branches: vmlocking
Diff to: previous 1.20.4.6: preferred, colored; branchpoint 1.20: preferred, colored; next MAIN 1.21: preferred, colored
Changes since revision 1.20.4.6: +15 -48 lines
- Don't leave nodes dangling in order to keep track of the inode generation
  number. Free them back to the pool as soon as the referenced file becomes
  unused. Using arc4random() for the generation and ino_t based off the
  node's in-core address is just about as as good as a disk-based file
  system is going to give.
- Add assertion to catch empty directories with linkcount > 1 being freed.
  This fires frequently but I haven't tracked the bug down yet..
- Use kmem_alloc.

Revision 1.27.6.1: download - view: text, markup, annotated - select for diffs
Sat Oct 6 15:29:51 2007 UTC (17 years, 2 months ago) by yamt
Branches: yamt-x86pmap
Diff to: previous 1.27: preferred, colored; next MAIN 1.28: preferred, colored
Changes since revision 1.27: +5 -2 lines
sync with head.

Revision 1.27.2.2: download - view: text, markup, annotated - select for diffs
Tue Oct 2 18:28:55 2007 UTC (17 years, 2 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.27.2.1: preferred, colored; branchpoint 1.27: preferred, colored
Changes since revision 1.27.2.1: +478 -0 lines
Sync with HEAD.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Mon Sep 24 00:42:15 2007 UTC (17 years, 2 months ago) by rumble
Branches: MAIN
CVS tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, vmlocking-base
Branch point for: bouyer-xenamd64
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +5 -2 lines
Avoid stack allocation of large dirent structures in foo_readdir().

Revision 1.12.6.5: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:40:36 2007 UTC (17 years, 3 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.12.6.4: preferred, colored; branchpoint 1.12: preferred, colored
Changes since revision 1.12.6.4: +33 -38 lines
sync with head.

Revision 1.20.4.6: download - view: text, markup, annotated - select for diffs
Wed Aug 22 20:24:52 2007 UTC (17 years, 3 months ago) by ad
Branches: vmlocking
Diff to: previous 1.20.4.5: preferred, colored; branchpoint 1.20: preferred, colored
Changes since revision 1.20.4.5: +4 -5 lines
Fix some more concurrency problems.

Revision 1.20.4.5: download - view: text, markup, annotated - select for diffs
Tue Aug 21 20:01:31 2007 UTC (17 years, 3 months ago) by ad
Branches: vmlocking
Diff to: previous 1.20.4.4: preferred, colored; branchpoint 1.20: preferred, colored
Changes since revision 1.20.4.4: +28 -5 lines
- Add locking around tmpfs shared data structures and mark it MP safe.
  It's enough to last for about 45m of fsx+postmark, but it doesn't
  survive SGI fsstress yet.
- Close a race where multiple vnodes could maybe have been allocated
  for a tmpnode with linkcount > 1.

Revision 1.20.4.4: download - view: text, markup, annotated - select for diffs
Mon Aug 20 21:26:11 2007 UTC (17 years, 3 months ago) by ad
Branches: vmlocking
Diff to: previous 1.20.4.3: preferred, colored; branchpoint 1.20: preferred, colored
Changes since revision 1.20.4.3: +8 -6 lines
Sync with HEAD.

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

Revision 1.27.8.2: download - view: text, markup, annotated - select for diffs
Fri Aug 3 13:00:20 2007 UTC (17 years, 4 months ago) by pooka
Branches: matt-mips64
Diff to: previous 1.27.8.1: preferred, colored; branchpoint 1.27: preferred, colored; next MAIN 1.28: preferred, colored
Changes since revision 1.27.8.1: +475 -0 lines
Set mnt_fs_bshift and mnt_dev_bshift to reasonable dummy-values.

Revision 1.27.8.1
Fri Aug 3 13:00:19 2007 UTC (17 years, 4 months ago) by pooka
Branches: matt-mips64
FILE REMOVED
Changes since revision 1.27: +0 -475 lines
file tmpfs_vfsops.c was added on branch matt-mips64 on 2007-08-03 13:00:20 +0000

Revision 1.27.2.1
Fri Aug 3 13:00:19 2007 UTC (17 years, 4 months ago) by joerg
Branches: jmcneill-pm
FILE REMOVED
Changes since revision 1.27: +0 -475 lines
file tmpfs_vfsops.c was added on branch jmcneill-pm on 2007-10-02 18:28:55 +0000

Revision 1.27: download - view: text, markup, annotated - select for diffs
Fri Aug 3 13:00:19 2007 UTC (17 years, 4 months ago) by pooka
Branches: MAIN
CVS tags: yamt-x86pmap-base, nick-csl-alignment-base5, matt-mips64-base
Branch point for: yamt-x86pmap, matt-mips64, matt-armv6, jmcneill-pm
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +4 -2 lines
Set mnt_fs_bshift and mnt_dev_bshift to reasonable dummy-values.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Tue Jul 31 21:14:18 2007 UTC (17 years, 4 months ago) by pooka
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +4 -4 lines
* nuke the nameidata parameter from VFS_MOUNT().  Nobody on tech-kern
  knew what it was supposed to be used for and wrstuden gave a go-ahead
* while rototilling, convert file systems which went easily to
  use VFS_PROTOS() instead of manually prototyping the methods

Revision 1.25: download - view: text, markup, annotated - select for diffs
Thu Jul 26 22:57:38 2007 UTC (17 years, 4 months ago) by pooka
Branches: MAIN
CVS tags: hpcarm-cleanup
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +3 -3 lines
Use eopnotsupp() instead of vfs_stdsuspendctl() and retire the latter.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Tue Jul 17 11:19:33 2007 UTC (17 years, 4 months ago) by pooka
Branches: MAIN
CVS tags: nick-csl-alignment-base
Branch point for: nick-csl-alignment
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +3 -3 lines
Make set_statvfs_info() take a parameter for the vfs name instead
of always retrieving it from mp->mnt_op->vfs_name

christos ok

Revision 1.20.4.3: download - view: text, markup, annotated - select for diffs
Sun Jul 15 15:52:53 2007 UTC (17 years, 4 months ago) by ad
Branches: vmlocking
Diff to: previous 1.20.4.2: preferred, colored; branchpoint 1.20: preferred, colored
Changes since revision 1.20.4.2: +4 -4 lines
Sync with head.

Revision 1.20.4.2: download - view: text, markup, annotated - select for diffs
Sun Jul 15 13:27:34 2007 UTC (17 years, 4 months ago) by ad
Branches: vmlocking
Diff to: previous 1.20.4.1: preferred, colored; branchpoint 1.20: preferred, colored
Changes since revision 1.20.4.1: +24 -32 lines
Sync with head.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Thu Jul 12 19:35:34 2007 UTC (17 years, 4 months ago) by dsl
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +25 -29 lines
Change the VFS_MOUNT() interface so that the 'data' buffer passed to the
fs code is a kernel buffer, pass though the length of the buffer as well.
Since the length of the userspace buffer isn'it (yet) passed through the mount
system call, add a field to the vfsops structure containing the default length.
Split sys_mount() for calls from compat code.
Ride one of the recent kernel version changes - old fs LKMs will load, but
sys_mount() will reject any attempt to use them.

Revision 1.20.6.1: download - view: text, markup, annotated - select for diffs
Wed Jul 11 20:09:34 2007 UTC (17 years, 4 months ago) by mjf
Branches: mjf-ufs-trans
Diff to: previous 1.20: preferred, colored; next MAIN 1.21: preferred, colored
Changes since revision 1.20: +4 -7 lines
Sync with head.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Mon Jul 9 21:10:50 2007 UTC (17 years, 5 months ago) by ad
Branches: MAIN
CVS tags: mjf-ufs-trans-base
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +3 -2 lines
Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements

Revision 1.21: download - view: text, markup, annotated - select for diffs
Sat Jun 30 09:37:57 2007 UTC (17 years, 5 months ago) by pooka
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +3 -7 lines
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.20.4.1: download - view: text, markup, annotated - select for diffs
Thu Apr 5 21:57:49 2007 UTC (17 years, 8 months ago) by ad
Branches: vmlocking
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +3 -2 lines
Compile fixes.

Revision 1.18.2.1: download - view: text, markup, annotated - select for diffs
Tue Feb 27 16:54:15 2007 UTC (17 years, 9 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.18: preferred, colored; next MAIN 1.19: preferred, colored
Changes since revision 1.18: +7 -7 lines
- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.

Revision 1.12.6.4: download - view: text, markup, annotated - select for diffs
Mon Feb 26 09:11:00 2007 UTC (17 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.12.6.3: preferred, colored; branchpoint 1.12: preferred, colored
Changes since revision 1.12.6.3: +8 -7 lines
sync with head.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Thu Feb 22 06:37:00 2007 UTC (17 years, 9 months ago) by thorpej
Branches: MAIN
CVS tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, ad-audiomp-base, ad-audiomp
Branch point for: vmlocking, mjf-ufs-trans
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +6 -6 lines
TRUE -> true, FALSE -> false

Revision 1.19: download - view: text, markup, annotated - select for diffs
Wed Feb 21 23:00:04 2007 UTC (17 years, 9 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +3 -3 lines
Replace the Mach-derived boolean_t type with the C99 bool type.  A
future commit will replace use of TRUE and FALSE with true and false.

Revision 1.14.2.2: download - view: text, markup, annotated - select for diffs
Thu Feb 1 08:48:33 2007 UTC (17 years, 10 months ago) by ad
Branches: newlock2
Diff to: previous 1.14.2.1: preferred, colored; branchpoint 1.14: preferred, colored; next MAIN 1.15: preferred, colored
Changes since revision 1.14.2.1: +3 -2 lines
Sync with head.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Fri Jan 19 14:49:10 2007 UTC (17 years, 10 months ago) by hannken
Branches: MAIN
CVS tags: post-newlock2-merge, newlock2-nbase, newlock2-base
Branch point for: yamt-idlelwp
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +3 -2 lines
New file system suspension API to replace vn_start_write and vn_finished_write.
The suspension helpers are now put into file system specific operations.
This means every file system not supporting these helpers cannot be suspended
and therefore snapshots are no longer possible.

Implemented for file systems of type ffs.

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

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

Welcome to 4.99.9 (new vfs op vfs_suspendctl).

Revision 1.12.6.3: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:50:01 2006 UTC (17 years, 11 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.12.6.2: preferred, colored; branchpoint 1.12: preferred, colored
Changes since revision 1.12.6.2: +35 -21 lines
sync with head.

Revision 1.14.4.2: download - view: text, markup, annotated - select for diffs
Sun Dec 10 07:18:43 2006 UTC (17 years, 11 months ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.14.4.1: preferred, colored; branchpoint 1.14: preferred, colored; next MAIN 1.15: preferred, colored
Changes since revision 1.14.4.1: +16 -15 lines
sync with head.

Revision 1.14.2.1: download - view: text, markup, annotated - select for diffs
Sat Nov 18 21:39:21 2006 UTC (18 years ago) by ad
Branches: newlock2
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +13 -8 lines
Sync with head.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Thu Nov 16 01:33:37 2006 UTC (18 years ago) by christos
Branches: MAIN
CVS tags: 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
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +15 -15 lines
__unused removal on arguments; approved by core.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Thu Nov 9 15:06:03 2006 UTC (18 years ago) by jmmv
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +3 -2 lines
Audit kqueue notifications.  The reference behavior is taken from MFS and
is represented in the regression tests.

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

Revision 1.15: download - view: text, markup, annotated - select for diffs
Thu Oct 12 01:32:14 2006 UTC (18 years, 1 month ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base2
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +15 -11 lines
- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

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

Revision 1.11.2.3: download - view: text, markup, annotated - select for diffs
Sun Sep 3 15:25:13 2006 UTC (18 years, 3 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.11.2.2: preferred, colored; branchpoint 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11.2.2: +4 -2 lines
sync with head.

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

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

Revision 1.12.4.1: download - view: text, markup, annotated - select for diffs
Thu Jul 13 17:49:50 2006 UTC (18 years, 4 months ago) by gdamore
Branches: gdamore-uart
Diff to: previous 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12: +22 -15 lines
Merge from HEAD.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Thu Jul 13 12:00:25 2006 UTC (18 years, 4 months ago) by martin
Branches: MAIN
CVS tags: yamt-pdpolicy-base7, abandoned-netbsd-4-base, abandoned-netbsd-4
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +22 -15 lines
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.12.6.2: download - view: text, markup, annotated - select for diffs
Wed Jun 21 15:09:36 2006 UTC (18 years, 5 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.12.6.1: preferred, colored; branchpoint 1.12: preferred, colored
Changes since revision 1.12.6.1: +465 -0 lines
sync with head.

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

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

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

Revision 1.12.6.1
Sun May 14 21:31:52 2006 UTC (18 years, 6 months ago) by yamt
Branches: yamt-lazymbuf
FILE REMOVED
Changes since revision 1.12: +0 -465 lines
file tmpfs_vfsops.c was added on branch yamt-lazymbuf on 2006-06-21 15:09:36 +0000

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sun May 14 21:31:52 2006 UTC (18 years, 6 months ago) by elad
Branches: MAIN
CVS tags: yamt-pdpolicy-base6, yamt-pdpolicy-base5, simonb-timecounters-base, gdamore-uart-base, chap-midi-nbase, chap-midi-base, chap-midi
Branch point for: yamt-lazymbuf, gdamore-uart
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +4 -4 lines
integrate kauth.

Revision 1.10.6.1: download - view: text, markup, annotated - select for diffs
Sat Apr 22 11:39:58 2006 UTC (18 years, 7 months ago) by simonb
Branches: simonb-timecounters
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +4 -4 lines
Sync with head.

Revision 1.11.4.1: download - view: text, markup, annotated - select for diffs
Wed Mar 8 01:31:33 2006 UTC (18 years, 9 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +4 -4 lines
Adapt to kernel authorization KPI.

Revision 1.10.2.1: download - view: text, markup, annotated - select for diffs
Sat Feb 18 15:39:18 2006 UTC (18 years, 9 months ago) by yamt
Branches: yamt-uio_vmspace
Diff to: previous 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10: +4 -4 lines
sync with head.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Thu Feb 16 14:57:50 2006 UTC (18 years, 9 months ago) by jmmv
Branches: 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
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +4 -4 lines
Do not use unnamed structures/unions without instances; they break the
build under vax because of gcc 2.95.  Found by he@.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:24:29 2005 UTC (18 years, 11 months ago) by christos
Branches: MAIN
Branch point for: yamt-uio_vmspace, simonb-timecounters, rpaulo-netinet-merge-pcb
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +16 -16 lines
merge ktrace-lwp.

Revision 1.9.6.3: download - view: text, markup, annotated - select for diffs
Sat Nov 12 17:00:57 2005 UTC (19 years ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.9.6.2: preferred, colored; branchpoint 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9.6.2: +16 -16 lines
Adapt to branch

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

Revision 1.9.6.1
Mon Sep 26 09:50:08 2005 UTC (19 years, 2 months ago) by skrll
Branches: ktrace-lwp
FILE REMOVED
Changes since revision 1.9: +0 -465 lines
file tmpfs_vfsops.c was added on branch ktrace-lwp on 2005-11-10 14:09:44 +0000

Revision 1.9: download - view: text, markup, annotated - select for diffs
Mon Sep 26 09:50:08 2005 UTC (19 years, 2 months ago) by jmmv
Branches: MAIN
CVS tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Branch point for: ktrace-lwp
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +3 -3 lines
Handle too big numbers given in the max size argument.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Sun Sep 25 16:34:42 2005 UTC (19 years, 2 months ago) by jmmv
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +5 -4 lines
Only consider valid flags in the root mode's parameter given by the user.
I doubt the unchecked value could bring us problems, but better to be safe
than sorry.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Sun Sep 25 16:28:43 2005 UTC (19 years, 2 months ago) by jmmv
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +7 -5 lines
Sanity check negative values in the maximum size and number of nodes
arguments to avoid a crash while mounting a tmpfs file system.  Add a
regression test for this too.  Noticed by chs@.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Fri Sep 23 15:36:15 2005 UTC (19 years, 2 months ago) by jmmv
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +11 -3 lines
Kill the tmpfs(9) manual page; it was just documenting internal details of
tmpfs' "API" and was already rotting.

Instead, merge all the relevant comments into the code.  This includes
acknowledgements to Google's Summer of Code 2005 program (they were in the
AUTHORS section of tmpfs(9) before), so all the files need to be changed
to include this sentence alongside the title.  (Note that this was not a
requirement of the program.)

Revision 1.5: download - view: text, markup, annotated - select for diffs
Fri Sep 23 13:59:16 2005 UTC (19 years, 2 months ago) by jmmv
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +3 -3 lines
Start inode numbers on 2 to mimic UFS tradition (and to avoid problems if
some utility relies on this).

Revision 1.4: download - view: text, markup, annotated - select for diffs
Fri Sep 23 12:10:32 2005 UTC (19 years, 2 months ago) by jmmv
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -39 lines
Apply the NFS exports list rototill patch:

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

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

Revision 1.3: download - view: text, markup, annotated - select for diffs
Tue Sep 13 21:30:52 2005 UTC (19 years, 2 months ago) by jmmv
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +3 -3 lines
Nodes cannot use the '0' identifier or they will be skipped by readdir.
E.g., the root node's '.' and '..' directory entries did not appear in
a directory list, because the root node always holds the first id.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sat Sep 10 22:28:57 2005 UTC (19 years, 2 months ago) by jmmv
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +5 -5 lines
wiz@ remembers that the preferred way to spell file-system in NetBSD is
file system.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sat Sep 10 19:20:51 2005 UTC (19 years, 2 months ago) by jmmv
Branches: MAIN
Initial addition of tmpfs, an efficient memory file-system.  This project
was developed as part of Google's Summer of Code 2005 program.  This
change adds the kernel code, the mount_tmpfs utility, a regression test
suite and does all other related changes to integrate these.

The file-system is still *experimental*.  Therefore, it is disabled by
default in all kernels.  However, as typically done, a commented-out
entry is added in them to ease its setup.

Note that I haven't commited the required mountd(8) changes to be able
to export tmpfs file-systems because NFS support is still very unstable
and because, before enabling it, I'd like to do some other changes.

OK'ed by my project mentor, William Studenmund (wrstuden@).

Diff request

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

Log view options

CVSweb <webmaster@jp.NetBSD.org>