[DragonFlyBSD - Submit #2900] (New) Add MNT_AUTOMOUNTED to port autofs from FreeBSD

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Tue Apr 19 01:28:58 PDT 2016


Issue #2900 has been reported by tkusumi.

----------------------------------------
Submit #2900: Add MNT_AUTOMOUNTED to port autofs from FreeBSD
http://bugs.dragonflybsd.org/issues/2900

* Author: tkusumi
* Status: New
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
----------------------------------------
Matt,

I'd like to use 0x00000020 for MNT_AUTOMOUNTED for autofs since 0x20 is currently unused.
Auto(un)mountd (userspace daemon) needs this flag to distinguish filesystems mounted via autofs from others.

I don't want the new flag to be 0x0000000100000000ULL after MNT_NOCLUSTERW because this requires 64 bit mount flag (while mount(2) can only take int flag).

FreeBSD's autofs uses 0x0000000200000000ULL for the same macro, since FreeBSD has already extended it to uint64_t 5 years ago.
> #define MNT_AUTOMOUNTED 0x0000000200000000ULL /* mounted by automountd(8) */


# grep "#define[[:space:]]MNT_" . -rIH | grep -v MNT_WAIT | grep -v MNT_NOWAIT | grep -v MNT_LAZY | grep -v "sys/vfs/tmpfs" | awk '{print $3 " " $2 " " $1}'  | sort
(MNT_RDONLY MNT_VISFLAGMASK ./sys/sys/mount.h:#define
(MNT_UPDATE|MNT_DELEXPORT|MNT_RELOAD|MNT_FORCE) MNT_CMDFLAGS ./sys/sys/mount.h:#define
0x00000001 MNT_RDONLY ./sys/sys/mount.h:#define
0x00000002 MNT_SYNCHRONOUS ./sys/sys/mount.h:#define
0x00000004 MNT_NOEXEC ./sys/sys/mount.h:#define
0x00000008 MNT_NOSUID ./sys/sys/mount.h:#define
0x00000010 MNT_NODEV ./sys/sys/mount.h:#define
0x00000040 MNT_ASYNC ./sys/sys/mount.h:#define
0x00000080 MNT_EXRDONLY ./sys/sys/mount.h:#define
0x00000100 MNT_EXPORTED ./sys/sys/mount.h:#define
0x00000200 MNT_DEFEXPORTED ./sys/sys/mount.h:#define
0x00000400 MNT_EXPORTANON ./sys/sys/mount.h:#define
0x00000800 MNT_EXKERB ./sys/sys/mount.h:#define
0x00001000 MNT_LOCAL ./sys/sys/mount.h:#define
0x00002000 MNT_QUOTA ./sys/sys/mount.h:#define
0x00004000 MNT_ROOTFS ./sys/sys/mount.h:#define
0x00008000 MNT_USER ./sys/sys/mount.h:#define
0x00010000 MNT_UPDATE ./sys/sys/mount.h:#define
0x00020000 MNT_DELEXPORT ./sys/sys/mount.h:#define
0x00040000 MNT_RELOAD ./sys/sys/mount.h:#define
0x00080000 MNT_FORCE ./sys/sys/mount.h:#define
0x00100000 MNT_SUIDDIR ./sys/sys/mount.h:#define
0x00200000 MNT_SOFTDEP ./sys/sys/mount.h:#define
0x00400000 MNT_NOSYMFOLLOW ./sys/sys/mount.h:#define
0x00800000 MNT_IGNORE ./sys/sys/mount.h:#define
0x01000000 MNT_TRIM ./sys/sys/mount.h:#define
0x10000000 MNT_NOATIME ./sys/sys/mount.h:#define
0x20000000 MNT_EXPUBLIC ./sys/sys/mount.h:#define
0x40000000 MNT_NOCLUSTERR ./sys/sys/mount.h:#define
0x80000000 MNT_NOCLUSTERW ./sys/sys/mount.h:#define




-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account



More information about the Submit mailing list