]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Revert bdev.h to the way it was
authorStéphane Graber <stgraber@ubuntu.com>
Wed, 3 Jun 2015 23:37:59 +0000 (19:37 -0400)
committerStéphane Graber <stgraber@ubuntu.com>
Wed, 1 Jul 2015 17:43:46 +0000 (13:43 -0400)
Instead of re-defining MS_ options all over the place, just revert the
last change to bdev.h so we have all the defines in there again.

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/bdev.c
src/lxc/bdev.h
src/lxc/cgfs.c

index 0094f68fc694de9c5cbc016b10eae82879d07036..53465b1c6d5241c2b0623fe1711b4a7e95d5277d 100644 (file)
 #define LO_FLAGS_AUTOCLEAR 4
 #endif
 
-#ifndef MS_REC
-#define MS_REC 16384
-#endif
-
-#ifndef MS_SLAVE
-#define MS_SLAVE (1<<19)
-#endif
-
 #define DEFAULT_FS_SIZE 1073741824
 #define DEFAULT_FSTYPE "ext3"
 
index 2144c1926b595b45a2d9f107f59622b96357d574..ce4170867f5def9238dd2d6bedc5338ab8d33a98 100644 (file)
 #include <stdint.h>
 #include <lxc/lxccontainer.h>
 
+
+/* define constants if the kernel/glibc headers don't define them */
+#ifndef MS_DIRSYNC
+#define MS_DIRSYNC  128
+#endif
+
+#ifndef MS_REC
+#define MS_REC 16384
+#endif
+
+#ifndef MNT_DETACH
+#define MNT_DETACH 2
+#endif
+
+#ifndef MS_SLAVE
+#define MS_SLAVE (1<<19)
+#endif
+
+#ifndef MS_RELATIME
+#define MS_RELATIME (1 << 21)
+#endif
+
+#ifndef MS_STRICTATIME
+#define MS_STRICTATIME (1 << 24)
+#endif
+
 struct bdev;
 
 struct bdev_ops {
index dd156afd37447e1b4c7a3a579805251ad2674e66..fcb3cde15fdff8bd436a09971ba4bd3b3accd99a 100644 (file)
 #include <mntent.h>
 #endif
 
-#ifndef MS_RELATIME
-#define MS_RELATIME (1<<21)
-#endif
-
 struct cgroup_hierarchy;
 struct cgroup_meta_data;
 struct cgroup_mount_point;