8 #include <klibc/extern.h>
11 * These are the fs-independent mount-flags: up to 32 flags are supported
13 #define MS_RDONLY 1 /* Mount read-only */
14 #define MS_NOSUID 2 /* Ignore suid and sgid bits */
15 #define MS_NODEV 4 /* Disallow access to device special files */
16 #define MS_NOEXEC 8 /* Disallow program execution */
17 #define MS_SYNCHRONOUS 16 /* Writes are synced at once */
18 #define MS_REMOUNT 32 /* Alter flags of a mounted FS */
19 #define MS_MANDLOCK 64 /* Allow mandatory locks on an FS */
20 #define MS_DIRSYNC 128 /* Directory modifications are synchronous */
21 #define MS_NOATIME 1024 /* Do not update access times. */
22 #define MS_NODIRATIME 2048 /* Do not update directory access times */
26 #define MS_VERBOSE 32768
27 #define MS_NOUSER (1<<31)
30 * Superblock flags that can be altered by MS_REMOUNT
32 #define MS_RMT_MASK (MS_RDONLY|MS_SYNCHRONOUS|MS_MANDLOCK|MS_NOATIME|MS_NODIRATIME)
35 * Old magic mount flag and mask
37 #define MS_MGC_VAL 0xC0ED0000
38 #define MS_MGC_MSK 0xffff0000
48 __extern int mount(const char *, const char *,
49 const char *, unsigned long,
51 __extern int umount(const char *);
52 __extern int umount2(const char *, int);
53 __extern int pivot_root(const char *, const char *);
55 #endif /* _SYS_MOUNT_H */