]> git.ipfire.org Git - thirdparty/util-linux.git/blob - mount/mount_constants.h
Imported from util-linux-2.10s tarball.
[thirdparty/util-linux.git] / mount / mount_constants.h
1 #ifndef MS_RDONLY
2 #define MS_RDONLY 1 /* Mount read-only */
3 #endif
4 #ifndef MS_NOSUID
5 #define MS_NOSUID 2 /* Ignore suid and sgid bits */
6 #endif
7 #ifndef MS_NODEV
8 #define MS_NODEV 4 /* Disallow access to device special files */
9 #endif
10 #ifndef MS_NOEXEC
11 #define MS_NOEXEC 8 /* Disallow program execution */
12 #endif
13 #ifndef MS_SYNCHRONOUS
14 #define MS_SYNCHRONOUS 16 /* Writes are synced at once */
15 #endif
16 #ifndef MS_REMOUNT
17 #define MS_REMOUNT 32 /* Alter flags of a mounted FS */
18 #endif
19 #ifndef MS_MANDLOCK
20 #define MS_MANDLOCK 64 /* Allow mandatory locks on an FS */
21 #endif
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
30 on the mountpoint. */
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 */
37 #endif
38 #ifndef MS_NOATIME
39 #define MS_NOATIME 1024 /* Do not update access times. */
40 #endif
41 #ifndef MS_NODIRATIME
42 #define MS_NODIRATIME 2048 /* Do not update directory access times */
43 #endif
44 #ifndef MS_BIND
45 #define MS_BIND 4096
46 #endif
47 /*
48 * Magic mount flag number. Has to be or-ed to the flag values.
49 */
50 #ifndef MS_MGC_VAL
51 #define MS_MGC_VAL 0xC0ED0000 /* magic flag number to indicate "new" flags */
52 #endif
53 #ifndef MS_MGC_MSK
54 #define MS_MGC_MSK 0xffff0000 /* magic flag number mask */
55 #endif