summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Dickinson <lede@daniel.thecshore.com>2016-05-22 05:30:37 -0400
committerJohn Crispin <john@phrozen.org>2016-05-19 07:47:16 +0200
commitbfd81bcedca6acae8951a4dbcd4f45933e5f0473 (patch)
tree44111e4241145d8fa56582dbd288ea2bbb8c778d
parent1fb7688606323ee0ce79b64a5aa75b8df0484356 (diff)
downloadfstools-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.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/block.c b/block.c
index a6295a5..397db0f 100644
--- a/block.c
+++ b/block.c
@@ -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 },