The NetBSD Project

CVS log for src/sys/miscfs/genfs/genfs.h

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.39 / (download) - annotate - [select for diffs], Sun Mar 27 17:10:55 2022 UTC (14 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.38: +3 -1 lines
Diff to previous 1.38 (colored)

dedup the eofs link/symlink methods

Revision 1.38 / (download) - annotate - [select for diffs], Wed Oct 20 03:08:18 2021 UTC (19 months ago) by thorpej
Branch: MAIN
Changes since 1.37: +4 -4 lines
Diff to previous 1.37 (colored)

Overhaul of the EVFILT_VNODE kevent(2) filter:

- Centralize vnode kevent handling in the VOP_*() wrappers, rather than
  forcing each individual file system to deal with it (except VOP_RENAME(),
  because VOP_RENAME() is a mess and we currently have 2 different ways
  of handling it; at least it's reasonably well-centralized in the "new"
  way).
- Add support for NOTE_OPEN, NOTE_CLOSE, NOTE_CLOSE_WRITE, and NOTE_READ,
  compatible with the same events in FreeBSD.
- Track which kevent notifications clients are interested in receiving
  to avoid doing work for events no one cares about (avoiding, e.g.
  taking locks and traversing the klist to send a NOTE_WRITE when
  someone is merely watching for a file to be deleted, for example).

In support of the above:

- Add support in vnode_if.sh for specifying PRE- and POST-op handlers,
  to be invoked before and after vop_pre() and vop_post(), respectively.
  Basic idea from FreeBSD, but implemented differently.
- Add support in vnode_if.sh for specifying CONTEXT fields in the
  vop_*_args structures.  These context fields are used to convey information
  between the file system VOP function and the VOP wrapper, but do not
  occupy an argument slot in the VOP_*() call itself.  These context fields
  are initialized and subsequently interpreted by PRE- and POST-op handlers.
- Version VOP_REMOVE(), uses the a context field for the file system to report
  back the resulting link count of the target vnode.  Return this in tmpfs,
  udf, nfs, chfs, ext2fs, lfs, and ufs.

NetBSD 9.99.92.

Revision 1.36.6.1 / (download) - annotate - [select for diffs], Sun Aug 1 22:42:40 2021 UTC (21 months, 3 weeks ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.36: +2 -1 lines
Diff to previous 1.36 (colored) next main 1.37 (colored)

Sync with HEAD.

Revision 1.37 / (download) - annotate - [select for diffs], Tue Jun 29 22:34:08 2021 UTC (22 months, 3 weeks ago) by dholland
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2
Changes since 1.36: +2 -1 lines
Diff to previous 1.36 (colored)

- Add a new vnode op: VOP_PARSEPATH.
 - Move namei_getcomponent to genfs_vnops.c and call it genfs_parsepath.
 - Add a parsepath entry to every vnode ops table.

VOP_PARSEPATH takes a directory vnode to be searched and a complete
following path and chooses how much of that path to consume. To begin
with, all parsepath calls are genfs_parsepath, which locates the first
'/' as always.

Note that the call doesn't take the whole struct componentname, only
the string. The other bits of struct componentname should not be
needed and there's no reason to cause potential complications by
exposing them.

Revision 1.36 / (download) - annotate - [select for diffs], Fri Aug 7 18:14:21 2020 UTC (2 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-futex, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: thorpej-i2c-spi-conf
Changes since 1.35: +2 -2 lines
Diff to previous 1.35 (colored)

accmode should be accmode_t

Revision 1.35 / (download) - annotate - [select for diffs], Sat Jun 27 17:29:19 2020 UTC (2 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.34: +2 -1 lines
Diff to previous 1.34 (colored)

Introduce genfs_pathconf() and use it for the default case in all filesystems.

Revision 1.34 / (download) - annotate - [select for diffs], Sat May 16 18:31:51 2020 UTC (3 years ago) by christos
Branch: MAIN
Changes since 1.33: +17 -9 lines
Diff to previous 1.33 (colored)

Add ACL support for FFS. From FreeBSD.

Revision 1.30.2.3 / (download) - annotate - [select for diffs], Sun Dec 3 11:38:47 2017 UTC (5 years, 5 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.30.2.2: +2 -0 lines
Diff to previous 1.30.2.2 (colored) to branchpoint 1.30 (colored) next main 1.31 (colored)

update from HEAD

Revision 1.32.6.1 / (download) - annotate - [select for diffs], Mon Aug 28 17:53:08 2017 UTC (5 years, 8 months ago) by skrll
Branch: nick-nhusb
Changes since 1.32: +3 -1 lines
Diff to previous 1.32 (colored) next main 1.33 (colored)

Sync with HEAD

Revision 1.32.14.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:54:03 2017 UTC (6 years, 1 month ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.32: +3 -1 lines
Diff to previous 1.32 (colored) next main 1.33 (colored)

Sync with HEAD

Revision 1.32.10.1 / (download) - annotate - [select for diffs], Mon Mar 20 06:57:48 2017 UTC (6 years, 2 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.32: +3 -1 lines
Diff to previous 1.32 (colored) next main 1.33 (colored)

Sync with HEAD

Revision 1.33 / (download) - annotate - [select for diffs], Fri Feb 17 08:31:25 2017 UTC (6 years, 3 months ago) by hannken
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, isaki-audio2-base, isaki-audio2, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, bouyer-socketcan-base1, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.32: +3 -1 lines
Diff to previous 1.32 (colored)

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

Revision 1.28.18.2 / (download) - annotate - [select for diffs], Mon Oct 27 05:46:27 2014 UTC (8 years, 7 months ago) by msaitoh
Branch: netbsd-6
Changes since 1.28.18.1: +2 -2 lines
Diff to previous 1.28.18.1 (colored) to branchpoint 1.28 (colored) next main 1.29 (colored)

Pull up following revision(s) (requested by riastradh in ticket #1135):
	sys/miscfs/genfs/genfs.h: revision 1.31
Fix (harmless) typo in struct genfs_rename_ops::gro_lookup prototype.

Revision 1.30.2.2 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:30 2014 UTC (8 years, 9 months ago) by tls
Branch: tls-maxphys
Changes since 1.30.2.1: +4 -0 lines
Diff to previous 1.30.2.1 (colored) to branchpoint 1.30 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.28.12.3 / (download) - annotate - [select for diffs], Thu May 22 11:41:05 2014 UTC (9 years ago) by yamt
Branch: yamt-pagecache
Changes since 1.28.12.2: +6 -2 lines
Diff to previous 1.28.12.2 (colored) to branchpoint 1.28 (colored) next main 1.29 (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.31.4.1 / (download) - annotate - [select for diffs], Sun May 18 17:46:09 2014 UTC (9 years ago) by rmind
Branch: rmind-smpnet
Changes since 1.31: +5 -1 lines
Diff to previous 1.31 (colored) next main 1.32 (colored)

sync with head

Revision 1.32 / (download) - annotate - [select for diffs], Thu Feb 27 16:51:38 2014 UTC (9 years, 3 months ago) by hannken
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, pgoyette-localcount-base, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, 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, localcount-20160914, bouyer-socketcan-base
Branch point for: pgoyette-localcount, nick-nhusb, bouyer-socketcan
Changes since 1.31: +5 -1 lines
Diff to previous 1.31 (colored)

The current implementation of vn_lock() is racy.  Modification of
the vnode operations vector for active vnodes is unsafe because it
is not known whether deadfs or the original file system will be
called.

- Pass down LK_RETRY to the lock operation (hint for deadfs only).

- Change deadfs lock operation to return ENOENT if LK_RETRY is unset.

- Change all other lock operations to check for dead vnode once
  the vnode is locked and unlock and return ENOENT in this case.

With these changes in place vnode lock operations will never succeed
after vclean() has marked the vnode as VI_XLOCK and before vclean()
has changed the operations vector.

Adresses PR kern/37706 (Forced unmount of file systems is unsafe)

Discussed on tech-kern.

Welcome to 6.99.33

Revision 1.30.2.1 / (download) - annotate - [select for diffs], Sun Jun 23 06:20:24 2013 UTC (9 years, 11 months ago) by tls
Branch: tls-maxphys
Changes since 1.30: +2 -2 lines
Diff to previous 1.30 (colored)

resync from head

Revision 1.31 / (download) - annotate - [select for diffs], Thu May 2 14:49:51 2013 UTC (10 years ago) by riastradh
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.30: +2 -2 lines
Diff to previous 1.30 (colored)

Fix (harmless) typo in struct genfs_rename_ops::gro_lookup prototype.

Revision 1.28.18.1 / (download) - annotate - [select for diffs], Mon Jul 2 18:01:17 2012 UTC (10 years, 10 months ago) by jdc
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, 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
Changes since 1.28: +68 -1 lines
Diff to previous 1.28 (colored)

Pull up revisions:
  src/sys/conf/files revision 1.1050
  src/sys/miscfs/genfs/genfs.h revision 1.30 via patch
  src/sys/miscfs/genfs/genfs_rename.c revision 1.1 via patch
  src/sys/rump/librump/rumpvfs/Makefile.rumpvfs revision 1.33
(requested by riastradh in ticket #286).

Implement a genfs_rename abstraction.

First major step in incrementally adapting all the file systems to a
saner rename VOP protocol.

Revision 1.28.16.2 / (download) - annotate - [select for diffs], Sat Jun 2 11:09:36 2012 UTC (10 years, 11 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.28.16.1: +68 -0 lines
Diff to previous 1.28.16.1 (colored) to branchpoint 1.28 (colored) next main 1.29 (colored)

sync to latest -current.

Revision 1.28.12.2 / (download) - annotate - [select for diffs], Wed May 23 10:08:14 2012 UTC (11 years ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.28.12.1: +69 -1 lines
Diff to previous 1.28.12.1 (colored) to branchpoint 1.28 (colored)

sync with head.

Revision 1.30 / (download) - annotate - [select for diffs], Tue May 8 23:53:26 2012 UTC (11 years ago) by riastradh
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, jmcneill-usbmp-base10, agc-symver-base, agc-symver
Branch point for: tls-maxphys
Changes since 1.29: +69 -1 lines
Diff to previous 1.29 (colored)

Implement a genfs_rename abstraction.

First major step in incrementally adapting all the file systems to a
saner rename VOP protocol.

Revision 1.28.12.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:34 2012 UTC (11 years, 1 month ago) by yamt
Branch: yamt-pagecache
Changes since 1.28: +6 -4 lines
Diff to previous 1.28 (colored)

sync with head

Revision 1.28.16.1 / (download) - annotate - [select for diffs], Thu Apr 5 21:33:42 2012 UTC (11 years, 1 month ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.28: +6 -4 lines
Diff to previous 1.28 (colored)

sync to latest -current.

Revision 1.29 / (download) - annotate - [select for diffs], Tue Mar 13 18:40:57 2012 UTC (11 years, 2 months ago) by elad
Branch: MAIN
CVS Tags: yamt-pagecache-base4, jmcneill-usbmp-base9, jmcneill-usbmp-base8
Changes since 1.28: +6 -4 lines
Diff to previous 1.28 (colored)

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

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

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

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

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

Revision 1.23.10.4 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:22 2010 UTC (13 years, 2 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.23.10.3: +3 -1 lines
Diff to previous 1.23.10.3 (colored) to branchpoint 1.23 (colored) next main 1.24 (colored)

sync with head

Revision 1.28 / (download) - annotate - [select for diffs], Mon Nov 30 10:59:20 2009 UTC (13 years, 5 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-uvmplock, netbsd-6-base, matt-premerge-20091211, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache, netbsd-6, jmcneill-usbmp
Changes since 1.27: +3 -1 lines
Diff to previous 1.27 (colored)

Introduce genfs_statvfs() as pretty much a no-info statvfs and
convert several pseudo file systems to use it.

Revision 1.23.24.2 / (download) - annotate - [select for diffs], Thu Jul 23 23:32:46 2009 UTC (13 years, 10 months ago) by jym
Branch: jym-xensuspend
Changes since 1.23.24.1: +3 -1 lines
Diff to previous 1.23.24.1 (colored) to branchpoint 1.23 (colored) next main 1.24 (colored)

Sync with HEAD.

Revision 1.23.10.3 / (download) - annotate - [select for diffs], Sat Jul 18 14:53:24 2009 UTC (13 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.23.10.2: +3 -1 lines
Diff to previous 1.23.10.2 (colored) to branchpoint 1.23 (colored)

sync with head.

Revision 1.27 / (download) - annotate - [select for diffs], Tue Jun 23 19:36:38 2009 UTC (13 years, 11 months ago) by elad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, jymxensuspend-base, jym-xensuspend-nbase
Changes since 1.26: +3 -1 lines
Diff to previous 1.26 (colored)

Move the implementation of vaccess() to genfs_can_access(), in line with
the other routines of the same spirit.

Adjust file-system code to use it.

Keep vaccess() for KPI compatibility and to keep element of least
surprise. A "diagnostic" message warning that vaccess() is deprecated will
be printed when it's used (obviously, only in DIAGNOSTIC kernels).

No objections on tech-kern@:

	http://mail-index.netbsd.org/tech-kern/2009/06/21/msg005310.html

Revision 1.23.10.2 / (download) - annotate - [select for diffs], Sat May 16 10:41:49 2009 UTC (14 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.23.10.1: +2 -1 lines
Diff to previous 1.23.10.1 (colored) to branchpoint 1.23 (colored)

sync with head

Revision 1.23.24.1 / (download) - annotate - [select for diffs], Wed May 13 17:22:16 2009 UTC (14 years ago) by jym
Branch: jym-xensuspend
Changes since 1.23: +13 -1 lines
Diff to previous 1.23 (colored)

Sync with HEAD.

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

Revision 1.26 / (download) - annotate - [select for diffs], Thu May 7 19:30:29 2009 UTC (14 years ago) by elad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base5, yamt-nfs-mp-base4, jym-xensuspend-base
Changes since 1.25: +2 -1 lines
Diff to previous 1.25 (colored)

Extract the open-coded authorization logic for chtimes() from various
file-systems and put it in a single function, genfs_can_chtimes().

This also makes UDF follow the same policy as all other file-systems.

Mailing list reference:

	http://mail-index.netbsd.org/tech-kern/2009/04/27/msg004951.html

Revision 1.23.10.1 / (download) - annotate - [select for diffs], Mon May 4 08:14:04 2009 UTC (14 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.23: +12 -1 lines
Diff to previous 1.23 (colored)

sync with head.

Revision 1.23.18.1 / (download) - annotate - [select for diffs], Tue Apr 28 07:37:14 2009 UTC (14 years, 1 month ago) by skrll
Branch: nick-hppapmap
Changes since 1.23: +12 -1 lines
Diff to previous 1.23 (colored) next main 1.24 (colored)

Sync with HEAD.

Revision 1.25 / (download) - annotate - [select for diffs], Sat Apr 25 18:53:44 2009 UTC (14 years, 1 month ago) by elad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base
Changes since 1.24: +2 -1 lines
Diff to previous 1.24 (colored)

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

Proposed with no objections on tech-kern@:

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

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

Revision 1.24 / (download) - annotate - [select for diffs], Wed Apr 22 22:57:08 2009 UTC (14 years, 1 month ago) by elad
Branch: MAIN
Changes since 1.23: +11 -1 lines
Diff to previous 1.23 (colored)

Per discussion on tech-kern@:

  - Replace use of label/goto with returns

  - Rename, change prototype of, and move functions from vfs_subr.c to
    genfs_vnops.c

Revision 1.21.8.1 / (download) - annotate - [select for diffs], Sun Mar 23 02:05:03 2008 UTC (15 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.21: +4 -2 lines
Diff to previous 1.21 (colored) next main 1.22 (colored)

sync with HEAD

Revision 1.21.14.1 / (download) - annotate - [select for diffs], Mon Feb 18 21:07:00 2008 UTC (15 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.21: +4 -2 lines
Diff to previous 1.21 (colored) next main 1.22 (colored)

Sync with HEAD.

Revision 1.17.18.3 / (download) - annotate - [select for diffs], Mon Feb 4 09:24:29 2008 UTC (15 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.17.18.2: +4 -2 lines
Diff to previous 1.17.18.2 (colored) to branchpoint 1.17 (colored) next main 1.18 (colored)

sync with head.

Revision 1.23 / (download) - annotate - [select for diffs], Mon Jan 28 14:31:18 2008 UTC (15 years, 4 months ago) by dholland
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, yamt-nfs-mp-base2, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, nick-net80211-sync-base, nick-net80211-sync, nick-hppapmap-base2, 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, mjf-devfs2-base, mjf-devfs2, mjf-devfs-base, 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, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, ad-socklock-base1, ad-audiomp2-base, ad-audiomp2
Branch point for: yamt-nfs-mp, nick-hppapmap, jym-xensuspend
Changes since 1.22: +4 -1 lines
Diff to previous 1.22 (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.22 / (download) - annotate - [select for diffs], Fri Jan 25 14:32:16 2008 UTC (15 years, 4 months ago) by ad
Branch: MAIN
Changes since 1.21: +1 -2 lines
Diff to previous 1.21 (colored)

Remove VOP_LEASE. Discussed on tech-kern.

Revision 1.17.18.2 / (download) - annotate - [select for diffs], Mon Sep 3 14:41:52 2007 UTC (15 years, 8 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.17.18.1: +3 -1 lines
Diff to previous 1.17.18.1 (colored) to branchpoint 1.17 (colored)

sync with head.

Revision 1.20.38.1 / (download) - annotate - [select for diffs], Mon Sep 3 07:05:07 2007 UTC (15 years, 8 months ago) by wrstuden
Branch: wrstuden-fixsa
Changes since 1.20: +3 -1 lines
Diff to previous 1.20 (colored) next main 1.21 (colored)

Sync w/ NetBSD-4-RC_1

Revision 1.20.32.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:10:40 2007 UTC (15 years, 10 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.20: +3 -1 lines
Diff to previous 1.20 (colored) next main 1.21 (colored)

Sync with head.

Revision 1.20.30.1 / (download) - annotate - [select for diffs], Fri Jun 8 14:17:33 2007 UTC (15 years, 11 months ago) by ad
Branch: vmlocking
Changes since 1.20: +3 -1 lines
Diff to previous 1.20 (colored) next main 1.21 (colored)

Sync with head.

Revision 1.20.24.1 / (download) - annotate - [select for diffs], Tue Jun 5 20:34:58 2007 UTC (15 years, 11 months ago) by bouyer
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-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, matt-nb4-arm-base, matt-nb4-arm
Changes since 1.20: +3 -1 lines
Diff to previous 1.20 (colored) next main 1.21 (colored)

Pull up following revision(s) (requested by perseant in ticket #703):
	sys/miscfs/genfs/genfs.h              1.21
	sys/miscfs/genfs/genfs_vnops.c        1.151
	sys/ufs/lfs/lfs.h                     1.119, 1.120
	sys/ufs/lfs/lfs_bio.c                 1.99-101
	sys/ufs/lfs/lfs_extern.h              1.89
	sys/ufs/lfs/lfs_inode.c               1.108, 1.109
	sys/ufs/lfs/lfs_segment.c             1.197, 1.199, 1.200
	sys/ufs/lfs/lfs_subr.c                1.69, 1.70
	sys/ufs/lfs/lfs_syscalls.c            1.119
	sys/ufs/lfs/lfs_vfsops.c              1.234, 1.235
	sys/ufs/lfs/lfs_vnops.c               1.195, 1.196, 1.200, 1.202-206

Reduce busy waiting in lfs_putpages(), and other LFS improvements.

Revision 1.20.26.1 / (download) - annotate - [select for diffs], Mon May 7 10:55:52 2007 UTC (16 years ago) by yamt
Branch: yamt-idlelwp
Changes since 1.20: +3 -1 lines
Diff to previous 1.20 (colored) next main 1.21 (colored)

sync with head.

Revision 1.21 / (download) - annotate - [select for diffs], Tue Apr 24 22:46:03 2007 UTC (16 years, 1 month ago) by perseant
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, yamt-idlelwp-base8, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, vmlocking-base, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-base, jmcneill-pm-base, jmcneill-pm, jmcneill-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: mjf-devfs, matt-armv6
Changes since 1.20: +3 -1 lines
Diff to previous 1.20 (colored)

Split the VOP interface part of genfs_putpages() from the code.  The new
function that does the work, genfs_do_putpages(), now takes as an argument
a pointer to the page that would be waited on, if PGO_BUSYWAIT were not set.
This allows a consumer, e.g. lfs_putpages(), to perform an action outside
the scope of UVM before sleeping on the page in question.

Revision 1.17.18.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:10:25 2006 UTC (16 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.17: +26 -27 lines
Diff to previous 1.17 (colored)

sync with head.

Revision 1.20 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:50 2005 UTC (17 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-splraiseipl, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, yamt-pdpolicy, thorpej-atomic-base, thorpej-atomic, simonb-timecounters-base, simonb-timecounters, simonb-timcounters-final, rpaulo-netinet-merge-pcb-base, rpaulo-netinet-merge-pcb, reinoud-bufcleanup, post-newlock2-merge, peter-altq-base, peter-altq, newlock2-nbase, newlock2-base, newlock2, netbsd-4-base, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, elad-kernelauth, chap-midi-nbase, chap-midi-base, chap-midi, ad-audiomp-base, ad-audiomp, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-idlelwp, wrstuden-fixsa, vmlocking, netbsd-4, mjf-ufs-trans
Changes since 1.19: +1 -1 lines
Diff to previous 1.19 (colored)

merge ktrace-lwp.

Revision 1.17.2.1 / (download) - annotate - [select for diffs], Thu Nov 10 14:10:25 2005 UTC (17 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.17: +26 -27 lines
Diff to previous 1.17 (colored) next main 1.18 (colored)

Sync with HEAD. Here we go again...

Revision 1.19 / (download) - annotate - [select for diffs], Wed Nov 2 12:38:59 2005 UTC (17 years, 6 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, ktrace-lwp-base
Changes since 1.18: +1 -2 lines
Diff to previous 1.18 (colored)

merge yamt-vop branch.  remove following VOPs.

	VOP_BLKATOFF
	VOP_VALLOC
	VOP_BALLOC
	VOP_REALLOCBLKS
	VOP_VFREE
	VOP_TRUNCATE
	VOP_UPDATE

Revision 1.18.2.1 / (download) - annotate - [select for diffs], Thu Oct 20 07:13:54 2005 UTC (17 years, 7 months ago) by yamt
Branch: yamt-vop
Changes since 1.18: +1 -2 lines
Diff to previous 1.18 (colored) next main 1.19 (colored)

remove genfs_fsync.

Revision 1.18 / (download) - annotate - [select for diffs], Tue Aug 30 20:08:01 2005 UTC (17 years, 9 months ago) by xtraeme
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, thorpej-vnode-attr-base, thorpej-vnode-attr
Branch point for: yamt-vop
Changes since 1.17: +27 -27 lines
Diff to previous 1.17 (colored)

Remove __P()

Revision 1.17 / (download) - annotate - [select for diffs], Thu Apr 10 21:53:32 2003 UTC (20 years, 1 month ago) by jdolecek
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, yamt-km-base2, yamt-km-base, yamt-km, 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, 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, kent-audio2-base, kent-audio2, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-lazymbuf, ktrace-lwp
Changes since 1.16: +1 -2 lines
Diff to previous 1.16 (colored)

use former genfs_eopnotsupp_rele() as genfs_eopnotsupp(), so that vnodes
are vput()/vrele()d as necessary - some filesystems did use the wrong
one for some ops, and it's just safer to not take the chance

based on suggestion by Bill Studenmund

Revision 1.11.2.4 / (download) - annotate - [select for diffs], Mon Nov 11 22:14:45 2002 UTC (20 years, 6 months ago) by nathanw
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.11.2.3: +2 -1 lines
Diff to previous 1.11.2.3 (colored) to branchpoint 1.11 (colored) next main 1.12 (colored)

Catch up to -current

Revision 1.16 / (download) - annotate - [select for diffs], Wed Oct 23 09:14:36 2002 UTC (20 years, 7 months ago) by jdolecek
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.15: +2 -1 lines
Diff to previous 1.15 (colored)

merge kqueue branch into -current

kqueue provides a stateful and efficient event notification framework
currently supported events include socket, file, directory, fifo,
pipe, tty and device changes, and monitoring of processes and signals

kqueue is supported by all writable filesystems in NetBSD tree
(with exception of Coda) and all device drivers supporting poll(2)

based on work done by Jonathan Lemon for FreeBSD
initial NetBSD port done by Luke Mewburn and Jason Thorpe

Revision 1.12.2.3 / (download) - annotate - [select for diffs], Wed Sep 25 21:36:58 2002 UTC (20 years, 8 months ago) by jdolecek
Branch: kqueue
Changes since 1.12.2.2: +2 -1 lines
Diff to previous 1.12.2.2 (colored) to branchpoint 1.12 (colored) next main 1.13 (colored)

implement genfs_kqfilter() - this is based upon ufs_kqfilter(), but uses
vp->v_size for EVFILT_READ

Revision 1.12.2.2 / (download) - annotate - [select for diffs], Thu Jan 10 20:01:34 2002 UTC (21 years, 4 months ago) by thorpej
Branch: kqueue
Changes since 1.12.2.1: +3 -2 lines
Diff to previous 1.12.2.1 (colored) to branchpoint 1.12 (colored)

Sync kqueue branch with -current.

Revision 1.11.2.3 / (download) - annotate - [select for diffs], Tue Jan 8 00:33:34 2002 UTC (21 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.11.2.2: +3 -3 lines
Diff to previous 1.11.2.2 (colored) to branchpoint 1.11 (colored)

Catch up to -current.

Revision 1.15 / (download) - annotate - [select for diffs], Tue Dec 18 07:49:36 2001 UTC (21 years, 5 months ago) by chs
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, kqueue-beforemerge, kqueue-base, ifpoll-base, gehenna-devsw-base, gehenna-devsw, eeh-devprop-base, eeh-devprop
Changes since 1.14: +2 -1 lines
Diff to previous 1.14 (colored)

add some compatibility routines to allow mmap() to work non-UBCified
filesystems (in the same non-coherent fashion that they worked before).

Revision 1.14 / (download) - annotate - [select for diffs], Thu Dec 6 04:27:41 2001 UTC (21 years, 5 months ago) by chs
Branch: MAIN
Changes since 1.13: +2 -3 lines
Diff to previous 1.13 (colored)

add a VOP_PUTPAGES method for all the filesystems that don't have pages,
just unlock the interlock.

Revision 1.12.4.1 / (download) - annotate - [select for diffs], Mon Oct 1 12:47:18 2001 UTC (21 years, 8 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.12: +3 -2 lines
Diff to previous 1.12 (colored) next main 1.13 (colored)

Catch up with -current.

Revision 1.11.2.2 / (download) - annotate - [select for diffs], Fri Sep 21 22:36:36 2001 UTC (21 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.11.2.1: +3 -2 lines
Diff to previous 1.11.2.1 (colored) to branchpoint 1.11 (colored)

Catch up to -current.

Revision 1.13 / (download) - annotate - [select for diffs], Sat Sep 15 20:36:38 2001 UTC (21 years, 8 months ago) by chs
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, post-chs-ubcperf
Changes since 1.12: +3 -2 lines
Diff to previous 1.12 (colored)

a whole bunch of changes to improve performance and robustness under load:

 - remove special treatment of pager_map mappings in pmaps.  this is
   required now, since I've removed the globals that expose the address range.
   pager_map now uses pmap_kenter_pa() instead of pmap_enter(), so there's
   no longer any need to special-case it.
 - eliminate struct uvm_vnode by moving its fields into struct vnode.
 - rewrite the pageout path.  the pager is now responsible for handling the
   high-level requests instead of only getting control after a bunch of work
   has already been done on its behalf.  this will allow us to UBCify LFS,
   which needs tighter control over its pages than other filesystems do.
   writing a page to disk no longer requires making it read-only, which
   allows us to write wired pages without causing all kinds of havoc.
 - use a new PG_PAGEOUT flag to indicate that a page should be freed
   on behalf of the pagedaemon when it's unlocked.  this flag is very similar
   to PG_RELEASED, but unlike PG_RELEASED, PG_PAGEOUT can be cleared if the
   pageout fails due to eg. an indirect-block buffer being locked.
   this allows us to remove the "version" field from struct vm_page,
   and together with shrinking "loan_count" from 32 bits to 16,
   struct vm_page is now 4 bytes smaller.
 - no longer use PG_RELEASED for swap-backed pages.  if the page is busy
   because it's being paged out, we can't release the swap slot to be
   reallocated until that write is complete, but unlike with vnodes we
   don't keep a count of in-progress writes so there's no good way to
   know when the write is done.  instead, when we need to free a busy
   swap-backed page, just sleep until we can get it busy ourselves.
 - implement a fast-path for extending writes which allows us to avoid
   zeroing new pages.  this substantially reduces cpu usage.
 - encapsulate the data used by the genfs code in a struct genfs_node,
   which must be the first element of the filesystem-specific vnode data
   for filesystems which use genfs_{get,put}pages().
 - eliminate many of the UVM pagerops, since they aren't needed anymore
   now that the pager "put" operation is a higher-level operation.
 - enhance the genfs code to allow NFS to use the genfs_{get,put}pages
   instead of a modified copy.
 - clean up struct vnode by removing all the fields that used to be used by
   the vfs_cluster.c code (which we don't use anymore with UBC).
 - remove kmem_object and mb_object since they were useless.
   instead of allocating pages to these objects, we now just allocate
   pages with no object.  such pages are mapped in the kernel until they
   are freed, so we can use the mapping to find the page to free it.
   this allows us to remove splvm() protection in several places.

The sum of all these changes improves write throughput on my
decstation 5000/200 to within 1% of the rate of NetBSD 1.5
and reduces the elapsed time for "make release" of a NetBSD 1.5
source tree on my 128MB pc to 10% less than a 1.5 kernel took.

Revision 1.12.2.1 / (download) - annotate - [select for diffs], Tue Jul 10 14:00:39 2001 UTC (21 years, 10 months ago) by lukem
Branch: kqueue
Changes since 1.12: +2 -1 lines
Diff to previous 1.12 (colored)

prototype genfs_kqfilter()

Revision 1.11.2.1 / (download) - annotate - [select for diffs], Thu Jun 21 20:07:33 2001 UTC (21 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.11: +2 -1 lines
Diff to previous 1.11 (colored)

Catch up to -current.

Revision 1.12 / (download) - annotate - [select for diffs], Mon May 28 02:50:52 2001 UTC (22 years ago) by chs
Branch: MAIN
CVS Tags: thorpej-devvp-base, pre-chs-ubcperf
Branch point for: thorpej-devvp, kqueue
Changes since 1.11: +2 -1 lines
Diff to previous 1.11 (colored)

add a genfs_mmap() and change all of the disk-based filesystems
to implement VOP_MMAP() with the genfs version, in preparation for
actually using this VOP.

Revision 1.10.2.1 / (download) - annotate - [select for diffs], Fri Dec 8 09:15:00 2000 UTC (22 years, 5 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.10: +4 -1 lines
Diff to previous 1.10 (colored) next main 1.11 (colored)

Sync with HEAD.

Revision 1.11 / (download) - annotate - [select for diffs], Mon Nov 27 08:39:45 2000 UTC (22 years, 6 months ago) by chs
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: nathanw_sa
Changes since 1.10: +4 -1 lines
Diff to previous 1.10 (colored)

Initial integration of the Unified Buffer Cache project.

Revision 1.10 / (download) - annotate - [select for diffs], Tue Aug 3 20:19:19 1999 UTC (23 years, 9 months ago) by wrstuden
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5, minoura-xpg4dl-base, minoura-xpg4dl, fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-newbase
Branch point for: thorpej_scsipi
Changes since 1.9: +2 -1 lines
Diff to previous 1.9 (colored)

Add support for fcntl(2) to generate VOP_FCNTL calls. Any fcntl
call with F_FSCTL set and F_SETFL calls generate calls to a new
fileop fo_fcntl. Add genfs_fcntl() and soo_fcntl() which return 0
for F_SETFL and EOPNOTSUPP otherwise. Have all leaf filesystems
use genfs_fcntl().

Reviewed by: thorpej
Tested by: wrstuden

Revision 1.8.8.3 / (download) - annotate - [select for diffs], Mon Aug 2 23:31:17 1999 UTC (23 years, 9 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.8.8.2: +3 -1 lines
Diff to previous 1.8.8.2 (colored) to branchpoint 1.8 (colored) next main 1.9 (colored)

Oops, some prototypes got nuked by mistake.

Revision 1.8.8.2 / (download) - annotate - [select for diffs], Mon Aug 2 22:27:34 1999 UTC (23 years, 9 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.8.8.1: +21 -19 lines
Diff to previous 1.8.8.1 (colored) to branchpoint 1.8 (colored)

Update from trunk.

Revision 1.9 / (download) - annotate - [select for diffs], Thu Jul 8 01:18:59 1999 UTC (23 years, 10 months ago) by wrstuden
Branch: MAIN
CVS Tags: chs-ubc2-base
Changes since 1.8: +21 -16 lines
Diff to previous 1.8 (colored)

Introduce layer library in genfs. This set of files abstracts most of
the functionality of nullfs. The latter is now just a mount & unmount
routine, and a few tables. umapfs borrow most of this infrastructure.

Both fs's are now nfs-exportable.

All layered fs's share a common format to private mount & private
vnode structs (which a particular fs can extend).

Also add genfs_noerr_rele(), a vnode op which will vrele/vput
operand vnodes appropriately.

Revision 1.8.8.1 / (download) - annotate - [select for diffs], Sun Jul 4 01:44:43 1999 UTC (23 years, 10 months ago) by chs
Branch: chs-ubc2
Changes since 1.8: +4 -1 lines
Diff to previous 1.8 (colored)

create genfs_getpages() and genfs_putpages().
these should be able to handle most of the local-disk filesystems.

Revision 1.8 / (download) - annotate - [select for diffs], Thu Aug 13 09:59:52 1998 UTC (24 years, 9 months ago) by kleink
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, kenh-if-detach-base, kenh-if-detach, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame, chs-ubc-base, chs-ubc
Branch point for: chs-ubc2
Changes since 1.7: +2 -1 lines
Diff to previous 1.7 (colored)

Add genfs_einval(), which does the obvious thing.

Revision 1.7 / (download) - annotate - [select for diffs], Mon Aug 10 08:11:11 1998 UTC (24 years, 9 months ago) by matthias
Branch: MAIN
Changes since 1.6: +2 -1 lines
Diff to previous 1.6 (colored)

create miscfs/genfs/genfs_vnops.c:genfs_enoioctl and make all the other
filesystems use it instead of a private version.

Revision 1.6 / (download) - annotate - [select for diffs], Thu Jun 25 22:15:30 1998 UTC (24 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: eeh-paddr_t-base, eeh-paddr_t
Changes since 1.5: +2 -1 lines
Diff to previous 1.5 (colored)

- Rename nqnfs_vop_lease_check() to genfs_lease_check().  If NFSSERVER is
  not in the kernel, genfs_lease_check() is simply a no-op.  This allows
  LKM'd file systems to be exported (previously did not work properly
  due to a compile-time decision based on -DNFSSERVER).
- defopt NFSSERVER

Revision 1.5 / (download) - annotate - [select for diffs], Sun Mar 1 02:22:03 1998 UTC (25 years, 3 months ago) by fvdl
Branch: MAIN
Changes since 1.4: +5 -1 lines
Diff to previous 1.4 (colored)

Merge with Lite2 + local changes

Revision 1.4 / (download) - annotate - [select for diffs], Mon Jan 5 19:20:10 1998 UTC (25 years, 4 months ago) by perry
Branch: MAIN
Changes since 1.3: +2 -0 lines
Diff to previous 1.3 (colored)

RCSID Police.

Revision 1.3 / (download) - annotate - [select for diffs], Fri Apr 11 21:52:04 1997 UTC (26 years, 1 month ago) by kleink
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal, netbsd-1-3-base, 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, netbsd-1-3, marc-pcmcia-bp, marc-pcmcia-base, marc-pcmcia, bouyer-scsipi
Changes since 1.2: +1 -0 lines
Diff to previous 1.2 (colored)

Implement a POSIX compliant genfs VOP_SEEK() and use it in the appropriate
places; by Chris G. Demetriou and myself.

Revision 1.2 / (download) - annotate - [select for diffs], Sat Sep 7 12:41:12 1996 UTC (26 years, 8 months ago) by mycroft
Branch: MAIN
CVS Tags: thorpej-setroot, mrg-vm-swap, is-newarp-before-merge, is-newarp-base, is-newarp
Changes since 1.1: +1 -1 lines
Diff to previous 1.1 (colored)

Implement poll(2).

Revision 1.1 / (download) - annotate - [select for diffs], Sun Sep 1 23:48:06 1996 UTC (26 years, 9 months ago) by mycroft
Branch: MAIN

Add a set of generic file system operations that most file systems use.
Also, fix some time stamp bogosities.

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>