Skip to content

Commit

Permalink
sys/mount: add mount flag definition
Browse files Browse the repository at this point in the history
Signed-off-by: guoshichao <guoshichao@xiaomi.com>
  • Loading branch information
extinguish committed Dec 24, 2024
1 parent 5c23e61 commit 0914011
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion include/sys/mount.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,16 @@

/* Mount flags */

#define MS_RDONLY 1 /* Mount file system read-only */
#define MS_RDONLY 1 /* Mount file system read-only */
#define MS_NOSUID 2 /* Ignore suid and sgid bits */
#define MS_NODEV 4 /* Disallow access to device special files */
#define MS_NOEXEC 8 /* Disallow program execution */
#define MS_SYNCHRONOUS 16 /* Writes are synced at once */
#define MS_REMOUNT 32 /* Alter flags of a mounted FS */
#define MS_MANDLOCK 64 /* Allow mandatory locks on an FS */
#define MS_DIRSYNC 128 /* Directory modifications are synchronous */
#define MS_NOSYMFOLLOW 256 /* Do not follow symlinks */
#define MS_NOATIME 1024 /* Do not update access times. */

/* Un-mount flags
*
Expand Down

0 comments on commit 0914011

Please sign in to comment.