Commit Graph

32 Commits

Author SHA1 Message Date
pooka
c7d9ec16a7 VFS_MOUNT():
+ nameidata is a goner
  + document dlen (hi dsl!)
2007-07-31 21:39:56 +00:00
pooka
5d2746d022 There is no p - it's the calling lwp these days. 2007-06-20 16:35:52 +00:00
pooka
5d3221caa2 handle vptofh and fhtovp:
* file handles are not only for nfs
* these functions are not allowed to be null
* update description of vptofh to contain the size parameter
(*bump date)
2007-04-16 14:47:19 +00:00
dogcow
c1a14b53bd running in emulated wizd mode, convert caddr_t to void *. 2007-03-07 00:41:16 +00:00
hannken
facd1f65cb Add and update documentation for fstrans(9) file system suspension helper.
wiz?
2007-01-21 15:42:36 +00:00
pooka
9852bfb57e ucred -> kauth sweep 2006-10-04 11:35:47 +00:00
rtr
fda8fb7c07 list -> lists 2006-04-25 01:45:17 +00:00
rpaulo
7d7fe4b786 Adapt man pages to ktrace-lwp. 2005-12-20 19:53:14 +00:00
pooka
19d733c7f7 one thinko: s/VOP_START/VFS_START/ 2005-11-09 20:17:55 +00:00
wiz
6021522859 Add missing comma. Mark up NULL with Dv. 2005-09-23 20:30:48 +00:00
jmmv
2a3e5eeb7c 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.
2005-09-23 12:10:31 +00:00
wiz
418e12ffb2 Bump date for v. 2005-07-20 12:55:14 +00:00
pooka
4a04e27c9d statfs -> statvfs
(better late than never)
2005-07-20 11:35:48 +00:00
rtr
f44fd3e324 not -> no typo 2005-07-16 14:45:18 +00:00
peter
a9b411c198 Change all .Xr config 8 to .Xr config 1, following the recent move of
config from usr.sbin -> usr.bin.

Reviewed by wiz.
2005-06-20 13:25:23 +00:00
hannken
7a5be5a9ff - Add flag L_COWINPROGRESS to struct lwp to avoid recursion when
doing copy-on-write.

- Change VFS_SNAPSHOT() to return the snapshot vnode locked.

- Make the IO path for copy-on-write and snapshot-read more lightweight.
  Avoids deadlocks where vn_rdwr(...READ...) has a shared lock and needs
  to copy-on-write.
  Avoids deadlocks/panics where to clean pages the copy-on-write needs
  to allocate pages for its VOP_PUTPAGES().

L_COWINPROGRESS part approved by: Jason R. Thorpe <thorpej@netbsd.org>
2004-06-20 18:55:58 +00:00
hannken
8c21bc6224 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>
2004-05-25 14:54:55 +00:00
wiz
cb386dac06 Bump date for previous (hi atatat!). 2003-12-04 23:57:44 +00:00
atatat
a7e95f7905 Garbage collect some references to the old sysctl() infrastructure. 2003-12-04 19:57:38 +00:00
yamt
5c0b08ff13 use .Fn rather than .Fa for functions. 2003-09-06 19:02:42 +00:00
wiz
be9025af4b Remove a superfluous space. 2003-06-30 12:07:19 +00:00
wiz
472351e13d Use
.In header.h
instead of
.Fd #include \*[Lt]header.h\*[Gt]
Much easier to read and write, and supported by groff for ages.
Okayed by ross.
2003-04-16 13:34:34 +00:00
gmcgarry
2692486a9a Move vfs interface out of vfsops.9 into its own page. Document
it completely.
2003-04-06 07:09:47 +00:00
perry
43e0efbdeb "Utilize" has exactly the same meaning as "use," but it is more
difficult to read and understand. Most manuals of English style
therefore say that you should use "use".
2003-02-04 22:38:15 +00:00
jschauma
0a4453cc1e Fix typos noted by Igor Sobrado in PR misc/19641 (some already fixed
by others):

MCHTYPE(9)      - implemntation (implementation)
VFS_CHECKEXP(9) - specied (specified), acces (access)
VOP_ABORTOP(9)  - singla (single), implments (implements),
		callling (calling), credientials (credentials)
2003-01-03 04:18:57 +00:00
wiz
770eef2122 New sentence, new line. 2002-10-14 13:43:14 +00:00
wiz
ac8c16f96b Don't xref ourselves in SEE ALSO; separate SEE ALSO entries by comma;
use more mark up in some places.
2002-08-15 03:23:55 +00:00
soren
a440a4971b Misc fixes.
Cross-reference v*ops.9.
2002-08-14 18:50:48 +00:00
ross
4fa402f116 Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-13 08:17:26 +00:00
wiz
ec03906847 Fix the typo reported in PR #15062 and another one. 2001-12-27 13:20:53 +00:00
wiz
1978ea7c16 Whitespace, punctuation fixes; sort sections, fix xrefs. 2001-10-22 08:21:32 +00:00
gmcgarry
f9acd7a62a Programmer's guide to the VFS interface. 2001-10-22 03:33:19 +00:00