]> git.ipfire.org Git - thirdparty/util-linux.git/blame - mount/mount_constants.h
Imported from util-linux-2.10s tarball.
[thirdparty/util-linux.git] / mount / mount_constants.h
CommitLineData
5c36a0eb 1#ifndef MS_RDONLY
fd6b7a7f 2#define MS_RDONLY 1 /* Mount read-only */
5c36a0eb
KZ
3#endif
4#ifndef MS_NOSUID
fd6b7a7f 5#define MS_NOSUID 2 /* Ignore suid and sgid bits */
5c36a0eb
KZ
6#endif
7#ifndef MS_NODEV
fd6b7a7f 8#define MS_NODEV 4 /* Disallow access to device special files */
5c36a0eb
KZ
9#endif
10#ifndef MS_NOEXEC
fd6b7a7f 11#define MS_NOEXEC 8 /* Disallow program execution */
5c36a0eb
KZ
12#endif
13#ifndef MS_SYNCHRONOUS
fd6b7a7f 14#define MS_SYNCHRONOUS 16 /* Writes are synced at once */
5c36a0eb
KZ
15#endif
16#ifndef MS_REMOUNT
fd6b7a7f 17#define MS_REMOUNT 32 /* Alter flags of a mounted FS */
5c36a0eb
KZ
18#endif
19#ifndef MS_MANDLOCK
fd6b7a7f 20#define MS_MANDLOCK 64 /* Allow mandatory locks on an FS */
5c36a0eb 21#endif
66ee8158
KZ
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
34flags had been set; if we have a union with more than one element - fail;
35if we have a stack or plain mount - mount atop of it, forming a stack. */
36#define MS_OVER 0x200 /* 512 */
37#endif
5c36a0eb 38#ifndef MS_NOATIME
fd6b7a7f 39#define MS_NOATIME 1024 /* Do not update access times. */
5c36a0eb
KZ
40#endif
41#ifndef MS_NODIRATIME
2b6fc908 42#define MS_NODIRATIME 2048 /* Do not update directory access times */
5c36a0eb 43#endif
66ee8158
KZ
44#ifndef MS_BIND
45#define MS_BIND 4096
46#endif
fd6b7a7f
KZ
47/*
48 * Magic mount flag number. Has to be or-ed to the flag values.
49 */
2b6fc908 50#ifndef MS_MGC_VAL
fd6b7a7f 51#define MS_MGC_VAL 0xC0ED0000 /* magic flag number to indicate "new" flags */
2b6fc908 52#endif
5c36a0eb 53#ifndef MS_MGC_MSK
fd6b7a7f 54#define MS_MGC_MSK 0xffff0000 /* magic flag number mask */
5c36a0eb 55#endif