diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2018-10-01 13:56:53 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-10-08 08:36:58 +0200 |
commit | f8dd51cc2bccbb138c4c6e6dc0531a153c8d96f6 (patch) | |
tree | 8eecda759b3b733c22e3e6b2469592df7851d30b /include | |
parent | 728ae5e57113000ed377cb0cf83df4d9eb0cb062 (diff) | |
download | barebox-f8dd51cc2bccbb138c4c6e6dc0531a153c8d96f6.tar.gz barebox-f8dd51cc2bccbb138c4c6e6dc0531a153c8d96f6.tar.xz |
fs: Add SB_* flags
Newer Kernel fs code uses SB_* flags rather than the same MS_* flags.
Add them to barebox to make porting code easier.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/fs.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 0c91434039..e2a69890f0 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -50,6 +50,25 @@ struct dir_context { }; /* + * sb->s_flags. Note that these mirror the equivalent MS_* flags where + * represented in both. + */ +#define SB_RDONLY 1 /* Mount read-only */ +#define SB_NOSUID 2 /* Ignore suid and sgid bits */ +#define SB_NODEV 4 /* Disallow access to device special files */ +#define SB_NOEXEC 8 /* Disallow program execution */ +#define SB_SYNCHRONOUS 16 /* Writes are synced at once */ +#define SB_MANDLOCK 64 /* Allow mandatory locks on an FS */ +#define SB_DIRSYNC 128 /* Directory modifications are synchronous */ +#define SB_NOATIME 1024 /* Do not update access times. */ +#define SB_NODIRATIME 2048 /* Do not update directory access times */ +#define SB_SILENT 32768 +#define SB_POSIXACL (1<<16) /* VFS does not apply the umask */ +#define SB_KERNMOUNT (1<<22) /* this is a kern_mount call */ +#define SB_I_VERSION (1<<23) /* Update inode I_version field */ +#define SB_LAZYTIME (1<<25) /* Update the on-disk [acm]times lazily */ + +/* * These are the fs-independent mount-flags: up to 32 flags are supported */ #define MS_RDONLY 1 /* Mount read-only */ |