kern/162591: cross-filesystem nullfs does not work as expected

mw at mw at
Tue Nov 15 18:50:07 UTC 2011

>Number:         162591
>Category:       kern
>Synopsis:       cross-filesystem nullfs does not work as expected
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 15 18:50:06 UTC 2011
>Originator:     Moritz Wilhelmy
>Release:        FreeBSD 9.0-RC2 amd64
System: FreeBSD 9.0-RC2 FreeBSD 9.0-RC2 #14: Wed Nov 9 10:27:26 UTC 2011 root at amd64

 mounting a tree with mount_nullfs does not work as expected if the
 filesystem has other nullfs filesystems mounted below. The files from the tree
 itself show up, but not the files from mountpoints under the tree. See below for
 an example.
 Expected behaviour would be that all mountpoints from the nullfs mount show up
 on the tree that it's mounted on.

 My original use-case:
  # mkdir -p testdir shares/testdir somejail/shares
  # touch testdir/{moo,cow}
  # ls testdir
  cow moo
  # mount_nullfs -o ro testdir shares/testdir
  # mount_nullfs -o ro shares somejail/shares
  # ls shares/testdir/
  cow moo
  # ls somejail/shares/testdir/
  # ^^^^ no files here

More information about the freebsd-bugs mailing list