diff options
author | Daniel Dickinson <lede@daniel.thecshore.com> | 2016-05-22 05:30:37 -0400 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2016-05-19 07:47:16 +0200 |
commit | bfd81bcedca6acae8951a4dbcd4f45933e5f0473 (patch) | |
tree | 44111e4241145d8fa56582dbd288ea2bbb8c778d | |
parent | 1fb7688606323ee0ce79b64a5aa75b8df0484356 (diff) | |
download | fstools-bfd81bcedca6acae8951a4dbcd4f45933e5f0473.tar.gz |
block.c: Use <linux/fs.h> instead of defining mount flags ourselves
Let's use the cannonical source of mount flags instead of
defining the flags ourselves.
Signed-off-by: Daniel Dickinson <lede@daniel.thecshore.com>
-rw-r--r-- | block.c | 14 |
1 files changed, 2 insertions, 12 deletions
@@ -29,6 +29,8 @@ #include <sys/mount.h> #include <sys/wait.h> +#include <linux/fs.h> + #include <uci.h> #include <uci_blob.h> @@ -147,18 +149,6 @@ struct mount_flag { int32_t flag; }; -#ifndef MS_DIRSYNC -# define MS_DIRSYNC (1 << 7) -#endif - -#ifndef MS_RELATIME -# define MS_RELATIME (1 << 21) -#endif - -#ifndef MS_STRICTATIME -# define MS_STRICTATIME (1 << 24) -#endif - static const struct mount_flag mount_flags[] = { { "sync", MS_SYNCHRONOUS }, { "async", ~MS_SYNCHRONOUS }, |