git: autofs: Port autofs from FreeBSD

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Thu Jun 2 16:47:33 PDT 2016


commit e2950f411cf734644d0586c7ed409af918988d76
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Wed May 18 17:01:32 2016 +0900

    autofs: Port autofs from FreeBSD
    
    Brought in basically from
    FreeBSD at GitHub cac9beab7d53f0c37ce2a2a1b893be59028928f4
    with lots of changes.
    Note that this commit isn't necessarily 1:1 with above commit.
    
    Kernel code is basically a rewrite based on the FreeBSD code.
    Userspace is basically 1:1 with FreeBSD except that lots of small
    changes (including related commits listed below) were necessary.
    This is due to autofs being dependent on FreeBSD specific interface,
    command options and such.
    
    For userspace, note that non-functional stuff (e.g. whitespace
    warnings via git am) are intentionally left to be 1:1 with FreeBSD.
    Userspace is basically portable, so don't try to obfuscate the real
    changes made for DragonFly by fixing these for now till things are
    considered stable unless it's a bug from FreeBSD.
    
    Summary of newly added or modified files.
    - sys/vfs/autofs - autofs filesystem
    - usr.sbin/autofs - autofs userspace command and daemons
    - etc/ - configuration files and manpages
    - others - changes in misc subsystems (not independent of autofs)
    
    Related DragonFly commits.
    - usr.sbin/autofs: Workaround namecache bug after unmount
    - sys/kern: Don't implement .vfs_sync unless sync is supported
    - user.sbin/fstyp: Port fstyp from FreeBSD
    - sys/kern: Retry nlookup if nresolve returned ESTALE
    - sys/sys: Fix IOCPARM_MAX
    - sys/sys: Extend IOCPARM_MAX
    - usr.bin/showmount: Add -E option
    - sbin/mount_nfs: Add -o retrycnt= option
    - sys/kern: Add kqueue EVFILT_FS
    - sys/kern: Add kstrndup()
    
    Related DragonFly PRs.
    - https://bugs.dragonflybsd.org/issues/2900
    - https://bugs.dragonflybsd.org/issues/2901
    - https://bugs.dragonflybsd.org/issues/2905
    - https://bugs.dragonflybsd.org/issues/2907
    - https://bugs.dragonflybsd.org/issues/2908
    - https://bugs.dragonflybsd.org/issues/2909
    - https://bugs.dragonflybsd.org/issues/2912
    - https://bugs.dragonflybsd.org/issues/2913
    - https://bugs.dragonflybsd.org/issues/2914
    
    Other related resource.
    - http://lists.dragonflybsd.org/pipermail/users/2016-May/thread.html#249556
    - http://lists.dragonflybsd.org/pipermail/users/2016-June/thread.html#249680
    - https://www.dragonflydigest.com/2016/05/06/18066.html

