Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 May 2020 08:07:54 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 246496] automount: erroneously creates mount point hierarchy in current directory
Message-ID:  <bug-246496-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D246496

            Bug ID: 246496
           Summary: automount: erroneously creates mount point hierarchy
                    in current directory
           Product: Base System
           Version: 12.1-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: d8zNeCFG@aon.at

Scenario:
- running FreeBSD 12.1-RELEASE-p5 #5 r361008M
- rc.conf contains autofs_enable=3D"YES"
- automountd and autounmountd are running
- /etc/auto_master is changed to contain additional hierarchies to be added
- these hierarchies reference the same /etc/auto_* files as those enabled so
far, albeit to be mounted at different locations
- Specifically:

/auto/backup                    auto_backup
/auto/multimedia                auto_multimedia
/auto/netspace                  auto_netspace
/auto/srcs                      auto_srcs
/auto/system                    auto_system
/auto/users                     auto_users
/auto/vdisks                    auto_vdisks
/auto/z                         auto_z

#C /d/rpi-b/auto/backup         auto_backup
#C /d/rpi-b/auto/multimedia     auto_multimedia
#C /d/rpi-b/auto/netspace               auto_netspace
#C /d/rpi-b/auto/srcs           auto_srcs
#C /d/rpi-b/auto/system         auto_system
#C /d/rpi-b/auto/users          auto_users
#C /d/rpi-b/auto/vdisks         auto_vdisks
#C /d/rpi-b/auto/z                      auto_z

- First, the leading '#C ' is removed, and then automount is called to re-s=
can
the modified auto_master

Result:
- In the directory where automount is being run, the mount hierarchy is cre=
ated
- Example (run in root's home dir):

[0]# du ~root
[...]
4       /root/d/rpi-b/auto/backup
4       /root/d/rpi-b/auto/multimedia
4       /root/d/rpi-b/auto/netspace
4       /root/d/rpi-b/auto/srcs
4       /root/d/rpi-b/auto/system
4       /root/d/rpi-b/auto/users
4       /root/d/rpi-b/auto/vdisks
4       /root/d/rpi-b/auto/z
36      /root/d/rpi-b/auto
40      /root/d/rpi-b
124     /root/d
[...]
[0]#=20

Expected result:
- If at all, this hierarchy should be created in /d/rpi-b, not in
/root/d/rpi-b. Note: the hierarchy in /d/rpi-b is created (later?) anyway (=
when
directories are actually mounted?).

-- Martin

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-246496-227>