On Fri, Feb 26, 1999 at 09:16:44PM +0100, Luigi Rizzo wrote: > (about union mounts on 3.1 not returning all files with an 'ls' in 3.1 > while it did in 3.0) > > > Is it sorrect that this magic is implemented in sys/kern/vfs_lookup.c? > > The odd thing is that AFAICS no-one has made significant changes to > > this code. > > i just experienced the above today while trying diskless, and while ls > only seems to return the entries for the topmost directory, files are > accessible if you know the name. no idea if this is of any help. > > on a related subject; i noticed that using mount_null on a directory > with device entries (e.g. still in the diskless case, say /foo/dev is > an mfs partition with device entries, and i do a mount_null /foo/dev > /dev ) causes very bad effects such as crashing the system when i > start X. ideas about this as well ?
Yes. NULLFS mounts do not work, due to a combination of aliasing problems and locking problems. There is a preliminary patch at http://www.freebsd.org/~eivind/FixNULL.patch that I believe fix the aliasing problems, and some of the locking problems, but not all. Using nullfs with this works somewhat, but sometimes get locks screwed up (which result in access to one file just hanging). Eivind. To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-current" in the body of the message