NetBSD/sys/miscfs
sommerfeld d96e35f23c Fix PR4439: directory link count in unions where only upper directory
exists is bogus.  The goal here is to produce a synthetic link count
which won't confuse fts and similar routines which "know" that
directories with a link count of 2 don't have subdirectories (and
thus, they can avoid having to stat every entry in the directory
looking for subdirectories which aren't there).

We know that non-UNIX filesystem implementations may return a link
count of `1' for directories with an indeterminate number of
subdirectories; if either the upper or lower layer returns a link
count of `1', return a link count of 1.  If both layers return a link
count of 2, return a link count of 2; otherwise, return the sum of the
link count of both layers.

Also, fix PR7430: unionfs ignores read-only mounts.  Check for
MNT_RDONLY in union_lookup (more-or-less as in layer_lookup) as well
as union_access() and union_setattr().

Note that a read-only union layer may still cause side effects on the
underlying filesystems...  Most notably, we'll still attempt to create
shadow directories in the upper layer.  Also, of course, we'll
side-effect atimes in the lower layer.
1999-08-01 23:16:34 +00:00
..
deadfs
fdesc From Bill Studenmund: unlock the fdescfs "/dev/tty" vnode before calling 1999-07-19 23:00:47 +00:00
fifofs Use the so_send and so_receive funcptrs in the socket instead of calling 1998-10-31 01:18:41 +00:00
genfs Define VLAYER and make layered fs's set this flag when creating their vnodes. 1999-07-15 21:30:31 +00:00
kernfs Bump osrelease to 1.4E. Add layerfs files, remove null_subr.c. 1999-07-08 01:26:21 +00:00
nullfs Introduce layer library in genfs. This set of files abstracts most of 1999-07-08 01:18:59 +00:00
portal Bump osrelease to 1.4E. Add layerfs files, remove null_subr.c. 1999-07-08 01:26:21 +00:00
procfs Add calls to lock the proclist as appropriate. 1999-07-25 18:33:47 +00:00
specfs Make spec_write() process errors and return them, otherwise we don't even 1998-10-02 00:21:39 +00:00
umapfs Introduce layer library in genfs. This set of files abstracts most of 1999-07-08 01:18:59 +00:00
union Fix PR4439: directory link count in unions where only upper directory 1999-08-01 23:16:34 +00:00
Makefile Rework the way kernel include files are installed. In the new method, 1998-06-12 23:22:30 +00:00