Upload Tizen:Base source
[framework/base/util-linux-ng.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_DIRSYNC
23 #define MS_DIRSYNC      128     /* Directory modifications are synchronous */
24 #endif
25 #ifndef MS_NOATIME
26 #define MS_NOATIME      0x400   /* 1024: Do not update access times. */
27 #endif
28 #ifndef MS_NODIRATIME
29 #define MS_NODIRATIME   0x800   /* 2048: Don't update directory access times */
30 #endif
31 #ifndef MS_BIND
32 #define MS_BIND         0x1000  /* 4096: Mount existing tree also elsewhere */
33 #endif
34 #ifndef MS_MOVE
35 #define MS_MOVE         0x2000  /* 8192: Atomically move tree */
36 #endif
37 #ifndef MS_REC
38 #define MS_REC          0x4000  /* 16384: Recursive loopback */
39 #endif
40 #ifndef MS_VERBOSE
41 #define MS_VERBOSE      0x8000  /* 32768 */
42 #endif
43 #ifndef MS_RELATIME
44 #define MS_RELATIME     0x200000 /* 200000: Update access times relative
45                                   to mtime/ctime */
46 #endif
47 #ifndef MS_UNBINDABLE
48 #define MS_UNBINDABLE   (1<<17) /* 131072 unbindable*/
49 #endif
50 #ifndef MS_PRIVATE
51 #define MS_PRIVATE      (1<<18) /* 262144 Private*/
52 #endif
53 #ifndef MS_SLAVE
54 #define MS_SLAVE        (1<<19) /* 524288 Slave*/
55 #endif
56 #ifndef MS_SHARED
57 #define MS_SHARED       (1<<20) /* 1048576 Shared*/
58 #endif
59 #ifndef MS_I_VERSION
60 #define MS_I_VERSION    (1<<23) /* update inode I_version field */
61 #endif
62 #ifndef MS_STRICTATIME
63 #define MS_STRICTATIME  (1<<24) /* strict atime semantics */
64 #endif
65 /*
66  * Magic mount flag number. Had to be or-ed to the flag values.
67  */
68 #ifndef MS_MGC_VAL
69 #define MS_MGC_VAL 0xC0ED0000   /* magic flag number to indicate "new" flags */
70 #endif
71 #ifndef MS_MGC_MSK
72 #define MS_MGC_MSK 0xffff0000   /* magic flag number mask */
73 #endif