git: sbin/mount_autofs: Add description

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Mon Jan 22 08:08:43 PST 2018


commit 192d378b81e754e3e605c81fa7336c668b1f7023
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Mon Jan 22 17:29:46 2018 +0200

    sbin/mount_autofs: Add description
    
    TL;DR users won't be running this command to mount autofs.
    
    Having autofs_enable=YES won't run this command either.
    There is a high level command automount(8) and that does everything
    based on /etc/auto_master contents.
    
    mount_autofs(8) is a low level version where users can manually
    specify things automount(8) internally passes to mount(2).
    Thus it's not easy or needed to understand what -fOp options exactly
    do without having clear understanding of autofs internal.
    But I'll write it here in case interested.
    
     -f is a string which eventually gets copied to statfs::f_mntfromname.
      Unlike most of the filesystems with backing store, this is just
      a label to identify the autofs mount.
     -O is mount options of autofs(5).
     -p is a prefix string to distinct direct and indirect mapping.

Summary of changes:
 sbin/mount_autofs/mount_autofs.8 | 20 ++++++++++++++++----
 1 file changed, 16 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/192d378b81e754e3e605c81fa7336c668b1f7023


-- 
DragonFly BSD source repository



More information about the Commits mailing list