Project

General

Profile

Actions

Submit #2900

closed

Add MNT_AUTOMOUNTED to port autofs from FreeBSD

Added by tkusumi almost 8 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
04/19/2016
Due date:
% Done:

0%

Estimated time:

Description

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) */

  1. 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
Actions #1

Updated by tkusumi almost 8 years ago

  • Status changed from New to Closed

Using 0x20 for autofs was acked by dillon@, so closing this ticket.

Actions

Also available in: Atom PDF