]>
git.ipfire.org Git - thirdparty/util-linux.git/blob - mount/mount_constants.h
2 #define MS_RDONLY 1 /* Mount read-only */
5 #define MS_NOSUID 2 /* Ignore suid and sgid bits */
8 #define MS_NODEV 4 /* Disallow access to device special files */
11 #define MS_NOEXEC 8 /* Disallow program execution */
13 #ifndef MS_SYNCHRONOUS
14 #define MS_SYNCHRONOUS 16 /* Writes are synced at once */
17 #define MS_REMOUNT 32 /* Alter flags of a mounted FS */
20 #define MS_MANDLOCK 64 /* Allow mandatory locks on an FS */
22 #ifndef MS_ACTION_MASK
23 #define MS_ACTION_MASK 0x380
24 /* Remount, but new filesystem may be different from old. Atomic
25 (i.e. there is no interval when nothing is mounted at the mountpoint).
26 If new fs differs from the old one and old is busy - -EBUSY. */
27 #define MS_REPLACE 0x080 /* 128 */
28 /* After, Before: as soon as we get unions these will add a new member
29 in the end or beginning of the chain. Fail if there is a stack
31 #define MS_AFTER 0x100 /* 256 */
32 #define MS_BEFORE 0x180
33 /* Over: if nothing mounted on a mountpoint - same as if none of these
34 flags had been set; if we have a union with more than one element - fail;
35 if we have a stack or plain mount - mount atop of it, forming a stack. */
36 #define MS_OVER 0x200 /* 512 */
39 #define MS_NOATIME 1024 /* Do not update access times. */
42 #define MS_NODIRATIME 2048 /* Do not update directory access times */
48 * Magic mount flag number. Has to be or-ed to the flag values.
51 #define MS_MGC_VAL 0xC0ED0000 /* magic flag number to indicate "new" flags */
54 #define MS_MGC_MSK 0xffff0000 /* magic flag number mask */