Summary of changes:
 etc/Makefile                   |    5 +-
 etc/auto_master                |    9 +
 etc/autofs/Makefile            |   11 +
 etc/autofs/include_ldap        |   55 ++
 etc/autofs/special_hosts       |   17 +
 etc/autofs/special_media       |  120 ++++
 etc/autofs/special_noauto      |   29 +
 etc/autofs/special_null        |    4 +
 etc/defaults/rc.conf           |    1 +
 etc/mtree/BSD.include.dist     |    2 +
 etc/rc.d/Makefile              |    1 +
 etc/rc.d/automount             |   31 ++
 etc/rc.d/automountd            |   19 +
 etc/rc.d/autounmountd          |   18 +
 include/Makefile               |    3 +-
 include/mntopts.h              |    2 +
 sbin/mount/mount.8             |   12 +-
 sbin/mountd/mountd.c           |    3 +
 share/man/man5/Makefile        |    1 +
 share/man/man5/autofs.5        |  125 +++++
 share/man/man5/rc.conf.5       |   48 +-
 share/man/man7/hier.7          |    6 +-
 sys/conf/files                 |    3 +
 sys/conf/options               |    1 +
 sys/kern/vfs_subr.c            |    1 +
 sys/kern/vfs_syscalls.c        |    6 +-
 sys/sys/mount.h                |    3 +-
 sys/sys/vfscache.h             |    2 +-
 sys/vfs/Makefile               |    2 +-
 sys/vfs/autofs/Makefile        |    4 +
 sys/vfs/autofs/autofs.c        |  707 +++++++++++++++++++++++
 sys/vfs/autofs/autofs.h        |  191 +++++++
 sys/vfs/autofs/autofs_ioctl.h  |  120 ++++
 sys/vfs/autofs/autofs_mount.h  |   40 ++
 sys/vfs/autofs/autofs_vfsops.c |  238 ++++++++
 sys/vfs/autofs/autofs_vnops.c  |  617 ++++++++++++++++++++
 usr.sbin/Makefile              |    2 +
 usr.sbin/autofs/Makefile       |   17 +
 usr.sbin/autofs/auto_master.5  |  392 +++++++++++++
 usr.sbin/autofs/automount.8    |  123 ++++
 usr.sbin/autofs/automount.c    |  331 +++++++++++
 usr.sbin/autofs/automountd.8   |  116 ++++
 usr.sbin/autofs/automountd.c   |  554 ++++++++++++++++++
 usr.sbin/autofs/autounmountd.8 |  100 ++++
 usr.sbin/autofs/autounmountd.c |  339 +++++++++++
 usr.sbin/autofs/common.c       | 1207 ++++++++++++++++++++++++++++++++++++++++
 usr.sbin/autofs/common.h       |  130 +++++
 usr.sbin/autofs/defined.c      |  253 +++++++++
 usr.sbin/autofs/log.c          |  199 +++++++
 usr.sbin/autofs/popen.c        |  190 +++++++
 usr.sbin/autofs/token.l        |   59 ++
 51 files changed, 6458 insertions(+), 11 deletions(-)
 create mode 100644 etc/auto_master
 create mode 100644 etc/autofs/Makefile
 create mode 100644 etc/autofs/include_ldap
 create mode 100644 etc/autofs/special_hosts
 create mode 100755 etc/autofs/special_media
 create mode 100755 etc/autofs/special_noauto
 create mode 100644 etc/autofs/special_null
 create mode 100644 etc/rc.d/automount
 create mode 100644 etc/rc.d/automountd
 create mode 100644 etc/rc.d/autounmountd
 create mode 100644 share/man/man5/autofs.5
 create mode 100644 sys/vfs/autofs/Makefile
 create mode 100644 sys/vfs/autofs/autofs.c
 create mode 100644 sys/vfs/autofs/autofs.h
 create mode 100644 sys/vfs/autofs/autofs_ioctl.h
 create mode 100644 sys/vfs/autofs/autofs_mount.h
 create mode 100644 sys/vfs/autofs/autofs_vfsops.c
 create mode 100644 sys/vfs/autofs/autofs_vnops.c
 create mode 100644 usr.sbin/autofs/Makefile
 create mode 100644 usr.sbin/autofs/auto_master.5
 create mode 100644 usr.sbin/autofs/automount.8
 create mode 100644 usr.sbin/autofs/automount.c
 create mode 100644 usr.sbin/autofs/automountd.8
 create mode 100644 usr.sbin/autofs/automountd.c
 create mode 100644 usr.sbin/autofs/autounmountd.8
 create mode 100644 usr.sbin/autofs/autounmountd.c
 create mode 100644 usr.sbin/autofs/common.c
 create mode 100644 usr.sbin/autofs/common.h
 create mode 100644 usr.sbin/autofs/defined.c
 create mode 100644 usr.sbin/autofs/log.c
 create mode 100644 usr.sbin/autofs/popen.c
 create mode 100644 usr.sbin/autofs/token.l

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/e2950f411cf734644d0586c7ed409af918988d76


-- 
DragonFly BSD source repository



More information about the Commits mailing list