The NetBSD Project

CVS log for src/sys/sys/mount.h

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.241 / (download) - annotate - [select for diffs], Sat Apr 22 14:30:54 2023 UTC (11 months, 3 weeks ago) by hannken
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, HEAD
Changes since 1.240: +1 -2 lines
Diff to previous 1.240 (colored) to selected 1.163 (colored)

Remove unused mount member mnt_transinfo.

Ride 10.99.4

Revision 1.240 / (download) - annotate - [select for diffs], Fri Nov 4 11:20:40 2022 UTC (17 months, 1 week ago) by hannken
Branch: MAIN
CVS Tags: 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
Changes since 1.239: +2 -1 lines
Diff to previous 1.239 (colored) to selected 1.163 (colored)

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

Ride 9.99.105

Revision 1.239 / (download) - annotate - [select for diffs], Wed Oct 26 23:39:22 2022 UTC (17 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.238: +4 -1 lines
Diff to previous 1.238 (colored) to selected 1.163 (colored)

sys/mount.h: New home for vfs_timestamp_precision, vfs_magiclinks.

Revision 1.238 / (download) - annotate - [select for diffs], Sat Feb 12 15:51:29 2022 UTC (2 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.237: +2 -1 lines
Diff to previous 1.237 (colored) to selected 1.163 (colored)

Add inline functions to manipulate the klists that link up knotes
via kn_selnext:

- klist_init()
- klist_fini()
- klist_insert()
- klist_remove()

These provide some API insulation from the implementation details of these
lists (but not completely; see vn_knote_attach() and vn_knote_detach()).
Currently just a wrapper around SLIST(9).

This will make it significantly easier to switch kn_selnext linkage
to a different kind of list.

Revision 1.236.6.1 / (download) - annotate - [select for diffs], Sat Apr 3 22:29:03 2021 UTC (3 years ago) by thorpej
Branch: thorpej-futex
Changes since 1.236: +2 -1 lines
Diff to previous 1.236 (colored) next main 1.237 (colored) to selected 1.163 (colored)

Sync with HEAD.

Revision 1.237 / (download) - annotate - [select for diffs], Thu Feb 4 21:07:06 2021 UTC (3 years, 2 months ago) by jdolecek
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.236: +2 -1 lines
Diff to previous 1.236 (colored) to selected 1.163 (colored)

introduce vfs.generic.timestamp_precision sysctl to control precision
of the timer used for vfs_timestamp(); default stays the same
to use nanotime(9), but option is there to use the faster, albeit
less precise methods

code taken from FreeBSD

suggested by Mateusz Guzik in:
http://mail-index.netbsd.org/tech-kern/2020/07/19/msg026620.html

Revision 1.230.4.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:09:03 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.230.4.1: +25 -16 lines
Diff to previous 1.230.4.1 (colored) to branchpoint 1.230 (colored) next main 1.231 (colored) to selected 1.163 (colored)

Merge changes from current as of 20200406

Revision 1.235.2.1 / (download) - annotate - [select for diffs], Fri Jan 17 21:47:37 2020 UTC (4 years, 2 months ago) by ad
Branch: ad-namecache
Changes since 1.235: +10 -10 lines
Diff to previous 1.235 (colored) next main 1.236 (colored) to selected 1.163 (colored)

Sync with head.

Revision 1.236 / (download) - annotate - [select for diffs], Fri Jan 17 20:08:10 2020 UTC (4 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1
Branch point for: thorpej-futex
Changes since 1.235: +10 -10 lines
Diff to previous 1.235 (colored) to selected 1.163 (colored)

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

Revision 1.235 / (download) - annotate - [select for diffs], Sun Dec 22 19:47:34 2019 UTC (4 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: ad-namecache-base
Branch point for: ad-namecache
Changes since 1.234: +16 -7 lines
Diff to previous 1.234 (colored) to selected 1.163 (colored)

Make mntvnode_lock per-mount, and address false sharing of struct mount.

Revision 1.230.4.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:09:57 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.230: +10 -46 lines
Diff to previous 1.230 (colored) to selected 1.163 (colored)

Sync with HEAD

Revision 1.230.2.3 / (download) - annotate - [select for diffs], Fri Jan 18 08:50:59 2019 UTC (5 years, 2 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.230.2.2: +6 -5 lines
Diff to previous 1.230.2.2 (colored) to branchpoint 1.230 (colored) next main 1.231 (colored) to selected 1.163 (colored)

Synch with HEAD

Revision 1.234 / (download) - annotate - [select for diffs], Tue Jan 1 10:06:54 2019 UTC (5 years, 3 months ago) by hannken
Branch: MAIN
CVS Tags: phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2
Changes since 1.233: +6 -5 lines
Diff to previous 1.233 (colored) to selected 1.163 (colored)

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.230.2.2 / (download) - annotate - [select for diffs], Wed Dec 26 14:02:07 2018 UTC (5 years, 3 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.230.2.1: +5 -2 lines
Diff to previous 1.230.2.1 (colored) to branchpoint 1.230 (colored) to selected 1.163 (colored)

Sync with HEAD, resolve a few conflicts

Revision 1.233 / (download) - annotate - [select for diffs], Mon Dec 10 21:19:33 2018 UTC (5 years, 4 months ago) by jdolecek
Branch: MAIN
CVS Tags: pgoyette-compat-1226
Changes since 1.232: +2 -2 lines
Diff to previous 1.232 (colored) to selected 1.163 (colored)

constify wapbl_ops

Revision 1.232 / (download) - annotate - [select for diffs], Mon Dec 10 21:03:48 2018 UTC (5 years, 4 months ago) by jdolecek
Branch: MAIN
Changes since 1.231: +4 -1 lines
Diff to previous 1.231 (colored) to selected 1.163 (colored)

add wo_wapbl_jlock_assert to wapbl_ops

Revision 1.230.2.1 / (download) - annotate - [select for diffs], Thu Sep 6 06:56:47 2018 UTC (5 years, 7 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.230: +1 -41 lines
Diff to previous 1.230 (colored) to selected 1.163 (colored)

Sync with HEAD

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

Revision 1.231 / (download) - annotate - [select for diffs], Wed Aug 22 01:05:24 2018 UTC (5 years, 7 months ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906
Changes since 1.230: +1 -41 lines
Diff to previous 1.230 (colored) to selected 1.163 (colored)

- Cleanup for dynamic sysctl:
  - Remove unused *_NAMES macros for sysctl.
  - Remove unused *_MAXID for sysctls.
- Move CTL_MACHDEP sysctl definitions for m68k into m68k/include/cpu.h and
  use them on all m68k machines.

Revision 1.230 / (download) - annotate - [select for diffs], Tue Jan 9 03:31:13 2018 UTC (6 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: 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
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.229: +7 -2 lines
Diff to previous 1.229 (colored) to selected 1.163 (colored)

Merge autofs support from: Tomohiro Kusumi
XXX: Does not work yet

Revision 1.207.6.6 / (download) - annotate - [select for diffs], Sun Dec 3 11:39:20 2017 UTC (6 years, 4 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.207.6.5: +63 -43 lines
Diff to previous 1.207.6.5 (colored) to branchpoint 1.207 (colored) next main 1.208 (colored) to selected 1.163 (colored)

update from HEAD

Revision 1.215.4.5 / (download) - annotate - [select for diffs], Mon Aug 28 17:53:16 2017 UTC (6 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.215.4.4: +42 -42 lines
Diff to previous 1.215.4.4 (colored) to branchpoint 1.215 (colored) next main 1.216 (colored) to selected 1.163 (colored)

Sync with HEAD

Revision 1.229 / (download) - annotate - [select for diffs], Fri Jun 9 00:13:29 2017 UTC (6 years, 10 months ago) by chs
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825
Changes since 1.228: +27 -31 lines
Diff to previous 1.228 (colored) to selected 1.163 (colored)

rearrange sys/mount.h so that all of the kernel-only parts are together
and not exposed to userland, except do expose struct mount if __EXPOSE_MOUNT
is defined.  define __EXPOSE_MOUNT in the kmem grovellers that want
the definition.  needed for ZFS.

Revision 1.228 / (download) - annotate - [select for diffs], Wed May 24 09:53:55 2017 UTC (6 years, 10 months ago) by hannken
Branch: MAIN
CVS Tags: netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek
Changes since 1.227: +1 -3 lines
Diff to previous 1.227 (colored) to selected 1.163 (colored)

With dounmount() working on a suspended file system remove no longer
needed fields mnt_busynest and mnt_unmounting from struct mount.

Welcome to 7.99.73

Revision 1.227 / (download) - annotate - [select for diffs], Wed May 24 09:52:59 2017 UTC (6 years, 10 months ago) by hannken
Branch: MAIN
Changes since 1.226: +1 -2 lines
Diff to previous 1.226 (colored) to selected 1.163 (colored)

Remove the syncer dance from dounmount().  The syncer skips
unmounting file systems as they are suspended.

Remove now unused syncer_mutex.

Revision 1.219.2.2 / (download) - annotate - [select for diffs], Wed Apr 26 02:53:31 2017 UTC (6 years, 11 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.219.2.1: +15 -9 lines
Diff to previous 1.219.2.1 (colored) to branchpoint 1.219 (colored) next main 1.220 (colored) to selected 1.163 (colored)

Sync with HEAD

Revision 1.220.2.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:54:08 2017 UTC (6 years, 11 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.220: +16 -9 lines
Diff to previous 1.220 (colored) next main 1.221 (colored) to selected 1.163 (colored)

Sync with HEAD

Revision 1.226 / (download) - annotate - [select for diffs], Mon Apr 17 08:34:27 2017 UTC (7 years ago) by hannken
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, bouyer-socketcan-base1
Changes since 1.225: +3 -1 lines
Diff to previous 1.225 (colored) to selected 1.163 (colored)

Add vfs_trybusy() and mountlist_iterator_trynext() and use it for the syncer.

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

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

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

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

Revision 1.223 / (download) - annotate - [select for diffs], Mon Apr 17 08:29:58 2017 UTC (7 years ago) by hannken
Branch: MAIN
Changes since 1.222: +2 -6 lines
Diff to previous 1.222 (colored) to selected 1.163 (colored)

Cleanup after mountlist iterator:
- remove now unused field mnt_list.
- rename mount_list to mountlist and make it local to vfs_mount.c.
- make mountlist_lock local to vfs_mount.c.

Change pstat.c to retrieve vnodes by lru lists.

Revision 1.222 / (download) - annotate - [select for diffs], Tue Apr 11 07:46:37 2017 UTC (7 years ago) by hannken
Branch: MAIN
Changes since 1.221: +8 -1 lines
Diff to previous 1.221 (colored) to selected 1.163 (colored)

Add an iterator over the currently mounted file systems.

Ride 7.99.68

Revision 1.219.2.1 / (download) - annotate - [select for diffs], Mon Mar 20 06:57:53 2017 UTC (7 years ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.219: +4 -2 lines
Diff to previous 1.219 (colored) to selected 1.163 (colored)

Sync with HEAD

Revision 1.221 / (download) - annotate - [select for diffs], Mon Mar 6 10:10:07 2017 UTC (7 years, 1 month ago) by hannken
Branch: MAIN
CVS Tags: pgoyette-localcount-20170320, jdolecek-ncq-base, jdolecek-ncq
Changes since 1.220: +2 -1 lines
Diff to previous 1.220 (colored) to selected 1.163 (colored)

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

Welcome to 7.99.65

Revision 1.215.4.4 / (download) - annotate - [select for diffs], Sun Feb 5 13:41:01 2017 UTC (7 years, 2 months ago) by skrll
Branch: nick-nhusb
Changes since 1.215.4.3: +3 -2 lines
Diff to previous 1.215.4.3 (colored) to branchpoint 1.215 (colored) to selected 1.163 (colored)

Sync with HEAD

Revision 1.220 / (download) - annotate - [select for diffs], Wed Jan 11 09:07:57 2017 UTC (7 years, 3 months ago) by hannken
Branch: MAIN
CVS Tags: nick-nhusb-base-20170204, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Changes since 1.219: +3 -2 lines
Diff to previous 1.219 (colored) to selected 1.163 (colored)

Move vnode member v_mntvnodes as vi_mntvnodes to vnode_impl.h.

Add an ugly hack so pstat.c may still traverse the list.

Revision 1.219 / (download) - annotate - [select for diffs], Thu Jul 7 06:55:44 2016 UTC (7 years, 9 months ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, localcount-20160914
Branch point for: pgoyette-localcount
Changes since 1.218: +2 -2 lines
Diff to previous 1.218 (colored) to selected 1.163 (colored)

KNF. Remove extra spaces. No functional change.

Revision 1.215.4.3 / (download) - annotate - [select for diffs], Sun Dec 27 12:10:18 2015 UTC (8 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.215.4.2: +2 -2 lines
Diff to previous 1.215.4.2 (colored) to branchpoint 1.215 (colored) to selected 1.163 (colored)

Sync with HEAD (as of 26th Dec)

Revision 1.218 / (download) - annotate - [select for diffs], Fri Oct 23 19:40:10 2015 UTC (8 years, 5 months ago) by maxv
Branch: MAIN
CVS Tags: nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226
Changes since 1.217: +2 -2 lines
Diff to previous 1.217 (colored) to selected 1.163 (colored)

Change do_sys_mount() so that it only takes as argument the type of the
drive instead of its associated vfsops. Makes it more friendly, and allows
compat binaries to autoload VFS modules if needed.

sent on tech-kern@, ok christos@

Revision 1.215.4.2 / (download) - annotate - [select for diffs], Sat Jun 6 14:40:30 2015 UTC (8 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.215.4.1: +12 -2 lines
Diff to previous 1.215.4.1 (colored) to branchpoint 1.215 (colored) to selected 1.163 (colored)

Sync with HEAD

Revision 1.217 / (download) - annotate - [select for diffs], Wed May 6 15:57:08 2015 UTC (8 years, 11 months ago) by hannken
Branch: MAIN
CVS Tags: nick-nhusb-base-20150921, nick-nhusb-base-20150606
Changes since 1.216: +12 -2 lines
Diff to previous 1.216 (colored) to selected 1.163 (colored)

Remove miscfs/syncfs and

- move the syncer into kern/vfs_subr.c.

- change the syncer to process the mountlist and VFS_SYNC as appropriate.

- use an API for mount points similiar to the API for vnodes:
  - vfs_syncer_add_to_worklist(struct mount *mp) to add
  - vfs_syncer_remove_from_worklist(struct mount *mp) to remove a mount.

No objections on tech-kern@

Revision 1.215.4.1 / (download) - annotate - [select for diffs], Mon Apr 6 15:18:32 2015 UTC (9 years ago) by skrll
Branch: nick-nhusb
Changes since 1.215: +10 -1 lines
Diff to previous 1.215 (colored) to selected 1.163 (colored)

Sync with HEAD

Revision 1.216 / (download) - annotate - [select for diffs], Tue Mar 17 09:38:21 2015 UTC (9 years, 1 month ago) by hannken
Branch: MAIN
CVS Tags: nick-nhusb-base-20150406
Changes since 1.215: +10 -1 lines
Diff to previous 1.215 (colored) to selected 1.163 (colored)

Add new operation "vcache_new()" to allocate and initialise a new
vnode/fsnode pair:

int
vcache_new(struct mount *mp, struct vnode *dvp, struct vattr *vap,
    kauth_cred_t cred, struct vnode **vpp)

where dvp is the (referenced) directory where we want to create the
new node, vap passes va_type, va_mode and possibly va_rdev and cred
gives the credentials to setup uid/guid.

The node returned from vcache_new() is referenced, fully initialised
and has link count zero.

Welcome to NetBSD 7.99.7

Revision 1.207.6.5 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:44 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.207.6.4: +16 -4 lines
Diff to previous 1.207.6.4 (colored) to branchpoint 1.207 (colored) to selected 1.163 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.212.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:56:54 2014 UTC (9 years, 8 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.212: +10 -3 lines
Diff to previous 1.212 (colored) next main 1.213 (colored) to selected 1.163 (colored)

Rebase.

Revision 1.215 / (download) - annotate - [select for diffs], Sat Jun 28 22:27:50 2014 UTC (9 years, 9 months ago) by dholland
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Branch point for: nick-nhusb
Changes since 1.214: +2 -2 lines
Diff to previous 1.214 (colored) to selected 1.163 (colored)

Revert the following changes:

   src/sys/sys/quotactl.h 1.37
   src/sys/compat/netbsd32/netbsd32.h 1.101
   src/sys/compat/netbsd32/netbsd32_netbsd.c 1.188, 1.189
   src/sys/kern/vfs_quotactl.c 1.39
   src/sys/kern/vfs_syscalls.c 1.483
   src/sys/ufs/lfs/ulfs_quota.c 1.11
   src/sys/ufs/ufs/ufs_quota.c 1.116
   src/lib/libquota/quota_kernel.c 1.5

and do them correctly.

If you're going to change the name of something, you need to change
the name of *all* the things with the same name, not just a handful,
and you should change it to something similar so it still matches the
rest of the system rather than just picking an arbitrarily different
name.

Hi, Joerg.

To wit, rename the quotactl "delete" operation to "del", because
"delete" is a reserved word in C++ and for some reason Joerg wants to
run internal interfaces used only by C code through his C++ compiler.
Do not rename it to "remove" instead, because this doesn't match
libquota or the rest of the usage throughout the system; and rename
all the related identifiers, not just the ones that blew the mind of
Joerg's C++ compiler.

Because this is not a user-facing API (the only userland consumer
sys/quotactl.h is libquota) it is sort of ok to make arbitrary
source-incompatible changes; however, by the same token it's completely
unnecessary. If it *were* a user-facing API that someone might have a
semi-rational reason to want to run a C++ compiler on, it would be
incorrect to change it at this point.

Revision 1.214 / (download) - annotate - [select for diffs], Sat May 24 16:34:03 2014 UTC (9 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.213: +3 -2 lines
Diff to previous 1.213 (colored) to selected 1.163 (colored)

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

Revision 1.201.2.3 / (download) - annotate - [select for diffs], Thu May 22 11:41:18 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.201.2.2: +17 -6 lines
Diff to previous 1.201.2.2 (colored) to branchpoint 1.201 (colored) next main 1.202 (colored) to selected 1.163 (colored)

sync with head.

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

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

Revision 1.209.4.1 / (download) - annotate - [select for diffs], Sun May 18 17:46:21 2014 UTC (9 years, 11 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.209: +15 -4 lines
Diff to previous 1.209 (colored) next main 1.210 (colored) to selected 1.163 (colored)

sync with head

Revision 1.213 / (download) - annotate - [select for diffs], Thu May 8 08:21:53 2014 UTC (9 years, 11 months ago) by hannken
Branch: MAIN
CVS Tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base
Changes since 1.212: +7 -1 lines
Diff to previous 1.212 (colored) to selected 1.163 (colored)

Add a global vnode cache:

- vcache_get() retrieves a referenced and initialised vnode / fs node pair.
- vcache_remove() removes a vnode / fs node pair from the cache.

On cache miss vcache_get() calls new vfs operation vfs_loadvnode() to
initialise a vnode / fs node pair.  This call is guaranteed exclusive,
no other thread will try to load this vnode / fs node pair.

Convert ufs/ext2fs, ufs/ffs and ufs/mfs to use this interface.

Remove now unused ufs/ufs_ihash

Discussed on tech-kern.

Welcome to 6.99.41

Revision 1.212 / (download) - annotate - [select for diffs], Wed Mar 5 09:37:29 2014 UTC (10 years, 1 month ago) by hannken
Branch: MAIN
CVS Tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Changes since 1.211: +6 -1 lines
Diff to previous 1.211 (colored) to selected 1.163 (colored)

Current support for iterating over mnt_vnodelist is rudimentary.  Every
caller has to care about list and vnode mutexes, reference count being zero,
intermediate vnode states like VI_CLEAN, VI_XLOCK, VI_MARKER and so on.

Add an interface to iterate over a vnode list:

void vfs_vnode_iterator_init(struct mount *mp, struct vnode_iterator **marker)
void vfs_vnode_iterator_destroy(struct vnode_iterator *marker)
bool vfs_vnode_iterator_next(struct vnode_iterator *marker, struct vnode **vpp)

vfs_vnode_iterator_next() returns either "false / *vpp == NULL" when done
or "true / *vpp != NULL" to return the next referenced vnode from the list.

To make vrecycle() work in this environment change it to

bool vrecycle(struct vnode *vp)

where "vp" is a referenced vnode to be destroyed if this is the last reference.

Discussed on tech-kern.

Welcome to 6.99.34

Revision 1.211 / (download) - annotate - [select for diffs], Thu Feb 27 13:00:06 2014 UTC (10 years, 1 month ago) by hannken
Branch: MAIN
Changes since 1.210: +1 -2 lines
Diff to previous 1.210 (colored) to selected 1.163 (colored)

Currently dead vnodes still reside on the vnodelist of the file system
they have been removed from.

Create a "dead mount" that takes dead vnodes until they get freed.

Discussed on tech-kern.

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

change the mountlist CIRCLEQ into a TAILQ

Revision 1.207.6.4 / (download) - annotate - [select for diffs], Sun Jun 23 06:20:29 2013 UTC (10 years, 9 months ago) by tls
Branch: tls-maxphys
Changes since 1.207.6.3: +4 -4 lines
Diff to previous 1.207.6.3 (colored) to branchpoint 1.207 (colored) to selected 1.163 (colored)

resync from head

Revision 1.209 / (download) - annotate - [select for diffs], Fri Apr 26 22:27:16 2013 UTC (10 years, 11 months ago) by mlelstv
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900
Branch point for: rmind-smpnet
Changes since 1.208: +3 -3 lines
Diff to previous 1.208 (colored) to selected 1.163 (colored)

Correct umount semantics to return EBUSY when a filesystem is busy
instead of failing filesystem operations with EBUSY when attempting
an umount.
This fixes kern/38141.

Revision 1.207.6.3 / (download) - annotate - [select for diffs], Sun Feb 10 16:26:34 2013 UTC (11 years, 2 months ago) by tls
Branch: tls-maxphys
Changes since 1.207.6.2: +2 -1 lines
Diff to previous 1.207.6.2 (colored) to branchpoint 1.207 (colored) to selected 1.163 (colored)


Add an accessor -- ufs_maxphys() -- to check the maximum transfer size
for a given UFS mountpoint, and move the code from mount that finds
the underlying disk and resets the mountpoint max transfer size into a
utility function, ufs_update_maxphys().

Add a global serial number that counts disk property changes to which
filesystems are meant to accomodate themselves.  Make ufs_maxphys()
check it.  This is a sort of flag-polling interface that avoids callbacks
into the filesystem code, but will require freezing filesystems and
draining in-flight transactions before a decrease in size that is
mandatory (like attaching a disk with a smaller maximum transfer size
as a spare in a RAIDframe set), rather than "advisory", like finding
out set geometry from a RAID controller long after boot and deciding
a smaller transfer size would be optimal, can be signalled.  Still, the
"advisory" case is the common one so this is progress.

Make a bit of an example of RAIDframe by making it bump this new
serial number when disks are added to the subsystem.  I will attack
one of the hardware RAID drivers (probably arcmsr) next.

Revision 1.201.2.2 / (download) - annotate - [select for diffs], Wed Jan 16 05:33:53 2013 UTC (11 years, 3 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.201.2.1: +2 -2 lines
Diff to previous 1.201.2.1 (colored) to branchpoint 1.201 (colored) to selected 1.163 (colored)

sync with (a bit old) head

Revision 1.207.6.2 / (download) - annotate - [select for diffs], Tue Nov 20 03:02:51 2012 UTC (11 years, 4 months ago) by tls
Branch: tls-maxphys
Changes since 1.207.6.1: +2 -2 lines
Diff to previous 1.207.6.1 (colored) to branchpoint 1.207 (colored) to selected 1.163 (colored)

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

Revision 1.207.2.1 / (download) - annotate - [select for diffs], Sun Nov 18 18:42:03 2012 UTC (11 years, 4 months ago) by msaitoh
Branch: netbsd-6
CVS Tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1
Changes since 1.207: +2 -2 lines
Diff to previous 1.207 (colored) next main 1.208 (colored) to selected 1.163 (colored)

Pull up following revision(s) (requested by dholland in ticket #665):
	sys/sys/mount.h: revision 1.208
Fix the prototype of vfs_quotactl() implementations in VFS_PROTOS(),
since it's wrong there. This slipped by because the only
implementation is in ufs, which isn't under a VFS_PROTOS declaration.

Revision 1.208 / (download) - annotate - [select for diffs], Mon Nov 5 17:16:18 2012 UTC (11 years, 5 months ago) by dholland
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, agc-symver-base, agc-symver
Changes since 1.207: +2 -2 lines
Diff to previous 1.207 (colored) to selected 1.163 (colored)

Fix the prototype of vfs_quotactl() implementations in VFS_PROTOS(),
since it's wrong there. This slipped by because the only
implementation is in ufs, which isn't under a VFS_PROTOS declaration.

Revision 1.207.6.1 / (download) - annotate - [select for diffs], Wed Sep 12 06:15:35 2012 UTC (11 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.207: +3 -2 lines
Diff to previous 1.207 (colored) to selected 1.163 (colored)

Initial snapshot of work to eliminate 64K MAXPHYS.  Basically works for
physio (I/O to raw devices); needs more doing to get it going with the
filesystems, but it shouldn't damage data.

All work's been done on amd64 so far.  Not hard to add support to other
ports.  If others want to pitch in, one very helpful thing would be to
sort out when and how IDE disks can do 128K or larger transfers, and
adjust the various PCI IDE (or at least ahcisata) drivers and wd.c
accordingly -- it would make testing much easier.  Another very helpful
thing would be to implement a smart minphys() for RAIDframe along the
lines detailed in the MAXPHYS-NOTES file.

Revision 1.201.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:52 2012 UTC (12 years ago) by yamt
Branch: yamt-pagecache
Changes since 1.201: +31 -5 lines
Diff to previous 1.201 (colored) to selected 1.163 (colored)

sync with head

Revision 1.201.6.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:35:49 2012 UTC (12 years, 2 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.201: +31 -5 lines
Diff to previous 1.201 (colored) next main 1.202 (colored) to selected 1.163 (colored)

merge to -current.

Revision 1.207 / (download) - annotate - [select for diffs], Wed Feb 1 05:34:42 2012 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
CVS Tags: yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, netbsd-6-base, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, 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, netbsd-6-0, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10
Branch point for: tls-maxphys, netbsd-6
Changes since 1.206: +31 -7 lines
Diff to previous 1.206 (colored) to selected 1.163 (colored)

Change the syscall API for quotas over to the new non-proplib one.

   - struct vfs_quotactl_args -> struct quotactl_args
   - add sys/stdint.h to sys/quotactl.h for clean userland build
   - install sys/quotactl.h in /usr/include
   - update set lists for same
   - add new marshalling code in libquota
   - add new unmarshalling code in vfs_syscalls.c
   - discard proplib interpreter code in vfs_quotactl.c
   - add dispatching code for the 14 quotactl ops in vfs_quotactl.c
   - mark the proplib quotactl syscall obsolete
   - add a new syscall number for the new quotactl syscall
   - change the name of the syscall to __quotactl()
   - remove the decl of the old quotactl from quota/quotaprop.h
   - add a decl of the new quotactl to sys/quotactl.h
   - update the libc build
   - update ktruss
   - remove proplib marshalling code from libquota
   - update copy of syscall table in gdb ppc sources
   - hack rumphijack to accomodate new quotactl name (as I recall,
     pooka wanted such a name change to simplify something, but I
     don't really see what/how)

This change appears to require a kernel version bump for rumpish
reasons.

Revision 1.206 / (download) - annotate - [select for diffs], Sun Jan 29 07:14:38 2012 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
Changes since 1.205: +3 -3 lines
Diff to previous 1.205 (colored) to selected 1.163 (colored)

Remove the extra op argument to VFS_QUOTACTL() - the op is now stored
purely in the args structure.

This change requires a kernel version bump.

Revision 1.205 / (download) - annotate - [select for diffs], Sun Jan 29 06:36:06 2012 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
Changes since 1.204: +5 -5 lines
Diff to previous 1.204 (colored) to selected 1.163 (colored)

Introduce struct vfs_quotactl_args. Use it.

This change uglifies vfs_quotactl some in order to make room for
moving operation-specific but FS-independent logic out of ufs_quota.c.

Note: this change requires a kernel version bump.

Revision 1.204 / (download) - annotate - [select for diffs], Sun Jan 29 06:34:57 2012 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
Changes since 1.203: +5 -4 lines
Diff to previous 1.203 (colored) to selected 1.163 (colored)

Move the proplib-based quota command dispatching (that is, the code
that knows the magic string names for the allowed actions) out of
UFS-specific code and to fs-independent code.

This introduces QUOTACTL_* operation codes and changes the signature
of VFS_QUOTACTL() again for compile safety.

Note: this change requires a kernel version bump.

Revision 1.203 / (download) - annotate - [select for diffs], Sun Jan 29 06:32:43 2012 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
Changes since 1.202: +3 -3 lines
Diff to previous 1.202 (colored) to selected 1.163 (colored)

Move the code for iterating over the multiple RPC calls in a quota
proplib XML packet to vfs_quotactl.c out of sys/ufs/ufs.

Add a dummy extra arg to VFS_QUOTACTL for compile safety.

Note: this change requires a kernel version bump.

Revision 1.202 / (download) - annotate - [select for diffs], Sun Jan 29 06:29:04 2012 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
Changes since 1.201: +2 -1 lines
Diff to previous 1.201 (colored) to selected 1.163 (colored)

Add vfs_quotactl() in between the syscall and VFS_QUOTACTL. Call it
from the COMPAT_50 code as well as the current sys_quotactl instead
of going directly to VFS_QUOTACTL. Doesn't actually do anything yet.

Revision 1.201 / (download) - annotate - [select for diffs], Wed Oct 12 23:04:22 2011 UTC (12 years, 6 months ago) by dholland
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, jmcneill-usbmp
Changes since 1.200: +2 -1 lines
Diff to previous 1.200 (colored) to selected 1.163 (colored)

As a precaution, add sys/param.h explicitly to some headers that will
no longer get it via sys/ucred.h and don't already include it
explicitly. These should in turn be removed when it can be confirmed
that it's safe to do so. (Because sys/param.h is full of things that
are often tested with #if, it's not in general safe to remove it
without checking, as such tests fail silently if the symbol goes
missing.)

Revision 1.200 / (download) - annotate - [select for diffs], Mon Jun 27 11:52:24 2011 UTC (12 years, 9 months ago) by uch
Branch: MAIN
Changes since 1.199: +2 -1 lines
Diff to previous 1.199 (colored) to selected 1.163 (colored)

7th Edition(V7) File System support. and NetBSD symbolic-link, socket, FIFO extension. see newfs_v7fs(8).

Revision 1.196.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:10:11 2011 UTC (12 years, 10 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.196: +9 -6 lines
Diff to previous 1.196 (colored) next main 1.197 (colored) to selected 1.163 (colored)

Sync with HEAD.

Revision 1.195.4.2 / (download) - annotate - [select for diffs], Thu Apr 21 01:42:18 2011 UTC (12 years, 11 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.195.4.1: +9 -6 lines
Diff to previous 1.195.4.1 (colored) to branchpoint 1.195 (colored) next main 1.196 (colored) to selected 1.163 (colored)

sync with head

Revision 1.199 / (download) - annotate - [select for diffs], Sat Apr 2 04:57:35 2011 UTC (13 years ago) by rmind
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base, cherry-xenmp
Changes since 1.198: +1 -3 lines
Diff to previous 1.198 (colored) to selected 1.163 (colored)

Remove unused M_MOUNT.

Revision 1.198 / (download) - annotate - [select for diffs], Sat Apr 2 04:28:57 2011 UTC (13 years ago) by rmind
Branch: MAIN
Changes since 1.197: +5 -1 lines
Diff to previous 1.197 (colored) to selected 1.163 (colored)

Split off parts of vfs_subr.c into vfs_vnode.c and vfs_mount.c modules.

No functional change.  Discussed on tech-kern@.

Revision 1.197 / (download) - annotate - [select for diffs], Sun Mar 6 17:08:38 2011 UTC (13 years, 1 month ago) by bouyer
Branch: MAIN
Changes since 1.196: +5 -4 lines
Diff to previous 1.196 (colored) to selected 1.163 (colored)

merge the bouyer-quota2 branch. This adds a new on-disk format
to store disk quota usage and limits, integrated with ffs
metadata. Usage is checked by fsck_ffs (no more quotacheck)
and is covered by the WAPBL journal. Enabled with kernel
option QUOTA2 (added where QUOTA was enabled in kernel config files),
turned on with tunefs(8) on a per-filesystem
basis. mount_mfs(8) can also turn quotas on.

See http://mail-index.netbsd.org/tech-kern/2011/02/19/msg010025.html
for details.

Revision 1.196.4.1 / (download) - annotate - [select for diffs], Thu Jan 20 14:25:01 2011 UTC (13 years, 2 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.196: +5 -4 lines
Diff to previous 1.196 (colored) next main 1.197 (colored) to selected 1.163 (colored)

Snapshot of work in progress on a modernised disk quota system:
- new quotactl syscall (versionned for backward compat), which takes
  as parameter a path to a mount point, and a prop_dictionary
  (in plistref format) describing commands and arguments.
  For each command, status and data are returned as a prop_dictionary.
  quota commands features will be added to take advantage of this,
  exporting quota data or getting quota commands as plists.

- new on disk-format storage (all 64bit wide), integrated to metadata for
  ffs (and playing nicely with wapbl).
  Quotas are enabled on a ffs filesystem via superblock flags.
  tunefs(8) can enable or disable quotas.
  On a quota-enabled filesystem, fsck_ffs(8) will track per-uid/gid
  block and inode usages, and will check and update quotas in Pass 6.
  quota usage and limits are stored in unliked files (one for users,
  one for groups)l fsck_ffs(8) will create the files if needed, or
  free them if needed. This means that after enabling or disabling
  quotas on a filesystem; a fsck_ffs(8) run is required.
  quotacheck(8) is not needed any more, on a unclean shutdown
  fsck or journal replay will take care of fixing quotas.
  newfs(8) can create a ready-to-mount quota-enabled filesystem
  (superblock flags are set and quota inodes are created).
  Other new features or semantic changes:
  - default quota datas, applied to users or groups which don't already
    have a quota entry
  - per-user/group grace time (instead of a filesystem global one)
  - 0 really means "nothing allowed at all", not "no limit".
    If you want "no limit", set the limit to UQUAD_MAX (tools will
    understand "unlimited" and "-")

  A quota file is structured as follow:
  it starts with a header, containing a few per-filesystem values,
  and the default quota limits.
  Quota entries are linked together as a simple list, each entry has a
  pointer (as an offset withing the file) to the next.
  The header has a pointer to a list of free quota entries, and
  a hash table of in-use entries. The size of the hash table depends
  on the filesystem block size (header+hash table should fit in the
  first block). The file is not sparse and is a multiple of
  filesystem block size (when the free quota entry list is empty a new
  filesystem block is allocated). quota entries to not cross
  filesystem block boundaries.

  In memory, the kernel keeps a cache of recently used quota entries
  as a reference to the block number, and offset withing the block.
  The quota entry itself is keept in the buf cache.

fsck_ffs(8), tunefs(8) and newfs(8) supports are completed (with
related atf tests :)
The kernel can update disk usage and report it via quotactl(2).

Todo: enforce quotas limits (limits are not checked by kernel yet)
      update repquota, edquota and rpc.rquotad to the new world
      implement compat_50_quotactl ioctl.
      update quotactl(2) man page

fsck_ffs required fixes so that allocating new blocks or inodes will
properly update the superblock and cg sumaries. This was not an issue up
to now because superblock and cg sumaries check happened last, but now
allocations or frees can happen in pass 6.

Revision 1.195.2.3 / (download) - annotate - [select for diffs], Tue Aug 17 06:48:08 2010 UTC (13 years, 8 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.195.2.2: +2 -0 lines
Diff to previous 1.195.2.2 (colored) to branchpoint 1.195 (colored) next main 1.196 (colored) to selected 1.163 (colored)

Sync with HEAD.

Revision 1.173.10.6 / (download) - annotate - [select for diffs], Wed Aug 11 22:55:11 2010 UTC (13 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.173.10.5: +3 -1 lines
Diff to previous 1.173.10.5 (colored) to branchpoint 1.173 (colored) next main 1.174 (colored) to selected 1.163 (colored)

sync with head.

Revision 1.195.4.1 / (download) - annotate - [select for diffs], Sat Jul 3 01:20:03 2010 UTC (13 years, 9 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.195: +3 -1 lines
Diff to previous 1.195 (colored) to selected 1.163 (colored)

sync with head

Revision 1.196 / (download) - annotate - [select for diffs], Sun May 30 02:26:37 2010 UTC (13 years, 10 months ago) by dholland
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base7, uebayasi-xip-base6, uebayasi-xip-base5, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, matt-mips64-premerge-20101231, jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base
Branch point for: jruoho-x86intr, bouyer-quota2
Changes since 1.195: +3 -1 lines
Diff to previous 1.195 (colored) to selected 1.163 (colored)

Uses timespec and uio_seg from sys/time.h and sys/uio.h; include those
explicitly instead of by accident.

Revision 1.195.2.2 / (download) - annotate - [select for diffs], Tue Mar 23 01:58:13 2010 UTC (14 years ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.195.2.1: +0 -2 lines
Diff to previous 1.195.2.1 (colored) to branchpoint 1.195 (colored) to selected 1.163 (colored)

Put run-time XIP-specific per-mount data in struct specdev, not struct mount.

Revision 1.173.10.5 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:42 2010 UTC (14 years, 1 month ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.173.10.4: +4 -7 lines
Diff to previous 1.173.10.4 (colored) to branchpoint 1.173 (colored) to selected 1.163 (colored)

sync with head

Revision 1.195.2.1 / (download) - annotate - [select for diffs], Thu Feb 11 05:20:28 2010 UTC (14 years, 2 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.195: +3 -1 lines
Diff to previous 1.195 (colored) to selected 1.163 (colored)

XIP glues in struct mount and struct vnode.

Revision 1.195 / (download) - annotate - [select for diffs], Sat Dec 5 20:11:18 2009 UTC (14 years, 4 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, uebayasi-xip-base1, uebayasi-xip-base, matt-premerge-20091211
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.194: +1 -3 lines
Diff to previous 1.194 (colored) to selected 1.163 (colored)

Remove the portalfs kernel file system driver.  Replace mount_portal(8)
with a version based on puffs.  User functionality remains the same.

Revision 1.194 / (download) - annotate - [select for diffs], Fri Nov 27 16:46:06 2009 UTC (14 years, 4 months ago) by pooka
Branch: MAIN
Changes since 1.193: +1 -5 lines
Diff to previous 1.193 (colored) to selected 1.163 (colored)

g/c unused protos

Revision 1.193 / (download) - annotate - [select for diffs], Thu Nov 26 14:29:09 2009 UTC (14 years, 4 months ago) by pooka
Branch: MAIN
Changes since 1.192: +2 -1 lines
Diff to previous 1.192 (colored) to selected 1.163 (colored)

add MOUNT_RUMPFS

Revision 1.192 / (download) - annotate - [select for diffs], Mon Oct 5 04:20:13 2009 UTC (14 years, 6 months ago) by elad
Branch: MAIN
CVS Tags: jym-xensuspend-nbase
Changes since 1.191: +3 -1 lines
Diff to previous 1.191 (colored) to selected 1.163 (colored)

- Add usermount_common_policy() that implements some common (everything
  but access control) user mounting policies: enforced MNT_NOSUID and
  MNT_NODEV, no MNT_EXPORT, MNT_EXEC propagation. This can be useful for
  secmodels that are interested in simply adding finer grained user mount
  support.

- Add a mount subsystem listener for KAUTH_REQ_SYSTEM_MOUNT_GET.

Revision 1.173.10.4 / (download) - annotate - [select for diffs], Wed Aug 19 18:48:33 2009 UTC (14 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.173.10.3: +2 -1 lines
Diff to previous 1.173.10.3 (colored) to branchpoint 1.173 (colored) to selected 1.163 (colored)

sync with head.

Revision 1.186.2.2 / (download) - annotate - [select for diffs], Thu Jul 23 23:32:56 2009 UTC (14 years, 8 months ago) by jym
Branch: jym-xensuspend
Changes since 1.186.2.1: +5 -1 lines
Diff to previous 1.186.2.1 (colored) to branchpoint 1.186 (colored) next main 1.187 (colored) to selected 1.163 (colored)

Sync with HEAD.

Revision 1.191 / (download) - annotate - [select for diffs], Sat Jul 18 16:31:43 2009 UTC (14 years, 9 months ago) by reinoud
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, jymxensuspend-base
Changes since 1.190: +2 -1 lines
Diff to previous 1.190 (colored) to selected 1.163 (colored)

Import read-only part of the NiLFS (v2) implementation for NetBSD. It has been
tested with a DEBUG+DIAGNOSTIC+LOCKDEBUG kernel. To summerise NiLFS, i'll
repeat my posting to tech-kern here:

NiLFS stands for New implementation of Logging File System; LFS done
right they claim :) It is at version 2 now and is being developed by NTT, the
Japanese telecom company and recently put into the linux source tree. See
http://www.nilfs.org. The on-disc format is not completely frozen and i expect
at least one minor revision to come in time.

The benefits of NiLFS are build-in fine-grained checkpointing, persistent
snapshots, multiple mounts and very large file and media support. Every
checkpoint can be transformed into a snapshot and v.v. It is said to perform
very well on flash media since it is not overwriting pieces apart from a
incidental update of the superblock, but that might change. It is accompanied
by a cleaner to clean up the segments and recover lost space.

My work is not a port of the linux code; its a new implementation. Porting the
code would be more work since its very linux oriented and never written to be
ported outside linux. The goal is to be fully interchangable. The code is non
intrusive to other parts of the kernel. It is also very light-weight.

The current state of the code is read-only access to both clean and dirty
NiLFS partitions. On mounting a dirty partition it rolls forward the log to
the last checkpoint. Full read-write support is however planned!

Just as the linux code, mount_nilfs allows for the `head' to be mounted
read/write and allows multiple read-only snapshots/checkpoint mounts next to
it.

By allowing the RW mount at a different snapshot for read-write it should be
possible eventually to revert back to a previous state; i.e. try to upgrade a
system and being able to revert to the exact state prior to the upgrade.

Compared to other FS's its pretty light-weight, suitable for embedded use and
on flash media. The read-only code is currently 17kb object code on
NetBSD/i386. I doubt the read-write code will surpass the 50 or 60. Compared
this to FFS being 156kb, UDF being 84 kb and NFS being 130kb. Run-time memory
usage is most likely not very different from other uses though maybe a bit
higher than FFS.

Revision 1.173.10.3 / (download) - annotate - [select for diffs], Sat Jul 18 14:53:27 2009 UTC (14 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.173.10.2: +4 -1 lines
Diff to previous 1.173.10.2 (colored) to branchpoint 1.173 (colored) to selected 1.163 (colored)

sync with head.

Revision 1.190 / (download) - annotate - [select for diffs], Fri Jun 26 16:55:46 2009 UTC (14 years, 9 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base6
Changes since 1.189: +4 -1 lines
Diff to previous 1.189 (colored) to selected 1.163 (colored)

For use in subsequent commits, add a 64-bit generation number to
struct mount, and add prototypes for vfs_sync_all() and for
vfs_unmount_forceone().

Revision 1.186.2.1 / (download) - annotate - [select for diffs], Wed May 13 17:23:03 2009 UTC (14 years, 11 months ago) by jym
Branch: jym-xensuspend
Changes since 1.186: +4 -3 lines
Diff to previous 1.186 (colored) to selected 1.163 (colored)

Sync with HEAD.

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

Revision 1.173.10.2 / (download) - annotate - [select for diffs], Mon May 4 08:14:35 2009 UTC (14 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.173.10.1: +63 -7 lines
Diff to previous 1.173.10.1 (colored) to branchpoint 1.173 (colored) to selected 1.163 (colored)

sync with head.

Revision 1.189 / (download) - annotate - [select for diffs], Wed Apr 29 15:44:55 2009 UTC (14 years, 11 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, jym-xensuspend-base
Changes since 1.188: +2 -1 lines
Diff to previous 1.188 (colored) to selected 1.163 (colored)

Extract vfs_unmountall1() from vfs_unmountall() for reuse.

Revision 1.188 / (download) - annotate - [select for diffs], Wed Apr 29 10:46:46 2009 UTC (14 years, 11 months ago) by martin
Branch: MAIN
CVS Tags: nick-hppapmap-base4
Changes since 1.187: +2 -2 lines
Diff to previous 1.187 (colored) to selected 1.163 (colored)

Add missing prototype for vfs_mountalloc().

Revision 1.181.2.2 / (download) - annotate - [select for diffs], Tue Apr 28 07:37:53 2009 UTC (14 years, 11 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.181.2.1: +2 -2 lines
Diff to previous 1.181.2.1 (colored) to branchpoint 1.181 (colored) next main 1.182 (colored) to selected 1.163 (colored)

Sync with HEAD.

Revision 1.187 / (download) - annotate - [select for diffs], Fri Apr 17 20:22:52 2009 UTC (15 years ago) by dyoung
Branch: MAIN
CVS Tags: nick-hppapmap-base3, nick-hppapmap-base
Changes since 1.186: +2 -2 lines
Diff to previous 1.186 (colored) to selected 1.163 (colored)

Make vfs_unmountall() return true if it was able to unmount any
filesystem at all, false otherwise.  This will support tearing down
stacks of filesystems, ccd(4), raid(4), and vnd(4).

Change the misleading variable name 'allerror' to 'any_error'.  Make it
a bool.

Revision 1.181.2.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:20:30 2009 UTC (15 years, 3 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.181: +14 -3 lines
Diff to previous 1.181 (colored) to selected 1.163 (colored)

Sync with HEAD.

Revision 1.173.6.4 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:40 2009 UTC (15 years, 3 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.173.6.3: +13 -2 lines
Diff to previous 1.173.6.3 (colored) to branchpoint 1.173 (colored) next main 1.174 (colored) to selected 1.163 (colored)

Sync with HEAD.

Revision 1.186 / (download) - annotate - [select for diffs], Sun Jan 11 02:45:55 2009 UTC (15 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: nick-hppapmap-base2, mjf-devfs2-base
Branch point for: jym-xensuspend
Changes since 1.185: +2 -2 lines
Diff to previous 1.185 (colored) to selected 1.163 (colored)

merge christos-time_t

Revision 1.181.6.4 / (download) - annotate - [select for diffs], Sat Dec 27 23:14:25 2008 UTC (15 years, 3 months ago) by christos
Branch: christos-time_t
Changes since 1.181.6.3: +1 -1 lines
Diff to previous 1.181.6.3 (colored) to branchpoint 1.181 (colored) next main 1.182 (colored) to selected 1.163 (colored)

merge with head.

Revision 1.179.4.2 / (download) - annotate - [select for diffs], Sat Dec 13 01:15:35 2008 UTC (15 years, 4 months ago) by haad
Branch: haad-dm
Changes since 1.179.4.1: +13 -2 lines
Diff to previous 1.179.4.1 (colored) to branchpoint 1.179 (colored) next main 1.180 (colored) to selected 1.163 (colored)

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

Revision 1.185 / (download) - annotate - [select for diffs], Mon Nov 24 12:33:40 2008 UTC (15 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: haad-nbase2, haad-dm-base2, haad-dm-base, christos-time_t-nbase, christos-time_t-base, ad-audiomp2-base, ad-audiomp2
Changes since 1.184: +1 -3 lines
Diff to previous 1.184 (colored) to selected 1.163 (colored)

Back out previous for the moment.

Revision 1.184 / (download) - annotate - [select for diffs], Mon Nov 24 11:35:18 2008 UTC (15 years, 4 months ago) by ad
Branch: MAIN
Changes since 1.183: +3 -1 lines
Diff to previous 1.183 (colored) to selected 1.163 (colored)

Add some spare fields to struct vfsops. Available for use the next time the
kernel version is bumped.

Revision 1.181.6.3 / (download) - annotate - [select for diffs], Thu Nov 20 20:45:39 2008 UTC (15 years, 4 months ago) by christos
Branch: christos-time_t
Changes since 1.181.6.2: +13 -2 lines
Diff to previous 1.181.6.2 (colored) to branchpoint 1.181 (colored) to selected 1.163 (colored)

merge with head.

Revision 1.183 / (download) - annotate - [select for diffs], Wed Nov 19 18:36:10 2008 UTC (15 years, 4 months ago) by ad
Branch: MAIN
Changes since 1.182: +9 -2 lines
Diff to previous 1.182 (colored) to selected 1.163 (colored)

Make the emulations, exec formats, coredump, NFS, and the NFS server
into modules. By and large this commit:

- shuffles header files and ifdefs
- splits code out where necessary to be modular
- adds module glue for each of the components
- adds/replaces hooks for things that can be installed at runtime

Revision 1.182 / (download) - annotate - [select for diffs], Tue Nov 11 08:29:58 2008 UTC (15 years, 5 months ago) by joerg
Branch: MAIN
Changes since 1.181: +5 -1 lines
Diff to previous 1.181 (colored) to selected 1.163 (colored)

Move WAPL replay handling from bread() into ufs_strategy.
This changes the order of hook processing as the copy-on-write handlers
are called after the journal processing. This makes more sense as the
journal overwrite is logically part of the disk IO.

Revision 1.181.6.2 / (download) - annotate - [select for diffs], Sun Nov 9 01:54:31 2008 UTC (15 years, 5 months ago) by christos
Branch: christos-time_t
Changes since 1.181.6.1: +446 -0 lines
Diff to previous 1.181.6.1 (colored) to branchpoint 1.181 (colored) to selected 1.163 (colored)

fix fhstat
make major and minor ull

Revision 1.179.4.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:18:09 2008 UTC (15 years, 6 months ago) by haad
Branch: haad-dm
Changes since 1.179: +47 -3 lines
Diff to previous 1.179 (colored) to selected 1.163 (colored)

Sync with HEAD.

Revision 1.173.6.3 / (download) - annotate - [select for diffs], Sun Sep 28 10:41:04 2008 UTC (15 years, 6 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.173.6.2: +46 -2 lines
Diff to previous 1.173.6.2 (colored) to branchpoint 1.173 (colored) to selected 1.163 (colored)

Sync with HEAD.

Revision 1.178.2.2 / (download) - annotate - [select for diffs], Thu Sep 18 04:37:05 2008 UTC (15 years, 7 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.178.2.1: +47 -3 lines
Diff to previous 1.178.2.1 (colored) next main 1.179 (colored) to selected 1.163 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.181.6.1, Thu Jul 31 05:38:05 2008 UTC (15 years, 8 months ago) by christos
Branch: christos-time_t
Changes since 1.181: +0 -446 lines
FILE REMOVED

file mount.h was added on branch christos-time_t on 2008-11-09 01:54:31 +0000

Revision 1.181 / (download) - annotate - [select for diffs], Thu Jul 31 05:38:05 2008 UTC (15 years, 8 months ago) by simonb
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, 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, netbsd-5, 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, haad-dm-base1
Branch point for: nick-hppapmap, christos-time_t
Changes since 1.180: +45 -1 lines
Diff to previous 1.180 (colored) to selected 1.163 (colored)

Merge the simonb-wapbl branch.  From the original branch commit:

   Add Wasabi System's WAPBL (Write Ahead Physical Block Logging)
   journaling code.  Originally written by Darrin B. Jewell while
   at Wasabi and updated to -current by Antti Kantee, Andy Doran,
   Greg Oster and Simon Burge.

OK'd by core@, releng@.

Revision 1.179.2.2 / (download) - annotate - [select for diffs], Thu Jul 31 04:51:05 2008 UTC (15 years, 8 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.179.2.1: +3 -3 lines
Diff to previous 1.179.2.1 (colored) to branchpoint 1.179 (colored) next main 1.180 (colored) to selected 1.163 (colored)

Sync with head.

Revision 1.180 / (download) - annotate - [select for diffs], Wed Jul 30 18:10:38 2008 UTC (15 years, 8 months ago) by pooka
Branch: MAIN
CVS Tags: simonb-wapbl-nbase, simonb-wapbl-base
Changes since 1.179: +3 -3 lines
Diff to previous 1.179 (colored) to selected 1.163 (colored)

Nuke __VFSOPS_EXPOSE, it hasn't been used in ages.

Revision 1.178.2.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:32:02 2008 UTC (15 years, 9 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.178: +5 -4 lines
Diff to previous 1.178 (colored) to selected 1.163 (colored)

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

Revision 1.179.2.1 / (download) - annotate - [select for diffs], Tue Jun 10 14:51:23 2008 UTC (15 years, 10 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.179: +45 -1 lines
Diff to previous 1.179 (colored) to selected 1.163 (colored)

Initial commit of Wasabi System's WAPBL (Write Ahead Physical Block
Logging) journaling code.  Originally written by Darrin B. Jewell
while at Wasabi and updated to -current by Antti Kantee, Andy Doran,
Greg Oster and Simon Burge.

Still a number of issues - look in doc/BRANCHES for "simonb-wapbl"
for more info.

Revision 1.173.6.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:33 2008 UTC (15 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.173.6.1: +14 -11 lines
Diff to previous 1.173.6.1 (colored) to branchpoint 1.173 (colored) to selected 1.163 (colored)

Sync with HEAD.

Revision 1.173.8.1 / (download) - annotate - [select for diffs], Sun May 18 12:35:49 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-pf42
Changes since 1.173: +14 -11 lines
Diff to previous 1.173 (colored) next main 1.174 (colored) to selected 1.163 (colored)

sync with head.

Revision 1.173.10.1 / (download) - annotate - [select for diffs], Fri May 16 02:25:51 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.173: +14 -11 lines
Diff to previous 1.173 (colored) to selected 1.163 (colored)

sync with head.

Revision 1.179 / (download) - annotate - [select for diffs], Sat May 10 02:26:10 2008 UTC (15 years, 11 months ago) by rumble
Branch: 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
Changes since 1.178: +5 -4 lines
Diff to previous 1.178 (colored) to selected 1.163 (colored)

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

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

Quick sanity check by ad@.

Revision 1.178 / (download) - annotate - [select for diffs], Tue May 6 18:43:45 2008 UTC (15 years, 11 months ago) by ad
Branch: MAIN
Branch point for: wrstuden-revivesa
Changes since 1.177: +5 -9 lines
Diff to previous 1.177 (colored) to selected 1.163 (colored)

PR kern/38141 lookup/vfs_busy acquire rwlock recursively

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

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

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

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

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

Revision 1.177 / (download) - annotate - [select for diffs], Thu May 1 16:05:13 2008 UTC (15 years, 11 months ago) by cegger
Branch: MAIN
Changes since 1.176: +2 -1 lines
Diff to previous 1.176 (colored) to selected 1.163 (colored)

build fix: <sys/condvar.h> is needed for 'extern kcondvar_t mount_cv'. From Hans Rosenfeld.
ok simonb

Revision 1.176 / (download) - annotate - [select for diffs], Wed Apr 30 12:49:17 2008 UTC (15 years, 11 months ago) by ad
Branch: MAIN
Changes since 1.175: +3 -3 lines
Diff to previous 1.175 (colored) to selected 1.163 (colored)

PR kern/38135 vfs_busy/vfs_trybusy confusion

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

Revision 1.175 / (download) - annotate - [select for diffs], Tue Apr 29 23:51:05 2008 UTC (15 years, 11 months ago) by ad
Branch: MAIN
Changes since 1.174: +7 -5 lines
Diff to previous 1.174 (colored) to selected 1.163 (colored)

kern/38135 vfs_busy/vfs_trybusy confusion

The symptom was that sometimes file systems would occasionally not appear
in output from 'df' or 'mount' if the system was busy. Resolution:

- Make mount locks work somewhat like vm_map locks.
- vfs_trybusy() now only fails if the mount is gone, or if someone is
  unmounting the file system. Simple contention on mnt_lock doesn't
  cause it to fail.
- vfs_busy() will wait even if the file system is being unmounted.

Revision 1.174 / (download) - annotate - [select for diffs], Tue Apr 29 18:18:09 2008 UTC (15 years, 11 months ago) by ad
Branch: MAIN
Changes since 1.173: +5 -2 lines
Diff to previous 1.173 (colored) to selected 1.163 (colored)

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

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

Revision 1.165.4.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:05:10 2008 UTC (16 years ago) by matt
Branch: matt-armv6
Changes since 1.165.4.2: +19 -12 lines
Diff to previous 1.165.4.2 (colored) to branchpoint 1.165 (colored) next main 1.166 (colored) to selected 1.163 (colored)

sync with HEAD

Revision 1.173.6.1 / (download) - annotate - [select for diffs], Thu Feb 21 20:44:55 2008 UTC (16 years, 1 month ago) by mjf
Branch: mjf-devfs2
Changes since 1.173: +2 -1 lines
Diff to previous 1.173 (colored) to selected 1.163 (colored)

Start where the mjf-devfs branch left off.

Revision 1.166.4.5 / (download) - annotate - [select for diffs], Mon Feb 18 22:07:03 2008 UTC (16 years, 2 months ago) by mjf
Branch: mjf-devfs
Changes since 1.166.4.4: +2 -1 lines
Diff to previous 1.166.4.4 (colored) to branchpoint 1.166 (colored) next main 1.167 (colored) to selected 1.163 (colored)

Add some devfs code that's been sitting in my local tree for a while.

devfsd(8) is now the first daemon to be started after init(8). It tracks
device insertion (will eventually track removal) and devfs mounts.

Currently, we can mount multiple device file systems and have device
special files pushed into the mounts automatically, though, the device
special files aren't created with the correct major/minor number pairs
yet.

More work to come soon.

Revision 1.166.4.4 / (download) - annotate - [select for diffs], Mon Feb 18 21:07:23 2008 UTC (16 years, 2 months ago) by mjf
Branch: mjf-devfs
Changes since 1.166.4.3: +45 -31 lines
Diff to previous 1.166.4.3 (colored) to branchpoint 1.166 (colored) to selected 1.163 (colored)

Sync with HEAD.

Revision 1.129.2.8 / (download) - annotate - [select for diffs], Mon Feb 4 09:24:59 2008 UTC (16 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.129.2.7: +17 -11 lines
Diff to previous 1.129.2.7 (colored) next main 1.130 (colored) to selected 1.163 (colored)

sync with head.

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

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

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

Revision 1.172 / (download) - annotate - [select for diffs], Mon Jan 28 14:31:20 2008 UTC (16 years, 2 months ago) by dholland
Branch: MAIN
Changes since 1.171: +6 -1 lines
Diff to previous 1.171 (colored) to selected 1.163 (colored)

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

Revision 1.129.2.7 / (download) - annotate - [select for diffs], Mon Jan 21 09:47:53 2008 UTC (16 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.129.2.6: +33 -24 lines
Diff to previous 1.129.2.6 (colored) to selected 1.163 (colored)

sync with head

Revision 1.167.6.3 / (download) - annotate - [select for diffs], Sat Jan 19 12:15:42 2008 UTC (16 years, 3 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.167.6.2: +3 -2 lines
Diff to previous 1.167.6.2 (colored) to branchpoint 1.167 (colored) next main 1.168 (colored) to selected 1.163 (colored)

Sync with HEAD

Revision 1.171 / (download) - annotate - [select for diffs], Wed Jan 16 16:00:42 2008 UTC (16 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: bouyer-xeni386-nbase, bouyer-xeni386-base
Changes since 1.170: +4 -3 lines
Diff to previous 1.170 (colored) to selected 1.163 (colored)

Don't pull in sys/vnode.h

Revision 1.165.4.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:58:12 2008 UTC (16 years, 3 months ago) by matt
Branch: matt-armv6
Changes since 1.165.4.1: +46 -45 lines
Diff to previous 1.165.4.1 (colored) to branchpoint 1.165 (colored) to selected 1.163 (colored)

sync with HEAD

Revision 1.167.6.2 / (download) - annotate - [select for diffs], Tue Jan 8 22:11:57 2008 UTC (16 years, 3 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.167.6.1: +18 -14 lines
Diff to previous 1.167.6.1 (colored) to branchpoint 1.167 (colored) to selected 1.163 (colored)

Sync with HEAD

Revision 1.170 / (download) - annotate - [select for diffs], Mon Jan 7 12:34:12 2008 UTC (16 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: matt-armv6-base
Changes since 1.169: +19 -15 lines
Diff to previous 1.169 (colored) to selected 1.163 (colored)

Make VFS_SYNC() and friends functions, and have them acquire kernel_lock
if the FS is not marked MPSAFE.

Revision 1.167.6.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:58:04 2008 UTC (16 years, 3 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.167: +13 -9 lines
Diff to previous 1.167 (colored) to selected 1.163 (colored)

Sync with HEAD

Revision 1.169 / (download) - annotate - [select for diffs], Wed Jan 2 11:49:07 2008 UTC (16 years, 3 months ago) by ad
Branch: MAIN
Changes since 1.168: +12 -9 lines
Diff to previous 1.168 (colored) to selected 1.163 (colored)

Merge vmlocking2 to head.

Revision 1.167.2.3 / (download) - annotate - [select for diffs], Fri Dec 28 18:32:28 2007 UTC (16 years, 3 months ago) by ad
Branch: vmlocking2
Changes since 1.167.2.2: +6 -2 lines
Diff to previous 1.167.2.2 (colored) to branchpoint 1.167 (colored) next main 1.168 (colored) to selected 1.163 (colored)

Don't pull in rubbish that libsa doesn't need.

Revision 1.166.4.3 / (download) - annotate - [select for diffs], Thu Dec 27 00:46:40 2007 UTC (16 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.166.4.2: +2 -2 lines
Diff to previous 1.166.4.2 (colored) to branchpoint 1.166 (colored) to selected 1.163 (colored)

Sync with HEAD.

Revision 1.167.2.2 / (download) - annotate - [select for diffs], Wed Dec 26 21:39:55 2007 UTC (16 years, 3 months ago) by ad
Branch: vmlocking2
Changes since 1.167.2.1: +2 -1 lines
Diff to previous 1.167.2.1 (colored) to branchpoint 1.167 (colored) to selected 1.163 (colored)

Sync with head.

Revision 1.168 / (download) - annotate - [select for diffs], Mon Dec 24 14:58:38 2007 UTC (16 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: vmlocking2-base3
Changes since 1.167: +2 -1 lines
Diff to previous 1.167 (colored) to selected 1.163 (colored)

+ MOUNT_ZFS, VT_ZFS

Revision 1.166.4.2 / (download) - annotate - [select for diffs], Sat Dec 8 18:21:33 2007 UTC (16 years, 4 months ago) by mjf
Branch: mjf-devfs
Changes since 1.166.4.1: +25 -32 lines
Diff to previous 1.166.4.1 (colored) to branchpoint 1.166 (colored) to selected 1.163 (colored)

Sync with HEAD.

Revision 1.129.2.6 / (download) - annotate - [select for diffs], Fri Dec 7 17:34:55 2007 UTC (16 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.129.2.5: +25 -32 lines
Diff to previous 1.129.2.5 (colored) to selected 1.163 (colored)

sync with head

Revision 1.167.2.1 / (download) - annotate - [select for diffs], Tue Dec 4 13:03:38 2007 UTC (16 years, 4 months ago) by ad
Branch: vmlocking2
Changes since 1.167: +7 -8 lines
Diff to previous 1.167 (colored) to selected 1.163 (colored)

Pull the vmlocking changes into a new branch.

Revision 1.165.2.2 / (download) - annotate - [select for diffs], Tue Nov 27 19:39:12 2007 UTC (16 years, 4 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.165.2.1: +25 -32 lines
Diff to previous 1.165.2.1 (colored) to branchpoint 1.165 (colored) next main 1.166 (colored) to selected 1.163 (colored)

Sync with HEAD. amd64 Xen support needs testing.

Revision 1.167 / (download) - annotate - [select for diffs], Mon Nov 26 19:02:24 2007 UTC (16 years, 4 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, cube-autoconf-base, cube-autoconf
Branch point for: vmlocking2, bouyer-xeni386
Changes since 1.166: +25 -32 lines
Diff to previous 1.166 (colored) to selected 1.163 (colored)

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

quick consensus on tech-kern

Revision 1.166.4.1 / (download) - annotate - [select for diffs], Mon Nov 19 00:34:31 2007 UTC (16 years, 5 months ago) by mjf
Branch: mjf-devfs
Changes since 1.166: +2 -1 lines
Diff to previous 1.166 (colored) to selected 1.163 (colored)

Stubs for devfs. Committing this before I sync with HEAD.

Revision 1.165.4.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:34:50 2007 UTC (16 years, 5 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.165: +9 -3 lines
Diff to previous 1.165 (colored) to selected 1.163 (colored)

sync with HEAD

Revision 1.129.2.5 / (download) - annotate - [select for diffs], Sat Oct 27 11:36:31 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.129.2.4: +9 -3 lines
Diff to previous 1.129.2.4 (colored) to selected 1.163 (colored)

sync with head.

Revision 1.165.2.1 / (download) - annotate - [select for diffs], Fri Oct 26 15:49:19 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.165: +9 -3 lines
Diff to previous 1.165 (colored) to selected 1.163 (colored)

Sync with HEAD.

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

Revision 1.165.6.1 / (download) - annotate - [select for diffs], Sun Oct 14 11:49:09 2007 UTC (16 years, 6 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.165: +9 -3 lines
Diff to previous 1.165 (colored) next main 1.166 (colored) to selected 1.163 (colored)

sync with head.

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

Merge from vmlocking:

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

Revision 1.155.2.10 / (download) - annotate - [select for diffs], Mon Oct 8 20:28:11 2007 UTC (16 years, 6 months ago) by ad
Branch: vmlocking
Changes since 1.155.2.9: +2 -1 lines
Diff to previous 1.155.2.9 (colored) to branchpoint 1.155 (colored) next main 1.156 (colored) to selected 1.163 (colored)

Don't use the 'specificdata' system to store per-mountpoint information
on transactions. It causes a massive amount of lock contention during
I/O. Instead use an opaque pointer in struct mount. (This change is
imcomplete but I am clearing out my tree.)

Revision 1.155.2.9 / (download) - annotate - [select for diffs], Wed Oct 3 19:11:15 2007 UTC (16 years, 6 months ago) by ad
Branch: vmlocking
Changes since 1.155.2.8: +2 -1 lines
Diff to previous 1.155.2.8 (colored) to branchpoint 1.155 (colored) to selected 1.163 (colored)

- Don't do proc_vmspace_getref() in dofileread() and friends. They only
  ever access the caller's vmspace so it's not going to go away. Instead
  just use curproc->p_vmspace. Fixes high lock contention during file I/O
  by multithreaded processes. Don't pass in lwp_t *l, it's confusing.

- Drain cleaned vnodes from mountpoints just before checking to see
  if there are danglers. Cleaned vnodes now stick around on mountpoint
  lists until reused, as it's too expensive to pull them off earlier.

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

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

Revision 1.129.2.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:46:29 2007 UTC (16 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.129.2.3: +59 -60 lines
Diff to previous 1.129.2.3 (colored) to selected 1.163 (colored)

sync with head.

Revision 1.155.2.7 / (download) - annotate - [select for diffs], Mon Aug 20 21:28:18 2007 UTC (16 years, 8 months ago) by ad
Branch: vmlocking
Changes since 1.155.2.6: +48 -41 lines
Diff to previous 1.155.2.6 (colored) to branchpoint 1.155 (colored) to selected 1.163 (colored)

Sync with HEAD.

Revision 1.162.2.1 / (download) - annotate - [select for diffs], Wed Aug 15 13:50:57 2007 UTC (16 years, 8 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.162: +46 -40 lines
Diff to previous 1.162 (colored) next main 1.163 (colored)

Sync with HEAD.

Revision 1.165.8.2 / (download) - annotate - [select for diffs], Tue Jul 31 21:14:22 2007 UTC (16 years, 8 months ago) by pooka
Branch: matt-mips64
Changes since 1.165.8.1: +385 -0 lines
Diff to previous 1.165.8.1 (colored) to branchpoint 1.165 (colored) next main 1.166 (colored) to selected 1.163 (colored)

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

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

file mount.h was added on branch matt-mips64 on 2007-07-31 21:14:22 +0000

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

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

Revision 1.155.2.6 / (download) - annotate - [select for diffs], Sun Jul 29 11:37:11 2007 UTC (16 years, 8 months ago) by ad
Branch: vmlocking
Changes since 1.155.2.5: +2 -1 lines
Diff to previous 1.155.2.5 (colored) to branchpoint 1.155 (colored) to selected 1.163 (colored)

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

Revision 1.164 / (download) - annotate - [select for diffs], Fri Jul 27 13:43:05 2007 UTC (16 years, 8 months ago) by pooka
Branch: MAIN
CVS Tags: hpcarm-cleanup
Changes since 1.163: +43 -36 lines
Diff to previous 1.163 (colored)

Expose struct vfsops and VFS_FOO()s if __VFSOPS_EXPOSE is defined.

Revision 1.163 / (download) - annotate - [selected], Thu Jul 26 22:57:36 2007 UTC (16 years, 8 months ago) by pooka
Branch: MAIN
Changes since 1.162: +1 -2 lines
Diff to previous 1.162 (colored)

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

Revision 1.162 / (download) - annotate - [select for diffs], Tue Jul 17 22:17:06 2007 UTC (16 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: nick-csl-alignment-base
Branch point for: nick-csl-alignment
Changes since 1.161: +1 -2 lines
Diff to previous 1.161 (colored) to selected 1.163 (colored)

kill MFSNAMELEN [the definition].
Next MNAMELEN.

Revision 1.155.2.5 / (download) - annotate - [select for diffs], Sun Jul 15 13:28:10 2007 UTC (16 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.155.2.4: +17 -7 lines
Diff to previous 1.155.2.4 (colored) to branchpoint 1.155 (colored) to selected 1.163 (colored)

Sync with head.

Revision 1.161 / (download) - annotate - [select for diffs], Sat Jul 14 15:41:30 2007 UTC (16 years, 9 months ago) by dsl
Branch: MAIN
Changes since 1.160: +2 -2 lines
Diff to previous 1.160 (colored) to selected 1.163 (colored)

Version mount(2) so that the length of the 'data' buffer is passed into
the kernel.

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

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

Revision 1.155.4.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:12:32 2007 UTC (16 years, 9 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.155: +5 -8 lines
Diff to previous 1.155 (colored) next main 1.156 (colored) to selected 1.163 (colored)

Sync with head.

Revision 1.159 / (download) - annotate - [select for diffs], Fri Jun 29 23:30:32 2007 UTC (16 years, 9 months ago) by rumble
Branch: MAIN
CVS Tags: mjf-ufs-trans-base
Changes since 1.158: +2 -1 lines
Diff to previous 1.158 (colored) to selected 1.163 (colored)

Add read-only support for SGI's Extent File System.

Reviewed by pooka@.

Revision 1.158 / (download) - annotate - [select for diffs], Sat Jun 23 09:08:37 2007 UTC (16 years, 9 months ago) by dsl
Branch: MAIN
Changes since 1.157: +2 -2 lines
Diff to previous 1.157 (colored) to selected 1.163 (colored)

Make sys_getgroups() and sys_setgroups() use the newly added functions
in kern_prot.c in order to simplify the code paths.
NB: the grouplist is not longer sorted - I don't think anything relies
on this (any more) and nfs will use truncated lists where the order of the
entries is important.
Move the external defns for public functios in kern_prot.c into a new
header sys/prot.h (from sys/ucred.h which contains a compat defn that
is exposed to userspace).

Revision 1.155.2.4 / (download) - annotate - [select for diffs], Fri Jun 8 14:18:11 2007 UTC (16 years, 10 months ago) by ad
Branch: vmlocking
Changes since 1.155.2.3: +2 -2 lines
Diff to previous 1.155.2.3 (colored) to branchpoint 1.155 (colored) to selected 1.163 (colored)

Sync with head.

Revision 1.155.2.3 / (download) - annotate - [select for diffs], Sun May 13 17:36:40 2007 UTC (16 years, 11 months ago) by ad
Branch: vmlocking
Changes since 1.155.2.2: +2 -1 lines
Diff to previous 1.155.2.2 (colored) to branchpoint 1.155 (colored) to selected 1.163 (colored)

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

Revision 1.152.2.2 / (download) - annotate - [select for diffs], Sun Apr 15 16:04:05 2007 UTC (17 years ago) by yamt
Branch: yamt-idlelwp
Changes since 1.152.2.1: +3 -7 lines
Diff to previous 1.152.2.1 (colored) to branchpoint 1.152 (colored) next main 1.153 (colored) to selected 1.163 (colored)

sync with head.

Revision 1.157 / (download) - annotate - [select for diffs], Wed Apr 11 21:06:32 2007 UTC (17 years ago) by pooka
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic
Changes since 1.156: +2 -2 lines
Diff to previous 1.156 (colored) to selected 1.163 (colored)

update prototype of vfs_vptofh

Revision 1.155.2.2 / (download) - annotate - [select for diffs], Tue Apr 10 13:26:19 2007 UTC (17 years ago) by ad
Branch: vmlocking
Changes since 1.155.2.1: +2 -6 lines
Diff to previous 1.155.2.1 (colored) to branchpoint 1.155 (colored) to selected 1.163 (colored)

Sync with head.

Revision 1.156 / (download) - annotate - [select for diffs], Sun Apr 8 11:20:48 2007 UTC (17 years ago) by hannken
Branch: MAIN
Changes since 1.155: +2 -6 lines
Diff to previous 1.155 (colored) to selected 1.163 (colored)

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

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

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

Welcome to 4.99.17

Revision 1.155.2.1 / (download) - annotate - [select for diffs], Tue Mar 13 17:51:18 2007 UTC (17 years, 1 month ago) by ad
Branch: vmlocking
Changes since 1.155: +5 -5 lines
Diff to previous 1.155 (colored) to selected 1.163 (colored)

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

Revision 1.152.2.1 / (download) - annotate - [select for diffs], Mon Mar 12 06:00:53 2007 UTC (17 years, 1 month ago) by rmind
Branch: yamt-idlelwp
Changes since 1.152: +2 -14 lines
Diff to previous 1.152 (colored) to selected 1.163 (colored)

Sync with HEAD.

Revision 1.155 / (download) - annotate - [select for diffs], Sat Mar 10 16:50:01 2007 UTC (17 years, 1 month ago) by dsl
Branch: MAIN
CVS Tags: reinoud-bufcleanup
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.154: +1 -14 lines
Diff to previous 1.154 (colored) to selected 1.163 (colored)

Split the work for sys_stat, sys_lstat, sys_fstat and sys_fhstat out into
separate functions that don't do the copyout.
This allows all the compat_xxx versions to convert the 'struct stat' to
the correct format without using the 'stackgap'.
The stackgap isn't at all LWP friendly, and needs to be removed from
any compat functions that might involve threads (inc. clone()).
The code is still binary compatible with existing LKMs.

Revision 1.154 / (download) - annotate - [select for diffs], Tue Mar 6 11:28:46 2007 UTC (17 years, 1 month ago) by dillo
Branch: MAIN
Changes since 1.153: +2 -2 lines
Diff to previous 1.153 (colored) to selected 1.163 (colored)

Complete rename of hfsp to hfs, requested by thorpej.

Revision 1.153 / (download) - annotate - [select for diffs], Mon Mar 5 23:18:08 2007 UTC (17 years, 1 month ago) by dillo
Branch: MAIN
Changes since 1.152: +2 -1 lines
Diff to previous 1.152 (colored) to selected 1.163 (colored)

Integrate apmlabel and HFS+ file system.

Revision 1.129.2.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:12:12 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.129.2.2: +6 -2 lines
Diff to previous 1.129.2.2 (colored) to selected 1.163 (colored)

sync with head.

Revision 1.148.4.3 / (download) - annotate - [select for diffs], Thu Feb 1 08:48:47 2007 UTC (17 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.148.4.2: +6 -2 lines
Diff to previous 1.148.4.2 (colored) to branchpoint 1.148 (colored) next main 1.149 (colored) to selected 1.163 (colored)

Sync with head.

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

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

Implemented for file systems of type ffs.

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

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

Welcome to 4.99.9 (new vfs op vfs_suspendctl).

Revision 1.148.4.2 / (download) - annotate - [select for diffs], Fri Jan 12 01:04:24 2007 UTC (17 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.148.4.1: +11 -1 lines
Diff to previous 1.148.4.1 (colored) to branchpoint 1.148 (colored) to selected 1.163 (colored)

Sync with head.

Revision 1.129.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:50:55 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.129.2.1: +63 -8 lines
Diff to previous 1.129.2.1 (colored) to selected 1.163 (colored)

sync with head.

Revision 1.148.6.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:19:28 2006 UTC (17 years, 4 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.148.6.1: +36 -1 lines
Diff to previous 1.148.6.1 (colored) to branchpoint 1.148 (colored) next main 1.149 (colored) to selected 1.163 (colored)

sync with head.

Revision 1.148.4.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:39:47 2006 UTC (17 years, 5 months ago) by ad
Branch: newlock2
Changes since 1.148: +27 -2 lines
Diff to previous 1.148 (colored) to selected 1.163 (colored)

Sync with head.

Revision 1.151 / (download) - annotate - [select for diffs], Fri Nov 17 17:05:18 2006 UTC (17 years, 5 months ago) by hannken
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm
Changes since 1.150: +11 -1 lines
Diff to previous 1.150 (colored) to selected 1.163 (colored)

Add specificdata support to mount points.

Welcome to NetBSD 4.99.4

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

Revision 1.150 / (download) - annotate - [select for diffs], Sun Oct 22 22:50:10 2006 UTC (17 years, 5 months ago) by pooka
Branch: MAIN
Changes since 1.149: +26 -1 lines
Diff to previous 1.149 (colored) to selected 1.163 (colored)

* add MOUNT_PUFFS
* add macro VFS_PROTOS(fsname), which generates file system vfs prototypes

Revision 1.148.6.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:07:47 2006 UTC (17 years, 5 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.148: +2 -2 lines
Diff to previous 1.148 (colored) to selected 1.163 (colored)

sync with head

Revision 1.149 / (download) - annotate - [select for diffs], Fri Oct 20 18:58:12 2006 UTC (17 years, 6 months ago) by reinoud
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.148: +2 -2 lines
Diff to previous 1.148 (colored) to selected 1.163 (colored)

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

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

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

Revision 1.136.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:59:42 2006 UTC (17 years, 7 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.136: +37 -9 lines
Diff to previous 1.136 (colored) next main 1.137 (colored) to selected 1.163 (colored)

sync with head

Revision 1.137.2.4 / (download) - annotate - [select for diffs], Fri Aug 11 15:47:26 2006 UTC (17 years, 8 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.137.2.3: +27 -7 lines
Diff to previous 1.137.2.3 (colored) to branchpoint 1.137 (colored) next main 1.138 (colored) to selected 1.163 (colored)

sync with head

Revision 1.148 / (download) - annotate - [select for diffs], Fri Aug 4 16:29:51 2006 UTC (17 years, 8 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, rpaulo-netinet-merge-pcb-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.147: +8 -3 lines
Diff to previous 1.147 (colored) to selected 1.163 (colored)

some filehandle syscall related changes.

- remove the support of variable-sized filehandle from compat version of
  syscalls.  (strictly speaking, it breaks abi.  i don't think it's a problem
  because this feature is short-lived and there are no affected in-tree
  filesystems.)
- unify vfs_copyinfh_alloc and vfs_copyinfh_alloc_size.
- vfs_copyinfh_alloc_size: check fhsize strictly.
- reduce code duplication between compat and current syscalls.

Revision 1.147 / (download) - annotate - [select for diffs], Mon Jul 31 16:34:44 2006 UTC (17 years, 8 months ago) by martin
Branch: MAIN
Changes since 1.146: +5 -4 lines
Diff to previous 1.146 (colored) to selected 1.163 (colored)

Make filehandles opaque to userland

Revision 1.146 / (download) - annotate - [select for diffs], Fri Jul 14 18:29:40 2006 UTC (17 years, 9 months ago) by yamt
Branch: MAIN
Changes since 1.145: +4 -2 lines
Diff to previous 1.145 (colored) to selected 1.163 (colored)

- sys___getfh30:
	- restructure code so that it doesn't try to allocate user-specified
	  unbound amount of memory.
	- don't ignore copyout failure in the case of E2BIG.
- rename vfs_copyinfh to vfs_copyinfh_alloc for consistency.

Revision 1.145 / (download) - annotate - [select for diffs], Fri Jul 14 15:59:29 2006 UTC (17 years, 9 months ago) by yamt
Branch: MAIN
Changes since 1.144: +9 -1 lines
Diff to previous 1.144 (colored) to selected 1.163 (colored)

- fix buffer overruns in fhopen and friends.
- share some code among them.

Revision 1.141.4.1 / (download) - annotate - [select for diffs], Thu Jul 13 17:50:06 2006 UTC (17 years, 9 months ago) by gdamore
Branch: gdamore-uart
Changes since 1.141: +9 -4 lines
Diff to previous 1.141 (colored) next main 1.142 (colored) to selected 1.163 (colored)

Merge from HEAD.

Revision 1.144 / (download) - annotate - [select for diffs], Thu Jul 13 13:43:27 2006 UTC (17 years, 9 months ago) by martin
Branch: MAIN
Changes since 1.143: +2 -2 lines
Diff to previous 1.143 (colored) to selected 1.163 (colored)

No arg names in prototypes

Revision 1.143 / (download) - annotate - [select for diffs], Thu Jul 13 12:00:26 2006 UTC (17 years, 9 months ago) by martin
Branch: MAIN
Changes since 1.142: +9 -5 lines
Diff to previous 1.142 (colored) to selected 1.163 (colored)

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

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

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

Revision 1.137.2.3 / (download) - annotate - [select for diffs], Mon Jun 26 12:54:29 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.137.2.2: +2 -1 lines
Diff to previous 1.137.2.2 (colored) to branchpoint 1.137 (colored) to selected 1.163 (colored)

sync with head.

Revision 1.129.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:12:03 2006 UTC (17 years, 10 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.129: +51 -123 lines
Diff to previous 1.129 (colored) to selected 1.163 (colored)

sync with head.

Revision 1.141.2.1 / (download) - annotate - [select for diffs], Mon Jun 19 04:11:12 2006 UTC (17 years, 10 months ago) by chap
Branch: chap-midi
Changes since 1.141: +2 -1 lines
Diff to previous 1.141 (colored) next main 1.142 (colored) to selected 1.163 (colored)

Sync with head.

Revision 1.142 / (download) - annotate - [select for diffs], Sat Jun 17 07:06:50 2006 UTC (17 years, 10 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6, chap-midi-nbase, chap-midi-base
Changes since 1.141: +1 -0 lines
Diff to previous 1.141 (colored) to selected 1.163 (colored)

- introduce vfs_composefh() and use it where appropriate.
- fix lock/unlock mismatch in sys_getfh.

Revision 1.136.6.2 / (download) - annotate - [select for diffs], Thu Jun 1 22:39:26 2006 UTC (17 years, 10 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.136.6.1: +8 -3 lines
Diff to previous 1.136.6.1 (colored) next main 1.137 (colored) to selected 1.163 (colored)

Sync with head.

Revision 1.138.4.1 / (download) - annotate - [select for diffs], Wed May 24 15:50:47 2006 UTC (17 years, 10 months ago) by tron
Branch: peter-altq
Changes since 1.138: +8 -3 lines
Diff to previous 1.138 (colored) next main 1.139 (colored) to selected 1.163 (colored)

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

Revision 1.137.2.2 / (download) - annotate - [select for diffs], Wed May 24 10:59:21 2006 UTC (17 years, 10 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.137.2.1: +8 -3 lines
Diff to previous 1.137.2.1 (colored) to branchpoint 1.137 (colored) to selected 1.163 (colored)

sync with head.

Revision 1.141 / (download) - annotate - [select for diffs], Sun May 14 21:38:18 2006 UTC (17 years, 11 months ago) by elad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base5, simonb-timecounters-base, gdamore-uart-base
Branch point for: gdamore-uart, chap-midi
Changes since 1.140: +3 -2 lines
Diff to previous 1.140 (colored) to selected 1.163 (colored)

integrate kauth.

Revision 1.138.2.3 / (download) - annotate - [select for diffs], Thu May 11 23:31:36 2006 UTC (17 years, 11 months ago) by elad
Branch: elad-kernelauth
Changes since 1.138.2.2: +6 -2 lines
Diff to previous 1.138.2.2 (colored) to branchpoint 1.138 (colored) next main 1.139 (colored) to selected 1.163 (colored)

sync with head

Revision 1.140 / (download) - annotate - [select for diffs], Fri May 5 15:08:43 2006 UTC (17 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: elad-kernelauth-base
Changes since 1.139: +3 -1 lines
Diff to previous 1.139 (colored) to selected 1.163 (colored)

don't include unneeded declarations if _STANDALONE (from simonb)

Revision 1.139 / (download) - annotate - [select for diffs], Thu May 4 17:50:28 2006 UTC (17 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.138: +4 -2 lines
Diff to previous 1.138 (colored) to selected 1.163 (colored)

Regen

Revision 1.136.6.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:40:19 2006 UTC (17 years, 11 months ago) by simonb
Branch: simonb-timecounters
Changes since 1.136: +5 -3 lines
Diff to previous 1.136 (colored) to selected 1.163 (colored)

Sync with head.

Revision 1.138.2.2 / (download) - annotate - [select for diffs], Thu Apr 20 02:00:28 2006 UTC (18 years ago) by christos
Branch: elad-kernelauth
Changes since 1.138.2.1: +3 -3 lines
Diff to previous 1.138.2.1 (colored) to branchpoint 1.138 (colored) to selected 1.163 (colored)

Don't include <sys/kauth.h> from userland

Revision 1.137.2.1 / (download) - annotate - [select for diffs], Mon Mar 13 09:07:43 2006 UTC (18 years, 1 month ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.137: +2 -2 lines
Diff to previous 1.137 (colored) to selected 1.163 (colored)

sync with head.

Revision 1.138.2.1 / (download) - annotate - [select for diffs], Wed Mar 8 01:01:13 2006 UTC (18 years, 1 month ago) by elad
Branch: elad-kernelauth
Changes since 1.138: +3 -2 lines
Diff to previous 1.138 (colored) to selected 1.163 (colored)

Adapt to kernel authorization changes.

Revision 1.138 / (download) - annotate - [select for diffs], Mon Mar 6 22:47:13 2006 UTC (18 years, 1 month ago) by simonb
Branch: MAIN
CVS Tags: yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, peter-altq-base
Branch point for: peter-altq, elad-kernelauth
Changes since 1.137: +2 -2 lines
Diff to previous 1.137 (colored) to selected 1.163 (colored)

The hooks pointed to by VFS_HOOKS_ATTACH are in the (read/write) data
segment and not a readonly segment, so use __link_set_add_data for them.
Fixes problems with corrupt vfs attach hook lists on our remaining a.out
platform.

Revision 1.136.2.1 / (download) - annotate - [select for diffs], Sat Feb 18 15:39:23 2006 UTC (18 years, 2 months ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.136: +4 -2 lines
Diff to previous 1.136 (colored) next main 1.137 (colored) to selected 1.163 (colored)

sync with head.

Revision 1.137 / (download) - annotate - [select for diffs], Sun Feb 12 06:18:25 2006 UTC (18 years, 2 months ago) by dogcow
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-pdpolicy-base
Branch point for: yamt-pdpolicy
Changes since 1.136: +4 -2 lines
Diff to previous 1.136 (colored) to selected 1.163 (colored)

add VFS_MAGICLINKS so things compile again.

Revision 1.136 / (download) - annotate - [select for diffs], Thu Dec 29 14:53:47 2005 UTC (18 years, 3 months ago) by tsutsui
Branch: MAIN
Branch point for: yamt-uio_vmspace, simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.135: +2 -1 lines
Diff to previous 1.135 (colored) to selected 1.163 (colored)

Add preliminary support for System V Boot File System.
Written by UCHIYAMA Yasushi <uch@netbsd>.

Revision 1.135 / (download) - annotate - [select for diffs], Wed Dec 14 21:58:39 2005 UTC (18 years, 4 months ago) by reinoud
Branch: MAIN
Changes since 1.134: +2 -1 lines
Diff to previous 1.134 (colored) to selected 1.163 (colored)

Add UDF filesystem type.

Revision 1.134 / (download) - annotate - [select for diffs], Sun Dec 11 12:25:20 2005 UTC (18 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.133: +22 -22 lines
Diff to previous 1.133 (colored) to selected 1.163 (colored)

merge ktrace-lwp.

Revision 1.109.2.12 / (download) - annotate - [select for diffs], Thu Nov 10 14:12:12 2005 UTC (18 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.109.2.11: +19 -101 lines
Diff to previous 1.109.2.11 (colored) next main 1.110 (colored) to selected 1.163 (colored)

Sync with HEAD. Here we go again...

Revision 1.133 / (download) - annotate - [select for diffs], Sun Sep 25 21:17:05 2005 UTC (18 years, 6 months ago) by jmmv
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Changes since 1.132: +4 -4 lines
Diff to previous 1.132 (colored) to selected 1.163 (colored)

Follow compat naming tradition: rename compat_export_args to export_args30.

Revision 1.132 / (download) - annotate - [select for diffs], Fri Sep 23 12:10:33 2005 UTC (18 years, 6 months ago) by jmmv
Branch: MAIN
Changes since 1.131: +17 -46 lines
Diff to previous 1.131 (colored) to selected 1.163 (colored)

Apply the NFS exports list rototill patch:

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

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

Revision 1.131 / (download) - annotate - [select for diffs], Tue Sep 13 01:42:51 2005 UTC (18 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.130: +1 -55 lines
Diff to previous 1.130 (colored) to selected 1.163 (colored)

compat code reorg.

Revision 1.130 / (download) - annotate - [select for diffs], Sat Sep 10 19:20:51 2005 UTC (18 years, 7 months ago) by jmmv
Branch: MAIN
Changes since 1.129: +2 -1 lines
Diff to previous 1.129 (colored) to selected 1.163 (colored)

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@).

Revision 1.129 / (download) - annotate - [select for diffs], Sun May 29 21:19:41 2005 UTC (18 years, 10 months ago) by christos
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.128: +2 -2 lines
Diff to previous 1.128 (colored) to selected 1.163 (colored)

Sprinkle const.

Revision 1.126.2.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:37 2005 UTC (18 years, 11 months ago) by kent
Branch: kent-audio2
Changes since 1.126: +61 -59 lines
Diff to previous 1.126 (colored) next main 1.127 (colored) to selected 1.163 (colored)

sync with -current

Revision 1.109.2.11 / (download) - annotate - [select for diffs], Fri Apr 1 14:32:11 2005 UTC (19 years ago) by skrll
Branch: ktrace-lwp
Changes since 1.109.2.10: +3 -1 lines
Diff to previous 1.109.2.10 (colored) to selected 1.163 (colored)

Sync with HEAD.

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

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

Revision 1.126.4.1 / (download) - annotate - [select for diffs], Sat Feb 12 18:17:55 2005 UTC (19 years, 2 months ago) by yamt
Branch: yamt-km
Changes since 1.126: +59 -59 lines
Diff to previous 1.126 (colored) next main 1.127 (colored) to selected 1.163 (colored)

sync with head.

Revision 1.109.2.10 / (download) - annotate - [select for diffs], Fri Feb 4 11:48:06 2005 UTC (19 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.109.2.9: +59 -59 lines
Diff to previous 1.109.2.9 (colored) to selected 1.163 (colored)

Sync with HEAD.

Revision 1.127 / (download) - annotate - [select for diffs], Thu Feb 3 19:20:01 2005 UTC (19 years, 2 months ago) by perry
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, yamt-km-base2, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3
Changes since 1.126: +59 -59 lines
Diff to previous 1.126 (colored) to selected 1.163 (colored)

de-__P

Revision 1.109.2.9 / (download) - annotate - [select for diffs], Mon Jan 17 19:33:10 2005 UTC (19 years, 3 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.109.2.8: +9 -1 lines
Diff to previous 1.109.2.8 (colored) to selected 1.163 (colored)

Sync with HEAD.

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

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

From FreeBSD.

Revision 1.109.2.8 / (download) - annotate - [select for diffs], Sun Nov 14 08:16:13 2004 UTC (19 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.109.2.7: +3 -2 lines
Diff to previous 1.109.2.7 (colored) to selected 1.163 (colored)

Sync with HEAD.

Revision 1.125 / (download) - annotate - [select for diffs], Wed Nov 10 17:30:56 2004 UTC (19 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: kent-audio1-base, kent-audio1
Changes since 1.124: +3 -2 lines
Diff to previous 1.124 (colored) to selected 1.163 (colored)

Add a vnode type for ptyfs PTYs and a mount name for ptyfs.

Revision 1.109.2.7 / (download) - annotate - [select for diffs], Tue Sep 21 13:38:47 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.109.2.6: +18 -18 lines
Diff to previous 1.109.2.6 (colored) to selected 1.163 (colored)

Fix the sync with head I botched.

Revision 1.109.2.6 / (download) - annotate - [select for diffs], Sat Sep 18 14:56:30 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.109.2.5: +18 -18 lines
Diff to previous 1.109.2.5 (colored) to selected 1.163 (colored)

Sync with HEAD.

Revision 1.109.2.5 / (download) - annotate - [select for diffs], Wed Aug 25 06:59:14 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.109.2.4: +1 -2 lines
Diff to previous 1.109.2.4 (colored) to selected 1.163 (colored)

Sync with HEAD.

Revision 1.109.2.4 / (download) - annotate - [select for diffs], Tue Aug 24 17:57:41 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.109.2.3: +12 -12 lines
Diff to previous 1.109.2.3 (colored) to selected 1.163 (colored)

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

Revision 1.109.2.3 / (download) - annotate - [select for diffs], Tue Aug 24 17:36:00 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.109.2.2: +1 -2 lines
Diff to previous 1.109.2.2 (colored) to selected 1.163 (colored)

vfs_unlock died.

Revision 1.124 / (download) - annotate - [select for diffs], Sun Aug 15 07:19:55 2004 UTC (19 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.123: +1 -2 lines
Diff to previous 1.123 (colored) to selected 1.163 (colored)

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

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

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

Clean up some crappy pointer frobnication.

Revision 1.109.2.2 / (download) - annotate - [select for diffs], Tue Aug 3 10:56:29 2004 UTC (19 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.109.2.1: +46 -195 lines
Diff to previous 1.109.2.1 (colored) to selected 1.163 (colored)

Sync with HEAD

Revision 1.123 / (download) - annotate - [select for diffs], Thu Jul 1 10:03:32 2004 UTC (19 years, 9 months ago) by hannken
Branch: MAIN
Changes since 1.122: +2 -1 lines
Diff to previous 1.122 (colored) to selected 1.163 (colored)

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

Welcome to 2.0G

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

Revision 1.122 / (download) - annotate - [select for diffs], Tue May 25 14:54:58 2004 UTC (19 years, 10 months ago) by hannken
Branch: MAIN
Changes since 1.121: +4 -1 lines
Diff to previous 1.121 (colored) to selected 1.163 (colored)

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

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

Welcome to 2.0F.

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

Revision 1.121 / (download) - annotate - [select for diffs], Sun May 2 12:21:02 2004 UTC (19 years, 11 months ago) by pk
Branch: MAIN
Changes since 1.120: +3 -1 lines
Diff to previous 1.120 (colored) to selected 1.163 (colored)

Add a mutex for mount point I/O and wait counters (i.e. the `mnt_wcnt',
`mnt_writeopcountupper' and `mnt_writeopcountlower' members).

Revision 1.120 / (download) - annotate - [select for diffs], Tue Apr 27 17:37:31 2004 UTC (19 years, 11 months ago) by jrf
Branch: MAIN
Changes since 1.119: +2 -2 lines
Diff to previous 1.119 (colored) to selected 1.163 (colored)

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

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

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

Revision 1.119 / (download) - annotate - [select for diffs], Wed Apr 21 01:05:43 2004 UTC (20 years ago) by christos
Branch: MAIN
Changes since 1.118: +18 -215 lines
Diff to previous 1.118 (colored) to selected 1.163 (colored)

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

Revision 1.118 / (download) - annotate - [select for diffs], Thu Dec 4 19:38:25 2003 UTC (20 years, 4 months ago) by atatat
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Changes since 1.117: +2 -5 lines
Diff to previous 1.117 (colored) to selected 1.163 (colored)

Dynamic sysctl.

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

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

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

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

Revision 1.117 / (download) - annotate - [select for diffs], Mon Dec 1 18:42:12 2003 UTC (20 years, 4 months ago) by dbj
Branch: MAIN
Changes since 1.116: +9 -2 lines
Diff to previous 1.116 (colored) to selected 1.163 (colored)

symbolically expand MNT_VISFLAGMASK

Revision 1.116 / (download) - annotate - [select for diffs], Tue Nov 18 18:26:18 2003 UTC (20 years, 5 months ago) by dbj
Branch: MAIN
Changes since 1.115: +45 -1 lines
Diff to previous 1.115 (colored) to selected 1.163 (colored)

add "show mount" ddb command

Revision 1.115 / (download) - annotate - [select for diffs], Wed Oct 15 11:29:01 2003 UTC (20 years, 6 months ago) by hannken
Branch: MAIN
Changes since 1.114: +6 -3 lines
Diff to previous 1.114 (colored) to selected 1.163 (colored)

Add the gating of system calls that cause modifications to the underlying
file system.
The function vfs_write_suspend stops all new write operations to a file
system, allows any file system modifying system calls already in progress
to complete, then sync's the file system to disk and returns. The
function vfs_write_resume allows the suspended write operations to
complete.

From FreeBSD with slight modifications.

Approved by: Frank van der Linden <fvdl@netbsd.org>

Revision 1.114 / (download) - annotate - [select for diffs], Tue Oct 14 14:02:56 2003 UTC (20 years, 6 months ago) by dbj
Branch: MAIN
Changes since 1.113: +14 -13 lines
Diff to previous 1.113 (colored) to selected 1.163 (colored)

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

Revision 1.113 / (download) - annotate - [select for diffs], Mon Oct 13 16:55:10 2003 UTC (20 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.112: +5 -2 lines
Diff to previous 1.112 (colored) to selected 1.163 (colored)

Whitespace.

Revision 1.112 / (download) - annotate - [select for diffs], Sun Oct 12 19:08:49 2003 UTC (20 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.111: +1 -5 lines
Diff to previous 1.111 (colored) to selected 1.163 (colored)

Remove comment about non-existent MNT_MLOCK.

Revision 1.111 / (download) - annotate - [select for diffs], Thu Aug 7 16:34:09 2003 UTC (20 years, 8 months ago) by agc
Branch: MAIN
Changes since 1.110: +2 -6 lines
Diff to previous 1.110 (colored) to selected 1.163 (colored)

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

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

Revision 1.110 / (download) - annotate - [select for diffs], Tue Jul 8 06:18:00 2003 UTC (20 years, 9 months ago) by itojun
Branch: MAIN
Changes since 1.109: +19 -23 lines
Diff to previous 1.109 (colored) to selected 1.163 (colored)

prototype must not have variable name

Revision 1.109.2.1 / (download) - annotate - [select for diffs], Wed Jul 2 15:27:16 2003 UTC (20 years, 9 months ago) by darrenr
Branch: ktrace-lwp
Changes since 1.109: +23 -21 lines
Diff to previous 1.109 (colored) to selected 1.163 (colored)

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

Revision 1.109 / (download) - annotate - [select for diffs], Mon Jun 30 22:20:04 2003 UTC (20 years, 9 months ago) by christos
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.108: +3 -2 lines
Diff to previous 1.108 (colored) to selected 1.163 (colored)

add text for getargs.

Revision 1.108 / (download) - annotate - [select for diffs], Mon Jun 30 21:22:26 2003 UTC (20 years, 9 months ago) by dbj
Branch: MAIN
Changes since 1.107: +1 -2 lines
Diff to previous 1.107 (colored) to selected 1.163 (colored)

remove __MNT_UNUSED2 since it was used by christos for MNT_GETARGS.

Revision 1.107 / (download) - annotate - [select for diffs], Sun Jun 29 22:32:25 2003 UTC (20 years, 9 months ago) by fvdl
Branch: MAIN
Changes since 1.106: +16 -17 lines
Diff to previous 1.106 (colored) to selected 1.163 (colored)

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

Revision 1.106 / (download) - annotate - [select for diffs], Sun Jun 29 18:43:38 2003 UTC (20 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.105: +7 -8 lines
Diff to previous 1.105 (colored) to selected 1.163 (colored)

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

Revision 1.105 / (download) - annotate - [select for diffs], Sat Jun 28 14:22:21 2003 UTC (20 years, 9 months ago) by darrenr
Branch: MAIN
Changes since 1.104: +23 -21 lines
Diff to previous 1.104 (colored) to selected 1.163 (colored)

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

Bump the kernel rev up to 1.6V

Revision 1.104 / (download) - annotate - [select for diffs], Mon Jun 23 11:02:20 2003 UTC (20 years, 9 months ago) by martin
Branch: MAIN
Changes since 1.103: +5 -1 lines
Diff to previous 1.103 (colored) to selected 1.163 (colored)

Make sure to include opt_foo.h if a defflag option FOO is used.

Revision 1.103 / (download) - annotate - [select for diffs], Fri May 16 13:56:54 2003 UTC (20 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.102: +2 -1 lines
Diff to previous 1.102 (colored) to selected 1.163 (colored)

add a refcount for the radix node usage in the exports.

Revision 1.102 / (download) - annotate - [select for diffs], Mon Apr 28 23:16:28 2003 UTC (20 years, 11 months ago) by bjh21
Branch: MAIN
Changes since 1.101: +6 -5 lines
Diff to previous 1.101 (colored) to selected 1.163 (colored)

Add a new feature-test macro, _NETBSD_SOURCE.  If this is defined
by the application, all NetBSD interfaces are made visible, even
if some other feature-test macro (like _POSIX_C_SOURCE) is defined.
<sys/featuretest.h> defined _NETBSD_SOURCE if none of _ANSI_SOURCE,
_POSIX_C_SOURCE and _XOPEN_SOURCE is defined, so as to preserve
existing behaviour.

This has two major advantages:
+ Programs that require non-POSIX facilities but define _POSIX_C_SOURCE
  can trivially be overruled by putting -D_NETBSD_SOURCE in their CFLAGS.
+ It makes most of the #ifs simpler, in that they're all now ORs of the
  various macros, rather than having checks for (!defined(_ANSI_SOURCE) ||
  !defined(_POSIX_C_SOURCE) || !defined(_XOPEN_SOURCE)) all over the place.

I've tried not to change the semantics of the headers in any case where
_NETBSD_SOURCE wasn't defined, but there were some places where the
current semantics were clearly mad, and retaining them was harder than
correcting them.  In particular, I've mostly normalised things so that
_ANSI_SOURCE gets you the smallest set of stuff, then _POSIX_C_SOURCE,
_XOPEN_SOURCE and _NETBSD_SOURCE in that order.

Tested by building for vax, encouraged by thorpej, and uncontested in
tech-userlevel for a week.

Revision 1.101 / (download) - annotate - [select for diffs], Wed Apr 16 21:44:25 2003 UTC (21 years ago) by christos
Branch: MAIN
Changes since 1.100: +6 -1 lines
Diff to previous 1.100 (colored) to selected 1.163 (colored)

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

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

Revision 1.100 / (download) - annotate - [select for diffs], Sun Apr 6 07:04:42 2003 UTC (21 years ago) by gmcgarry
Branch: MAIN
Changes since 1.99: +2 -4 lines
Diff to previous 1.99 (colored) to selected 1.163 (colored)

Garbage-collect vfs_lock()/vfs_unlock().
Xref vfssubr(9).

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

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

Revision 1.90.2.4 / (download) - annotate - [select for diffs], Thu Oct 10 18:44:45 2002 UTC (21 years, 6 months ago) by jdolecek
Branch: kqueue
Changes since 1.90.2.3: +3 -1 lines
Diff to previous 1.90.2.3 (colored) to branchpoint 1.90 (colored) next main 1.91 (colored) to selected 1.163 (colored)

sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

Revision 1.89.2.7 / (download) - annotate - [select for diffs], Sat Oct 5 22:59:06 2002 UTC (21 years, 6 months ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.89.2.6: +3 -1 lines
Diff to previous 1.89.2.6 (colored) to branchpoint 1.89 (colored) next main 1.90 (colored) to selected 1.163 (colored)

Sync with HEAD.

Revision 1.98 / (download) - annotate - [select for diffs], Sat Sep 21 18:06:08 2002 UTC (21 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, kqueue-beforemerge, kqueue-base, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.97: +3 -1 lines
Diff to previous 1.97 (colored) to selected 1.163 (colored)

Add MNT_GETARGS that retrieves fs specific arguments. Also add an empty
#define for vsf_showexport()

Revision 1.90.2.3 / (download) - annotate - [select for diffs], Fri Sep 6 08:49:58 2002 UTC (21 years, 7 months ago) by jdolecek
Branch: kqueue
Changes since 1.90.2.2: +2 -2 lines
Diff to previous 1.90.2.2 (colored) to branchpoint 1.90 (colored) to selected 1.163 (colored)

sync kqueue branch with HEAD

Revision 1.96.8.1 / (download) - annotate - [select for diffs], Thu Aug 29 00:56:59 2002 UTC (21 years, 7 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.96: +2 -2 lines
Diff to previous 1.96 (colored) next main 1.97 (colored) to selected 1.163 (colored)

catch up with -current.

Revision 1.89.2.6 / (download) - annotate - [select for diffs], Thu Aug 1 02:46:58 2002 UTC (21 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.89.2.5: +2 -2 lines
Diff to previous 1.89.2.5 (colored) to branchpoint 1.89 (colored) to selected 1.163 (colored)

Catch up to -current.

Revision 1.97 / (download) - annotate - [select for diffs], Tue Jul 30 07:40:17 2002 UTC (21 years, 8 months ago) by soren
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.96: +2 -2 lines
Diff to previous 1.96 (colored) to selected 1.163 (colored)

Die, qaddr_t, die! - mnt_data in struct mount is already effectively
a void *, so stop pretending otherwise.

Revision 1.89.2.5 / (download) - annotate - [select for diffs], Thu Feb 28 04:15:25 2002 UTC (22 years, 1 month ago) by nathanw
Branch: nathanw_sa
Changes since 1.89.2.4: +45 -1 lines
Diff to previous 1.89.2.4 (colored) to branchpoint 1.89 (colored) to selected 1.163 (colored)

Catch up to -current.

Revision 1.90.2.2 / (download) - annotate - [select for diffs], Mon Feb 11 20:10:45 2002 UTC (22 years, 2 months ago) by jdolecek
Branch: kqueue
Changes since 1.90.2.1: +45 -1 lines
Diff to previous 1.90.2.1 (colored) to branchpoint 1.90 (colored) to selected 1.163 (colored)

Sync w/ -current.

Revision 1.85.2.1 / (download) - annotate - [select for diffs], Sat Feb 9 23:11:20 2002 UTC (22 years, 2 months ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003
Changes since 1.85: +2 -2 lines
Diff to previous 1.85 (colored) next main 1.86 (colored) to selected 1.163 (colored)

Pull up revision 1.92 (requested by windsor):
  Widen cr_ref to prevent overflow.
(Missed in previous round of commits on this issue.)

Revision 1.96 / (download) - annotate - [select for diffs], Tue Feb 5 21:25:48 2002 UTC (22 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: newlock-base, newlock, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, ifpoll-base, eeh-devprop-base, eeh-devprop
Branch point for: gehenna-devsw
Changes since 1.95: +3 -2 lines
Diff to previous 1.95 (colored) to selected 1.163 (colored)

Add __MNT_CONTROL_FLAGS to __MNT_FLAGS for the sake of completeness..

Revision 1.95 / (download) - annotate - [select for diffs], Tue Feb 5 19:35:03 2002 UTC (22 years, 2 months ago) by chuck
Branch: MAIN
Changes since 1.94: +2 -2 lines
Diff to previous 1.94 (colored) to selected 1.163 (colored)

after discussion with christos, use string "hidden" rather than "ignored"

Revision 1.94 / (download) - annotate - [select for diffs], Wed Jan 30 21:39:51 2002 UTC (22 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.93: +44 -1 lines
Diff to previous 1.93 (colored) to selected 1.163 (colored)

Define the strings for the flags used by mount(8) next to the flags, so
that they don't get out of sync again.

Revision 1.89.2.4 / (download) - annotate - [select for diffs], Fri Jan 11 23:39:51 2002 UTC (22 years, 3 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.89.2.3: +2 -1 lines
Diff to previous 1.89.2.3 (colored) to branchpoint 1.89 (colored) to selected 1.163 (colored)

More catchup.

Revision 1.90.2.1 / (download) - annotate - [select for diffs], Thu Jan 10 20:04:44 2002 UTC (22 years, 3 months ago) by thorpej
Branch: kqueue
Changes since 1.90: +5 -2 lines
Diff to previous 1.90 (colored) to selected 1.163 (colored)

Sync kqueue branch with -current.

Revision 1.93 / (download) - annotate - [select for diffs], Wed Jan 9 00:18:02 2002 UTC (22 years, 3 months ago) by deberg
Branch: MAIN
Changes since 1.92: +2 -1 lines
Diff to previous 1.92 (colored) to selected 1.163 (colored)

add SMBFS

Revision 1.89.2.3 / (download) - annotate - [select for diffs], Tue Jan 8 00:34:43 2002 UTC (22 years, 3 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.89.2.2: +2 -2 lines
Diff to previous 1.89.2.2 (colored) to branchpoint 1.89 (colored) to selected 1.163 (colored)

Catch up to -current.

Revision 1.92 / (download) - annotate - [select for diffs], Thu Nov 29 21:20:17 2001 UTC (22 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.91: +2 -2 lines
Diff to previous 1.91 (colored) to selected 1.163 (colored)

use struct uucred in export_args.

Revision 1.90.4.1 / (download) - annotate - [select for diffs], Mon Oct 1 12:48:11 2001 UTC (22 years, 6 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.90: +3 -1 lines
Diff to previous 1.90 (colored) next main 1.91 (colored) to selected 1.163 (colored)

Catch up with -current.

Revision 1.89.2.2 / (download) - annotate - [select for diffs], Fri Sep 21 22:37:00 2001 UTC (22 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.89.2.1: +3 -1 lines
Diff to previous 1.89.2.1 (colored) to branchpoint 1.89 (colored) to selected 1.163 (colored)

Catch up to -current.

Revision 1.91 / (download) - annotate - [select for diffs], Sat Sep 15 16:13:03 2001 UTC (22 years, 7 months ago) by chs
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, pre-chs-ubcperf, post-chs-ubcperf
Changes since 1.90: +3 -1 lines
Diff to previous 1.90 (colored) to selected 1.163 (colored)

add a new VFS op, vfs_reinit, which is called when desiredvnodes is
adjusted via sysctl.  file systems that have hash tables which are
sized based on the value of this variable now resize those hash tables
using the new value.  the max number of FFS softdeps is also recalculated.

convert various file systems to use the <sys/queue.h> macros for
their hash tables.

Revision 1.89.2.1 / (download) - annotate - [select for diffs], Fri Aug 24 00:13:05 2001 UTC (22 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.89: +4 -4 lines
Diff to previous 1.89 (colored) to selected 1.163 (colored)

Catch up with -current.

Revision 1.90 / (download) - annotate - [select for diffs], Thu Jun 28 08:15:44 2001 UTC (22 years, 9 months ago) by jdolecek
Branch: MAIN
CVS Tags: thorpej-devvp-base
Branch point for: thorpej-devvp, kqueue
Changes since 1.89: +4 -4 lines
Diff to previous 1.89 (colored) to selected 1.163 (colored)

Remove obsoleted comment, note CTL_VFS_NAMES need only be updated
if the new filesystem actually supports sysctl now.

Revision 1.77.2.3 / (download) - annotate - [select for diffs], Sun Feb 11 19:17:37 2001 UTC (23 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.77.2.2: +5 -5 lines
Diff to previous 1.77.2.2 (colored) to branchpoint 1.77 (colored) next main 1.78 (colored) to selected 1.163 (colored)

Sync with HEAD.

Revision 1.89 / (download) - annotate - [select for diffs], Wed Jan 24 20:34:59 2001 UTC (23 years, 2 months ago) by kleink
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: nathanw_sa
Changes since 1.88: +2 -2 lines
Diff to previous 1.88 (colored) to selected 1.163 (colored)

#ifdef __STDC__ -> #if __STDC__

Revision 1.88 / (download) - annotate - [select for diffs], Mon Jan 22 12:17:41 2001 UTC (23 years, 2 months ago) by jdolecek
Branch: MAIN
Changes since 1.87: +4 -4 lines
Diff to previous 1.87 (colored) to selected 1.163 (colored)

make filesystem vnodeop, specop, fifoop and vnodeopv_* arrays const

Revision 1.77.2.2 / (download) - annotate - [select for diffs], Fri Dec 8 09:19:43 2000 UTC (23 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.77.2.1: +3 -1 lines
Diff to previous 1.77.2.1 (colored) to branchpoint 1.77 (colored) to selected 1.163 (colored)

Sync with HEAD.

Revision 1.87 / (download) - annotate - [select for diffs], Mon Nov 27 08:39:52 2000 UTC (23 years, 4 months ago) by chs
Branch: MAIN
Changes since 1.86: +3 -1 lines
Diff to previous 1.86 (colored) to selected 1.163 (colored)

Initial integration of the Unified Buffer Cache project.

Revision 1.77.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 18:11:32 2000 UTC (23 years, 5 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.77: +23 -14 lines
Diff to previous 1.77 (colored) to selected 1.163 (colored)

Update thorpej_scsipi to -current as of a month ago

Revision 1.86 / (download) - annotate - [select for diffs], Mon Jun 26 21:10:34 2000 UTC (23 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.85: +3 -3 lines
Diff to previous 1.85 (colored) to selected 1.163 (colored)

add an MNT_IGNORE flag as a hint to df not to list the filesystem by default.

Revision 1.83.2.1 / (download) - annotate - [select for diffs], Thu Jun 22 17:10:24 2000 UTC (23 years, 9 months ago) by minoura
Branch: minoura-xpg4dl
Changes since 1.83: +3 -3 lines
Diff to previous 1.83 (colored) next main 1.84 (colored) to selected 1.163 (colored)

Sync w/ netbsd-1-5-base.

Revision 1.85 / (download) - annotate - [select for diffs], Sat Jun 10 18:44:44 2000 UTC (23 years, 10 months ago) by sommerfeld
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2
Branch point for: netbsd-1-5
Changes since 1.84: +2 -2 lines
Diff to previous 1.84 (colored) to selected 1.163 (colored)

Fix assorted bugs around shutdown/reboot/panic time.
 - add a new global variable, doing_shutdown, which is nonzero if
vfs_shutdown() or panic() have been called.
- in panic, set RB_NOSYNC if doing_shutdown is already set on entry
so we don't reenter vfs_shutdown if we panic'ed there.
 - in vfs_shutdown, don't use proc0's process for sys_sync unless
curproc is NULL.
 - in lockmgr, attribute successful locks to proc0 if doing_shutdown
&& curproc==NULL, and  panic if we can't get the lock right away; avoids the
spurious lockmgr DIAGNOSTIC panic from the ddb reboot command.
 - in subr_pool, deal with curproc==NULL in the doing_shutdown case.
 - in mfs_strategy, bitbucket writes if doing_shutdown, so we don't
wedge waiting for the mfs process.
 - in ltsleep, treat ((curproc == NULL) && doing_shutdown) like the
panicstr case.

Appears to fix: kern/9239, kern/10187, kern/9367.
May also fix kern/10122.

Revision 1.84 / (download) - annotate - [select for diffs], Sat Jun 10 18:27:04 2000 UTC (23 years, 10 months ago) by assar
Branch: MAIN
Changes since 1.83: +2 -2 lines
Diff to previous 1.83 (colored) to selected 1.163 (colored)

make vfs_getnewfsid only take one argument and fetch the name of the
filesystem from the supplied mount argument.  also make makefstype
take a const parameter.  update all the callers.

Revision 1.83 / (download) - annotate - [select for diffs], Wed May 3 14:53:15 2000 UTC (23 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.82: +1 -3 lines
Diff to previous 1.82 (colored) to selected 1.163 (colored)

Remove obsolete comment.

Revision 1.82 / (download) - annotate - [select for diffs], Thu Mar 16 18:08:17 2000 UTC (24 years, 1 month ago) by jdolecek
Branch: MAIN
Changes since 1.81: +3 -2 lines
Diff to previous 1.81 (colored) to selected 1.163 (colored)

Add new VFS op routine - vfs_done and call it on filesystem detach
in vfs_detach(). vfs_done may free global filesystem's resources,
typically those allocated in respective filesystem's init function.
Needed so those filesystems which went in via LKM have a chance to
clean after themselves before unloading. This fixes random panics
when LKM for filesystem using pools was loaded and unloaded several
times.

For each leaf filesystem, add appropriate vfs_done routine.

Revision 1.81 / (download) - annotate - [select for diffs], Mon Mar 13 18:52:06 2000 UTC (24 years, 1 month ago) by jdolecek
Branch: MAIN
Changes since 1.80: +2 -1 lines
Diff to previous 1.80 (colored) to selected 1.163 (colored)

add MOUNT_NTFS to CTL_VFS_NAMES macro

Revision 1.80 / (download) - annotate - [select for diffs], Wed Feb 16 11:57:00 2000 UTC (24 years, 2 months ago) by fvdl
Branch: MAIN
Changes since 1.79: +4 -2 lines
Diff to previous 1.79 (colored) to selected 1.163 (colored)

Add sysctl type for "usermount".

Revision 1.79 / (download) - annotate - [select for diffs], Thu Jan 20 19:06:13 2000 UTC (24 years, 3 months ago) by wrstuden
Branch: MAIN
CVS Tags: chs-ubc2-newbase
Changes since 1.78: +2 -1 lines
Diff to previous 1.78 (colored) to selected 1.163 (colored)

Add overlay, a layered file system which overlays itself on
the underlying fs, rather than exporting it to another part of the
directory name space.

Revision 1.77.8.2 / (download) - annotate - [select for diffs], Mon Dec 27 18:36:34 1999 UTC (24 years, 3 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.77.8.1: +13 -7 lines
Diff to previous 1.77.8.1 (colored) to branchpoint 1.77 (colored) next main 1.78 (colored) to selected 1.163 (colored)

Pull up to last week's -current.

Revision 1.77.8.1 / (download) - annotate - [select for diffs], Tue Dec 21 23:20:05 1999 UTC (24 years, 4 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.77: +2 -1 lines
Diff to previous 1.77 (colored) to selected 1.163 (colored)

Initial commit of recent changes to make DEV_BSIZE go away.

Runs on i386, needs work on other arch's. Main kernel routines should be
fine, but a number of the stand programs need help.

cd, fd, ccd, wd, and sd have been updated. sd has been tested with non-512
byte block devices. vnd, raidframe, and lfs need work.

Non 2**n block support is automatic for LKM's and conditional for kernels
on "options NON_PO2_BLOCKS".

Revision 1.78 / (download) - annotate - [select for diffs], Mon Nov 15 18:49:12 1999 UTC (24 years, 5 months ago) by fvdl
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221
Changes since 1.77: +13 -7 lines
Diff to previous 1.77 (colored) to selected 1.163 (colored)

Add Kirk McKusick's soft updates code to the trunk. Not enabled by
default, as the copyright on the main file (ffs_softdep.c) is such
that is has been put into gnusrc. options SOFTDEP will pull this
in. This code also contains the trickle syncer.

Bump version number to 1.4O

Revision 1.77.4.2 / (download) - annotate - [select for diffs], Thu Oct 21 19:21:31 1999 UTC (24 years, 6 months ago) by fvdl
Branch: fvdl-softdep
Changes since 1.77.4.1: +2 -1 lines
Diff to previous 1.77.4.1 (colored) to branchpoint 1.77 (colored) next main 1.78 (colored) to selected 1.163 (colored)

Add workaround hacks to enable the softdep code to call getnewvnode()
when a filesystem is being unmounted. The problem is that the softdep
code stored inode numbers in the worklist structures, and does not
use vnodes. So VFS_VGET must be used to get a vnode during the final
flush stages, and this can call getnewvnode(), resulting in
a vfs_busy() + MNT_UNMOUNT hang.

I've tried to make the softdep code use vnodes, but that's a pain,
since it gets called at points were vnode ops are dangerous (i.e.
interrupt context, and uncertainty whether a vnode is locked, etc).

This is all icky stuff, but it does get things much closer to a
working state..

Revision 1.77.4.1 / (download) - annotate - [select for diffs], Tue Oct 19 12:50:29 1999 UTC (24 years, 6 months ago) by fvdl
Branch: fvdl-softdep
Changes since 1.77: +10 -5 lines
Diff to previous 1.77 (colored) to selected 1.163 (colored)

Bring in Kirk McKusick's FFS softdep code on a branch.

Revision 1.74.4.4 / (download) - annotate - [select for diffs], Mon Aug 2 22:55:59 1999 UTC (24 years, 8 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.74.4.3: +3 -2 lines
Diff to previous 1.74.4.3 (colored) to branchpoint 1.74 (colored) next main 1.75 (colored) to selected 1.163 (colored)

Update from trunk.

Revision 1.77 / (download) - annotate - [select for diffs], Sun Jul 4 16:20:12 1999 UTC (24 years, 9 months ago) by sommerfeld
Branch: MAIN
CVS Tags: fvdl-softdep-base, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-base
Branch point for: wrstuden-devbsize, thorpej_scsipi, fvdl-softdep
Changes since 1.76: +3 -2 lines
Diff to previous 1.76 (colored) to selected 1.163 (colored)

Fix kern/7906: race between unmount and getnewvnode()

mp->mnt_flags & MNT_MWAIT is replaced by mp->mnt_wcnt, and a new mount
flag MNT_GONE is created (reusing the same bit).

In insmntque(), add DIAGNOSTIC check to fail if the filesystem vnode
is being moved to is in the process of being unmounted.

getnewvnode() now protects the list of vnodes active on mp with
vfs_busy()/vfs_unbusy().

To avoid generating spurious errors during a doomed unmount, change
the "wait for unmount to finish" protocol between dounmount() and
vfs_busy().  In vfs_busy(), instead of only sleeping once, sleep until
either MNT_UNMOUNT is clear or MNT_GONE is set; also, maintain a count
of waiters in mp->mnt_wcnt so that dounmount() knows when it's safe to
free mp.

tested by running a "while :; do mount /d1; umount -f /d1; done" loop
against multiple find(1) processes.

Revision 1.74.4.3 / (download) - annotate - [select for diffs], Sun Jul 4 01:49:25 1999 UTC (24 years, 9 months ago) by chs
Branch: chs-ubc2
Changes since 1.74.4.2: +3 -1 lines
Diff to previous 1.74.4.2 (colored) to branchpoint 1.74 (colored) to selected 1.163 (colored)

add mnt_fs_bshift and mnt_dev_bshift to struct mount.
these will allow greater sharing of code between filesystems.

Revision 1.74.4.2 / (download) - annotate - [select for diffs], Thu Jul 1 23:50:36 1999 UTC (24 years, 9 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.74.4.1: +9 -1 lines
Diff to previous 1.74.4.1 (colored) to branchpoint 1.74 (colored) to selected 1.163 (colored)

Sync w/ -current.

Revision 1.76 / (download) - annotate - [select for diffs], Tue Jun 29 22:18:48 1999 UTC (24 years, 9 months ago) by wrstuden
Branch: MAIN
Changes since 1.75: +9 -1 lines
Diff to previous 1.75 (colored) to selected 1.163 (colored)

Add fhopen, fhstat, fhstatfs syscalls. Also move getfh in from the nfs
syscall code.

Revision 1.74.4.1 / (download) - annotate - [select for diffs], Mon Jun 21 01:30:20 1999 UTC (24 years, 10 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.74: +2 -1 lines
Diff to previous 1.74 (colored) to selected 1.163 (colored)

Sync w/ -current.

Revision 1.75 / (download) - annotate - [select for diffs], Thu May 6 15:29:23 1999 UTC (24 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.74: +2 -1 lines
Diff to previous 1.74 (colored) to selected 1.163 (colored)

Add NTFS related constants.

Revision 1.74 / (download) - annotate - [select for diffs], Thu Mar 25 05:06:32 1999 UTC (25 years ago) by sommerfe
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame
Branch point for: chs-ubc2
Changes since 1.73: +12 -3 lines
Diff to previous 1.73 (colored) to selected 1.163 (colored)

Move MNT_NODEVMTIME so it no longer duplicates the value of MNT_EXPUBLIC.
Add  #defines for the four unused flag bits to make this sort of error less
likely in the future

Revision 1.73 / (download) - annotate - [select for diffs], Sat Feb 27 00:47:35 1999 UTC (25 years, 1 month ago) by wrstuden
Branch: MAIN
Changes since 1.72: +2 -2 lines
Diff to previous 1.72 (colored) to selected 1.163 (colored)

Rationalize the vfs_checkexp macro to be VFS_CHECKEXP.

Revision 1.72 / (download) - annotate - [select for diffs], Fri Feb 26 23:44:48 1999 UTC (25 years, 1 month ago) by wrstuden
Branch: MAIN
Changes since 1.71: +7 -5 lines
Diff to previous 1.71 (colored) to selected 1.163 (colored)

Modify vfsops to seperate vfs_fhtovp() into two routines. vfs_fhtovp() now
only handles the file handle to vnode conversion, and a new call,
vfs_checkexp(), performs the export verification.

Revision 1.71 / (download) - annotate - [select for diffs], Tue Dec 1 23:16:23 1998 UTC (25 years, 4 months ago) by kenh
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach
Changes since 1.70: +2 -1 lines
Diff to previous 1.70 (colored) to selected 1.163 (colored)

Add new MNT_NODEVMTIME mount flag.

Revision 1.70 / (download) - annotate - [select for diffs], Fri Nov 13 20:08:06 1998 UTC (25 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.69: +42 -1 lines
Diff to previous 1.69 (colored) to selected 1.163 (colored)

Some changes to make the vfs. sysctl toplevel work.  Wow, we really need
a new sysctl interface.

Revision 1.69 / (download) - annotate - [select for diffs], Sat Sep 12 15:05:48 1998 UTC (25 years, 7 months ago) by rvb
Branch: MAIN
CVS Tags: chs-ubc-base, chs-ubc
Changes since 1.68: +3 -2 lines
Diff to previous 1.68 (colored) to selected 1.163 (colored)

Change cfs/CFS in symbols, strings and constants to coda/CODA
to avoid fs conflicts.

Revision 1.68 / (download) - annotate - [select for diffs], Fri Aug 14 03:28:56 1998 UTC (25 years, 8 months ago) by mark
Branch: MAIN
Changes since 1.67: +2 -1 lines
Diff to previous 1.67 (colored) to selected 1.163 (colored)

Define the filecore filesystem MOUNT_FILECORE.

Revision 1.67 / (download) - annotate - [select for diffs], Fri Jul 24 15:18:37 1998 UTC (25 years, 8 months ago) by rvb
Branch: MAIN
CVS Tags: eeh-paddr_t-base, eeh-paddr_t
Changes since 1.66: +2 -1 lines
Diff to previous 1.66 (colored) to selected 1.163 (colored)

Coda glue

Revision 1.66 / (download) - annotate - [select for diffs], Sun Mar 8 15:12:49 1998 UTC (26 years, 1 month ago) by kleink
Branch: MAIN
Changes since 1.65: +2 -2 lines
Diff to previous 1.65 (colored) to selected 1.163 (colored)

Fix a whitespace botch.

Revision 1.65 / (download) - annotate - [select for diffs], Tue Mar 3 02:22:00 1998 UTC (26 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.64: +2 -1 lines
Diff to previous 1.64 (colored) to selected 1.163 (colored)

Export spechash_slock; it's used outside of vfs_subr.c

Revision 1.64 / (download) - annotate - [select for diffs], Sun Mar 1 02:24:13 1998 UTC (26 years, 1 month ago) by fvdl
Branch: MAIN
Changes since 1.63: +58 -142 lines
Diff to previous 1.63 (colored) to selected 1.163 (colored)

Merge with Lite2 + local changes

Revision 1.1.1.3 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 1 02:14:02 1998 UTC (26 years, 1 month ago) by fvdl
Branch: WFJ-920714, CSRG
CVS Tags: lite-2
Changes since 1.1.1.2: +109 -211 lines
Diff to previous 1.1.1.2 (colored) to selected 1.163 (colored)

Import 4.4BSD-Lite2

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 1 02:11:06 1998 UTC (26 years, 1 month ago) by fvdl
Branch: WFJ-920714, CSRG
CVS Tags: lite-1, date-03-may-96
Changes since 1.1.1.1: +191 -62 lines
Diff to previous 1.1.1.1 (colored) to selected 1.163 (colored)

Import 4.4BSD-Lite for reference

Revision 1.63 / (download) - annotate - [select for diffs], Wed Feb 18 07:09:15 1998 UTC (26 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.62: +16 -5 lines
Diff to previous 1.62 (colored) to selected 1.163 (colored)

Add a pointer to an array of struct vnodeopv_desc *'s, for use by
vfs_attach(), and a LIST_ENTRY to link to the kernel's list of
file systems to struct vfsops.

Declare the vfs_list_head structure, and prototype new functions
vfs_attach(), vfs_detach(), vfs_opv_init(), and vfs_opv_free().

Revision 1.60.2.2 / (download) - annotate - [select for diffs], Thu Nov 20 03:16:40 1997 UTC (26 years, 5 months ago) by mellon
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA
Changes since 1.60.2.1: +2 -2 lines
Diff to previous 1.60.2.1 (colored) to branchpoint 1.60 (colored) next main 1.61 (colored) to selected 1.163 (colored)

Pull rev 1.62 up from trunk (enami)

Revision 1.62 / (download) - annotate - [select for diffs], Tue Nov 18 21:35:16 1997 UTC (26 years, 5 months ago) by enami
Branch: MAIN
Changes since 1.61: +2 -2 lines
Diff to previous 1.61 (colored) to selected 1.163 (colored)

Define struct statfs.f_flags as unsigned short instead of signed short.
Fixes PR#4530.  Suggested by Jason R. Thorpe.

Revision 1.60.2.1 / (download) - annotate - [select for diffs], Fri Oct 31 07:49:57 1997 UTC (26 years, 5 months ago) by mellon
Branch: netbsd-1-3
Changes since 1.60: +5 -2 lines
Diff to previous 1.60 (colored) to selected 1.163 (colored)

Pull rev 1.61 up from trunk (enami)

Revision 1.61 / (download) - annotate - [select for diffs], Thu Oct 30 22:47:09 1997 UTC (26 years, 5 months ago) by enami
Branch: MAIN
Changes since 1.60: +5 -2 lines
Diff to previous 1.60 (colored) to selected 1.163 (colored)

Conditionalize the recognition of symbolic link permission by
per fs mount option `symperm'.

Revision 1.60 / (download) - annotate - [select for diffs], Sun Oct 19 01:37:53 1997 UTC (26 years, 6 months ago) by fvdl
Branch: MAIN
CVS Tags: netbsd-1-3-base
Branch point for: netbsd-1-3
Changes since 1.59: +2 -1 lines
Diff to previous 1.59 (colored) to selected 1.163 (colored)

Add NFSMNT_XLATECOOKIE

Revision 1.58.4.1 / (download) - annotate - [select for diffs], Tue Oct 14 16:03:26 1997 UTC (26 years, 6 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.58: +21 -17 lines
Diff to previous 1.58 (colored) next main 1.59 (colored) to selected 1.163 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.59 / (download) - annotate - [select for diffs], Fri Oct 10 02:12:25 1997 UTC (26 years, 6 months ago) by fvdl
Branch: MAIN
CVS Tags: marc-pcmcia-base
Changes since 1.58: +21 -17 lines
Diff to previous 1.58 (colored) to selected 1.163 (colored)

Add cookie field to buffer structure to be able to store 64bit offsets.
Redo NFS mounting flags; split flags into internal and public, having
2 seperate fields in the NFS mount structure. Add prototype for
vn_readdir to vnode.h

Revision 1.58 / (download) - annotate - [select for diffs], Tue Jun 24 23:47:44 1997 UTC (26 years, 9 months ago) by fvdl
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal, marc-pcmcia-bp, bouyer-scsipi
Branch point for: marc-pcmcia
Changes since 1.57: +17 -1 lines
Diff to previous 1.57 (colored) to selected 1.163 (colored)

Add MNT_EXPUBLIC flag, add index file field to export structure and
nfs_public structure, for WebNFS support. Also add prototypes of
function added to vfs_subr.c

Revision 1.57 / (download) - annotate - [select for diffs], Wed Jun 11 10:40:18 1997 UTC (26 years, 10 months ago) by bouyer
Branch: MAIN
Changes since 1.56: +2 -1 lines
Diff to previous 1.56 (colored) to selected 1.163 (colored)

Support ext2fs.

Revision 1.56 / (download) - annotate - [select for diffs], Sun Mar 23 20:54:06 1997 UTC (27 years, 1 month ago) by fvdl
Branch: MAIN
Changes since 1.55: +2 -1 lines
Diff to previous 1.55 (colored) to selected 1.163 (colored)

Add MNT_EXNORESPORT option.

Revision 1.53.4.1 / (download) - annotate - [select for diffs], Wed Mar 12 21:26:08 1997 UTC (27 years, 1 month ago) by is
Branch: is-newarp
Changes since 1.53: +1 -2 lines
Diff to previous 1.53 (colored) next main 1.54 (colored) to selected 1.163 (colored)

Merge in changes from Trunk

Revision 1.55 / (download) - annotate - [select for diffs], Wed Mar 12 12:09:47 1997 UTC (27 years, 1 month ago) by fvdl
Branch: MAIN
CVS Tags: is-newarp-before-merge
Changes since 1.54: +2 -2 lines
Diff to previous 1.54 (colored) to selected 1.163 (colored)

Add NOATIME to the visible flags (statfs, fstatfs).

Revision 1.54 / (download) - annotate - [select for diffs], Mon Mar 10 03:27:22 1997 UTC (27 years, 1 month ago) by mikel
Branch: MAIN
Changes since 1.53: +1 -2 lines
Diff to previous 1.53 (colored) to selected 1.163 (colored)

LOFS is long gone

Revision 1.53 / (download) - annotate - [select for diffs], Fri Jan 31 03:02:57 1997 UTC (27 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: mrg-vm-swap, is-newarp-base
Branch point for: is-newarp
Changes since 1.52: +4 -1 lines
Diff to previous 1.52 (colored) to selected 1.163 (colored)

- Add a (*vfs_mountroot)() entry to struct vfsops, used by the
  vfs_mountroot() function.
- Prototype vfs_mountroot() and vfs_getopsbyname().

Revision 1.52 / (download) - annotate - [select for diffs], Thu Jan 30 09:53:59 1997 UTC (27 years, 2 months ago) by tls
Branch: MAIN
Changes since 1.51: +2 -1 lines
Diff to previous 1.51 (colored) to selected 1.163 (colored)

add support for noatime mount flag

Revision 1.51 / (download) - annotate - [select for diffs], Wed Jan 22 07:09:19 1997 UTC (27 years, 3 months ago) by mikel
Branch: MAIN
Changes since 1.50: +6 -2 lines
Diff to previous 1.50 (colored) to selected 1.163 (colored)

add multiple inclusion protection

Revision 1.50.2.1 / (download) - annotate - [select for diffs], Tue Jan 14 21:27:26 1997 UTC (27 years, 3 months ago) by thorpej
Branch: thorpej-setroot
Changes since 1.50: +4 -1 lines
Diff to previous 1.50 (colored) next main 1.51 (colored) to selected 1.163 (colored)

Snapshot of work-in-progress, committed to private branch.

These changes implement machine-independent root device and file system
selection.  Notable features:

	- All ports behave in a consistent manner regarding root
	  device selection.
	- No more "options GENERIC"; all kernels have the ability
	  to boot with RB_ASKNAME to select root device and file system
	  type.
	- Root file system type can be wildcarded; a machine-independent
	  function will try all possible file systems for the selected
	  root device until one succeeds.
	- If the root file system fails to mount, the operator will
	  be given the chance to select a new root device and file
	  system type, rather than having the machine simply panic.
	- nfs_mountroot() no longer panics if any part of the NFS
	  mount process fails; it now returns an error, giving the
	  operator a chance to recover.
	- New, more consistent, config(8) grammar.  The constructs:

		config netbsd swap generic
		config netbsd root on nfs

	  have been replaced with:

		config netbsd root on ? type ?
		config netbsd root on ? type nfs

	  Additionally, the operator may select or wildcard root file
	  system type in the kernel configuration file:

		config netbsd root on cd0a type cd9660

	  config(8) now requires that a "root" specification be
	  made.  "root" may be wired down or wildcarded.  "swap" and
	  "dump" specifications are optional, and follow previous
	  semantics.

	- config(8) has a new "file-system" keyword, used to configure
	  file systems into the kernel.  Eventually, this will be used
	  to generate the default vfssw[].

	- "options NFSCLIENT" is obsolete, and is replaced by
	  "file-system NFS".  "options NFSSERVER" still exists, since
	  NFS server support is independent of the NFS file system
	  client.

	- sys/arch/<foo>/<foo>/swapgeneric.c is no longer used, and
	  will be removed; all information is now generated by config(8).

As of this commit, all ports except arm32 have been updated to use
the new setroot().  Only SPARC, i386, and Alpha ports have been
tested at this time.  Port masters should test these changes on their
ports, and report any problems back to me.

More changes are on their way, including RB_ASKNAME support in
nfs_mountroot() (to prompt for server address and path) and, potentially,
the ability to select rarp/bootparam or bootp in nfs_mountroot().

Revision 1.50 / (download) - annotate - [select for diffs], Sun Dec 22 10:10:38 1996 UTC (27 years, 4 months ago) by cgd
Branch: MAIN
Branch point for: thorpej-setroot
Changes since 1.49: +4 -3 lines
Diff to previous 1.49 (colored) to selected 1.163 (colored)

Change the second and third args to struct vfsops' (*vfs_mount)() to
'const char *', and 'void *', respectively.  The second arg is taken directly
from user arguments, and is const there, so must be const in the prototypes
and functions.  The third arg is also taken directly from user arguments.
It doesn't have to be changed, but since it's cleaner to keep the type
the same as the user arg's type, and I'm already making the 'const char *'
change...

Revision 1.49 / (download) - annotate - [select for diffs], Wed Oct 23 22:53:09 1996 UTC (27 years, 5 months ago) by cgd
Branch: MAIN
Changes since 1.48: +3 -2 lines
Diff to previous 1.48 (colored) to selected 1.163 (colored)

add the MNT_NOCOREDUMP file system flag, which prevents the system
from writing core dumps on file systems for which it is set.  Also, add
a comment noting that the mount flags aren't in numerical order.

Revision 1.48 / (download) - annotate - [select for diffs], Sun Feb 18 11:55:47 1996 UTC (28 years, 2 months ago) by fvdl
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2
Changes since 1.47: +20 -20 lines
Diff to previous 1.47 (colored) to selected 1.163 (colored)

Changes for NFSv3 merge: change NFS mount arguments and add B_NEEDCOMMIT

Revision 1.47 / (download) - annotate - [select for diffs], Fri Feb 9 18:25:16 1996 UTC (28 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.46: +10 -3 lines
Diff to previous 1.46 (colored) to selected 1.163 (colored)

Filesystem prototype changes

Revision 1.46 / (download) - annotate - [select for diffs], Thu Feb 8 18:30:10 1996 UTC (28 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.45: +2 -2 lines
Diff to previous 1.45 (colored) to selected 1.163 (colored)

mount(2) takes a const char *.  Pointed out by der Mouse.

Revision 1.45 / (download) - annotate - [select for diffs], Fri Jan 19 14:29:25 1996 UTC (28 years, 3 months ago) by leo
Branch: MAIN
Changes since 1.44: +2 -1 lines
Diff to previous 1.44 (colored) to selected 1.163 (colored)

Instead of using '#ifdef atari' to handle the differences of Gemdosfs and
Msdosfs, use a flag that can be set by mount_msdos. This is definitely
more flexible.

Revision 1.44 / (download) - annotate - [select for diffs], Sat Nov 11 22:00:21 1995 UTC (28 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.43: +3 -2 lines
Diff to previous 1.43 (colored) to selected 1.163 (colored)

ffs -> ufs

Revision 1.42.2.1 / (download) - annotate - [select for diffs], Wed Nov 1 00:06:31 1995 UTC (28 years, 5 months ago) by jtc
Branch: netbsd-1-1
CVS Tags: netbsd-1-1-RELEASE, netbsd-1-1-PATCH001
Changes since 1.42: +3 -2 lines
Diff to previous 1.42 (colored) next main 1.43 (colored) to selected 1.163 (colored)

complete ufs -> ffs change (From John Kohl; PR #1403)

Revision 1.43 / (download) - annotate - [select for diffs], Sun Oct 15 15:33:26 1995 UTC (28 years, 6 months ago) by ws
Branch: MAIN
Changes since 1.42: +8 -1 lines
Diff to previous 1.42 (colored) to selected 1.163 (colored)

Add support for Win'95 long filenames to msdosfs

Revision 1.42 / (download) - annotate - [select for diffs], Thu Jun 29 10:05:16 1995 UTC (28 years, 9 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-1-base
Branch point for: netbsd-1-1
Changes since 1.41: +6 -6 lines
Diff to previous 1.41 (colored) to selected 1.163 (colored)

slight cleanup

Revision 1.41 / (download) - annotate - [select for diffs], Sun Jun 18 14:48:16 1995 UTC (28 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.40: +3 -3 lines
Diff to previous 1.40 (colored) to selected 1.163 (colored)

don't assume the f_fsnamelen is nul-truncated or longer than MFSNAMELEN

Revision 1.40 / (download) - annotate - [select for diffs], Fri Apr 21 21:59:41 1995 UTC (29 years ago) by mycroft
Branch: MAIN
Changes since 1.39: +3 -2 lines
Diff to previous 1.39 (colored) to selected 1.163 (colored)

Add prototype for vfs_shutdown().

Revision 1.39 / (download) - annotate - [select for diffs], Sun Mar 26 20:24:24 1995 UTC (29 years ago) by jtc
Branch: MAIN
Changes since 1.38: +9 -9 lines
Diff to previous 1.38 (colored) to selected 1.163 (colored)

KERNEL -> _KERNEL

Revision 1.38 / (download) - annotate - [select for diffs], Wed Jan 18 06:15:31 1995 UTC (29 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.37: +4 -3 lines
Diff to previous 1.37 (colored) to selected 1.163 (colored)

Turn mountlist into a CIRCLEQ, and handle setting and checking of MNT_ROOTFS
differently.

Revision 1.37 / (download) - annotate - [select for diffs], Sun Jan 8 22:53:28 1995 UTC (29 years, 3 months ago) by cgd
Branch: MAIN
Changes since 1.36: +1 -2 lines
Diff to previous 1.36 (colored) to selected 1.163 (colored)

light cleanup, related to spacing...

Revision 1.36 / (download) - annotate - [select for diffs], Fri Dec 16 04:22:56 1994 UTC (29 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.35: +5 -5 lines
Diff to previous 1.35 (colored) to selected 1.163 (colored)

Sync with CSRG.

Revision 1.35 / (download) - annotate - [select for diffs], Sat Oct 29 08:20:18 1994 UTC (29 years, 5 months ago) by cgd
Branch: MAIN
Changes since 1.34: +2 -2 lines
Diff to previous 1.34 (colored) to selected 1.163 (colored)

clean up types usage.

Revision 1.33.2.1 / (download) - annotate - [select for diffs], Thu Oct 6 04:16:50 1994 UTC (29 years, 6 months ago) by mycroft
Branch: netbsd-1-0
CVS Tags: netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0
Changes since 1.33: +2 -1 lines
Diff to previous 1.33 (colored) next main 1.34 (colored) to selected 1.163 (colored)

Update from trunk.

Revision 1.34 / (download) - annotate - [select for diffs], Thu Sep 22 02:06:10 1994 UTC (29 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.33: +2 -1 lines
Diff to previous 1.33 (colored) to selected 1.163 (colored)

Add a reference count for each VFS.

Revision 1.33 / (download) - annotate - [select for diffs], Wed Jun 29 06:44:41 1994 UTC (29 years, 9 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-0-base
Branch point for: netbsd-1-0
Changes since 1.32: +2 -1 lines
Diff to previous 1.32 (colored) to selected 1.163 (colored)

New RCS ID's, take two.  they're more aesthecially pleasant, and use 'NetBSD'

Revision 1.32 / (download) - annotate - [select for diffs], Mon Jun 27 19:31:35 1994 UTC (29 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.31: +2 -2 lines
Diff to previous 1.31 (colored) to selected 1.163 (colored)

new standard, minimally intrusive ID format

Revision 1.31 / (download) - annotate - [select for diffs], Wed Jun 8 11:38:45 1994 UTC (29 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.30: +155 -87 lines
Diff to previous 1.30 (colored) to selected 1.163 (colored)

Update to 4.4-Lite fs code, with local changes.

Revision 1.30 / (download) - annotate - [select for diffs], Wed May 11 18:50:39 1994 UTC (29 years, 11 months ago) by chopps
Branch: MAIN
Changes since 1.29: +12 -1 lines
Diff to previous 1.29 (colored) to selected 1.163 (colored)

add support for adosfs.

Revision 1.29 / (download) - annotate - [select for diffs], Mon Apr 25 03:50:33 1994 UTC (29 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.28: +4 -2 lines
Diff to previous 1.28 (colored) to selected 1.163 (colored)

some prototype cleanup, eliminate/replace bogus types (e.g. quad and
u_quad) -> use better types (e.g. quad_t & u_quad_t in inodes),
some cleanup.

Revision 1.28 / (download) - annotate - [select for diffs], Sat Apr 23 07:55:23 1994 UTC (30 years ago) by cgd
Branch: MAIN
Changes since 1.27: +4 -2 lines
Diff to previous 1.27 (colored) to selected 1.163 (colored)

make fs types consistent over new kernels.  also, some proto foo.

Revision 1.27 / (download) - annotate - [select for diffs], Thu Apr 21 07:49:23 1994 UTC (30 years ago) by cgd
Branch: MAIN
Changes since 1.26: +9 -6 lines
Diff to previous 1.26 (colored) to selected 1.163 (colored)

Convert mount, vnode, and buf structs to use <sys/queue.h>.  Also,
some knf and structure frobbing to do along with it.

Revision 1.26.2.2 / (download) - annotate - [select for diffs], Thu Apr 14 04:06:40 1994 UTC (30 years ago) by cgd
Branch: nvm
Changes since 1.26.2.1: +331 -0 lines
Diff to previous 1.26.2.1 (colored) to branchpoint 1.26 (colored) next main 1.27 (colored) to selected 1.163 (colored)

fs types are names now.

Revision 1.26.2.1, Thu Apr 14 04:06:39 1994 UTC (30 years ago) by cgd
Branch: nvm
Changes since 1.26: +0 -331 lines
FILE REMOVED

file mount.h was added on branch nvm on 1994-04-14 04:06:40 +0000

Revision 1.26 / (download) - annotate - [select for diffs], Thu Apr 14 04:06:39 1994 UTC (30 years ago) by cgd
Branch: MAIN
CVS Tags: wnvm, nvm-base
Branch point for: nvm
Changes since 1.25: +22 -19 lines
Diff to previous 1.25 (colored) to selected 1.163 (colored)

fs types are names now.

Revision 1.25 / (download) - annotate - [select for diffs], Tue Apr 12 05:03:12 1994 UTC (30 years ago) by cgd
Branch: MAIN
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored) to selected 1.163 (colored)

kill MOUNT_AFS; it's not going into the source tree in the near (long?) term.

Revision 1.24 / (download) - annotate - [select for diffs], Thu Apr 7 07:13:28 1994 UTC (30 years ago) by cgd
Branch: MAIN
Changes since 1.23: +3 -2 lines
Diff to previous 1.23 (colored) to selected 1.163 (colored)

change msdosfs mount args again, and add MNT_USER flag, for user-mntd fs's

Revision 1.23 / (download) - annotate - [select for diffs], Thu Apr 7 03:36:06 1994 UTC (30 years ago) by cgd
Branch: MAIN
Changes since 1.22: +4 -4 lines
Diff to previous 1.22 (colored) to selected 1.163 (colored)

why bother with prefixes...

Revision 1.22 / (download) - annotate - [select for diffs], Thu Apr 7 02:32:31 1994 UTC (30 years ago) by cgd
Branch: MAIN
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored) to selected 1.163 (colored)

typo

Revision 1.21 / (download) - annotate - [select for diffs], Thu Apr 7 02:27:35 1994 UTC (30 years ago) by cgd
Branch: MAIN
Changes since 1.20: +4 -1 lines
Diff to previous 1.20 (colored) to selected 1.163 (colored)

more info for msdosfs mounts

Revision 1.20 / (download) - annotate - [select for diffs], Sun Mar 27 09:09:48 1994 UTC (30 years ago) by cgd
Branch: MAIN
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored) to selected 1.163 (colored)

expand uid_t/gid_t/off_t

Revision 1.19 / (download) - annotate - [select for diffs], Thu Jan 6 12:35:38 1994 UTC (30 years, 3 months ago) by cgd
Branch: MAIN
Changes since 1.18: +2 -1 lines
Diff to previous 1.18 (colored) to selected 1.163 (colored)

add MNT_NOCREATE flag

Revision 1.18 / (download) - annotate - [select for diffs], Tue Dec 21 05:48:50 1993 UTC (30 years, 4 months ago) by cgd
Branch: MAIN
Changes since 1.17: +11 -9 lines
Diff to previous 1.17 (colored) to selected 1.163 (colored)

clean up, kill typos, add types

Revision 1.17.2.2 / (download) - annotate - [select for diffs], Wed Nov 10 19:56:55 1993 UTC (30 years, 5 months ago) by mycroft
Branch: magnum
Changes since 1.17.2.1: +2 -2 lines
Diff to previous 1.17.2.1 (colored) to branchpoint 1.17 (colored) next main 1.18 (colored) to selected 1.163 (colored)

Remove remaining references to `UNIX'.

Revision 1.17.2.1 / (download) - annotate - [select for diffs], Fri Sep 24 08:57:54 1993 UTC (30 years, 6 months ago) by mycroft
Branch: magnum
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored) to selected 1.163 (colored)

Changes from trunk.
conf.h, disk.h, disklabel.h: strategy functions return void.  dump functions
take dev, blkno, maddr, and length.
dkstat.h: Add CP_INTR.
mount.h: Make fsid_t a structure with two longs inside, now that quad is gone.
proc.h: Replace p_[us]time with p_[usi]ticks.
systm.h: Don't declare spl*() or psuedo-device attach functions.  Declare
endtsleep().  Change declaration of panic().
types.h: Replace u_quad and quad with u_quad_t and quad_t, which use the GCC
`long long' type.  Modify qaddr_t accordingly.
vnode.h: Change va_size and va_bytes to u_quad_ts.

Revision 1.17 / (download) - annotate - [select for diffs], Tue Sep 7 15:41:55 1993 UTC (30 years, 7 months ago) by ws
Branch: MAIN
CVS Tags: magnum-base
Branch point for: magnum
Changes since 1.16: +20 -7 lines
Diff to previous 1.16 (colored) to selected 1.163 (colored)

Changes to VFS readdir semantics
NFS changes for better cookie support
ISOFS changes for better Rockridge support and support for generation numbers

Revision 1.16 / (download) - annotate - [select for diffs], Tue Aug 24 12:53:50 1993 UTC (30 years, 7 months ago) by pk
Branch: MAIN
Changes since 1.15: +3 -2 lines
Diff to previous 1.15 (colored) to selected 1.163 (colored)

Added support for proc filesystem.

Revision 1.15 / (download) - annotate - [select for diffs], Sun Aug 15 21:24:05 1993 UTC (30 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.14: +2 -9 lines
Diff to previous 1.14 (colored) to selected 1.163 (colored)

remove the "#ifdef XXXFS" type things

Revision 1.14 / (download) - annotate - [select for diffs], Fri Aug 13 11:35:58 1993 UTC (30 years, 8 months ago) by cgd
Branch: MAIN
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored) to selected 1.163 (colored)

brought in fixed/renamed/matching MS-DOS FS code, from Jeff Polk
<polk@bsdi.com>.  His notes are as follows:
------------------------------------------------------------------------------

 July 22, 1993

 - Changed name of entire package from PCFS to MSDOSFS

 - Fixed bugs:
      root directory size in clusters instead of bytes
      growing directory didn't update in-core size
      link, symlink, mknod didn't free locked parent (deadlock)
      lookup returned real error on create and rename instead of EJUSTRETURN
      rename changed `.' entry in child instead of name entry in parent
      rename removed `.' entry in child instead of removing entry in
              parent when moving a directory from one dir to another
      createde() left new node locked when write of parent failed (deadlock)
      removede() decremented refcount even on error (rmdir's which failed
              due to write errors left in-core cache entries inconsistent)
      changed validation for filesystem to not check for the boot signature
              since some disks (e.g., mtools) aren't bootable
      directories are always show current time as modify time
              (needed for NFS export since DOS never updates dir mod times --
               ctime is true create time).

 - Added support for cookies changes to the readdir() vnode
      interface (#ifdef __bsdi__)

 - Punted on the whole problem of inode generation numbers.  This means
   that there's a chance of using a stale file handle to access a new
   file, but it doesn't appear to be the common case, and I don't see
   how to generate reasonable generation numbers without changing something
   on the disk (which is the way the SVR4 filesystem survival kit guys
   did it).  I don't think it would be very safe to change the on-disk
   format.

        Jeff Polk (polk@BSDI.COM)

------------------------------------------------------------------------------

Revision 1.13 / (download) - annotate - [select for diffs], Sat Aug 7 08:12:25 1993 UTC (30 years, 8 months ago) by cgd
Branch: MAIN
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored) to selected 1.163 (colored)

merge in changes from netbsd-0-9-ALPHA2

Revision 1.11.2.2 / (download) - annotate - [select for diffs], Thu Aug 5 02:37:35 1993 UTC (30 years, 8 months ago) by cgd
Branch: netbsd-0-9
CVS Tags: netbsd-0-9-patch-001, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2
Changes since 1.11.2.1: +314 -0 lines
Diff to previous 1.11.2.1 (colored) to branchpoint 1.11 (colored) next main 1.12 (colored) to selected 1.163 (colored)

more PCFS cleanups

Revision 1.12 / (download) - annotate - [select for diffs], Thu Jul 29 21:45:23 1993 UTC (30 years, 8 months ago) by jtc
Branch: MAIN
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored) to selected 1.163 (colored)

Change "#endif FOO" to "#endif /* FOO */", to keep gcc -Wall, lint, etc.
from complaining about a trivial issue.

Revision 1.11.2.1, Mon Jul 19 11:52:03 1993 UTC (30 years, 9 months ago) by cgd
Branch: netbsd-0-9
Changes since 1.11: +0 -314 lines
FILE REMOVED

file mount.h was added on branch netbsd-0-9 on 1993-08-05 02:37:35 +0000

Revision 1.11 / (download) - annotate - [select for diffs], Mon Jul 19 11:52:03 1993 UTC (30 years, 9 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-0-9-base, netbsd-0-9-ALPHA
Branch point for: netbsd-0-9
Changes since 1.10: +4 -1 lines
Diff to previous 1.10 (colored) to selected 1.163 (colored)

add ISOFSMNT_NORRIP, arguably in the wrong place, but
no clear convention is specified for declaring local-filesystem
flags...

Revision 1.10 / (download) - annotate - [select for diffs], Thu Jun 10 16:25:01 1993 UTC (30 years, 10 months ago) by brezak
Branch: MAIN
Changes since 1.9: +3 -2 lines
Diff to previous 1.9 (colored) to selected 1.163 (colored)

Leave a hole for AFS

Revision 1.9 / (download) - annotate - [select for diffs], Thu Jun 10 01:20:30 1993 UTC (30 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.8: +3 -2 lines
Diff to previous 1.8 (colored) to selected 1.163 (colored)

add preliminary support for devfs (e.g. MOUNT_DEVFS #define, etc.)

Revision 1.8 / (download) - annotate - [select for diffs], Thu May 20 16:22:43 1993 UTC (30 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.7: +2 -1 lines
Diff to previous 1.7 (colored) to selected 1.163 (colored)

add rcs ids as necessary, and also clean up headers

Revision 1.7 / (download) - annotate - [select for diffs], Mon Apr 19 01:22:55 1993 UTC (31 years ago) by mycroft
Branch: MAIN
Changes since 1.6: +5 -0 lines
Diff to previous 1.6 (colored) to selected 1.163 (colored)

Add consistent multiple-inclusion protection.

Revision 1.6 / (download) - annotate - [select for diffs], Sat Apr 10 20:19:59 1993 UTC (31 years ago) by glass
Branch: MAIN
CVS Tags: netbsd-alpha-1, netbsd-0-8
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored) to selected 1.163 (colored)

fixed an #ifdef NFS

Revision 1.5 / (download) - annotate - [select for diffs], Sat Apr 10 03:26:18 1993 UTC (31 years ago) by mycroft
Branch: MAIN
Changes since 1.4: +1 -1 lines
Diff to previous 1.4 (colored) to selected 1.163 (colored)

Back out previous change.

Revision 1.4 / (download) - annotate - [select for diffs], Sat Apr 10 03:20:59 1993 UTC (31 years ago) by mycroft
Branch: MAIN
Changes since 1.3: +1 -1 lines
Diff to previous 1.3 (colored) to selected 1.163 (colored)

Changes for PCFS.

Revision 1.3 / (download) - annotate - [select for diffs], Fri Apr 9 19:41:59 1993 UTC (31 years ago) by cgd
Branch: MAIN
Changes since 1.2: +11 -0 lines
Diff to previous 1.2 (colored) to selected 1.163 (colored)

add support for PCFS, the MSDOS filesystem.
written by Paul Popelka (paulp@uts.amdahl.com) (patch 129)

invoke w/"options PCFS" in kernel config file.

Revision 1.2 / (download) - annotate - [select for diffs], Tue Mar 23 23:57:32 1993 UTC (31 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.1: +4 -1 lines
Diff to previous 1.1 (colored) to selected 1.163 (colored)

added mount types for kernfs and fdesc fs.

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 21 09:45:37 1993 UTC (31 years, 1 month ago) by cgd
Branch: WFJ-920714, CSRG
CVS Tags: patchkit-0-2-2, WFJ-386bsd-01
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored) to selected 1.163 (colored)

initial import of 386bsd-0.1 sources

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (31 years, 1 month ago) by cgd
Branch: MAIN
Diff to selected 1.163 (colored)

Initial revision

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




CVSweb <webmaster@jp.NetBSD.org>