[Bug 195564] New: [autofs] automount with map "/net -hosts" does not mount nested directories

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Dec 1 21:06:47 UTC 2014


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195564

            Bug ID: 195564
           Summary: [autofs] automount with map "/net -hosts" does not
                    mount nested directories
           Product: Base System
           Version: 10.1-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: la5lbtyi at aon.at

I have 10.1 running on various systems and tried using the new automounter for
the first time.

For testing, with the stock /etc/auto_master is issued the following commands
on the client:

# service automount onestart
# service automountd onestart
# service autounmountd onestart

The server exports the following filesystems (partial list only):

/
/z/SRC/FreeBSD
/z/SRC/FreeBSD-doc
/z/SRC/FreeBSD-ports
/z/SVN/FreeBSD
/z/SVN/FreeBSD-doc
/z/SVN/FreeBSD-ports

Note that /z, /z/SRC, and /z/SVN are not exported. In fact, the root of the zfs
filesystem hierarchy is mounted elsewhere, and therefore /z cannot be exported
separately. Only starting from the first-level sub-filesystems the zfs
filesystems are mounted under /z.

Now doing
# ls /net/server ==> yields the server's root directory
# ls /net/server/z ==> lists "SRC SVN"
# ls /net/server/z/SRC ==> lists nothing, but should list "FreeBSD FreeBSD-doc
FreeBSD-ports"
# ls /net/server/z/SRC/FreeBSD ==> gives "ls: /net/hal/z/SRC/FreeBSD: No such
file or directory", but should list "head release releng stable"

The third and fourth cases are wrong.

Also, at all times only the server's root directory is mounted, as shown by "df
-t nfs".

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list