Revert bdev.h to the way it was

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: 's avatarStéphane Graber <stgraber@ubuntu.com>
parent 54c06100
...@@ -63,14 +63,6 @@ ...@@ -63,14 +63,6 @@
#define LO_FLAGS_AUTOCLEAR 4 #define LO_FLAGS_AUTOCLEAR 4
#endif #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_FS_SIZE 1073741824
#define DEFAULT_FSTYPE "ext3" #define DEFAULT_FSTYPE "ext3"
......
...@@ -31,6 +31,32 @@ ...@@ -31,6 +31,32 @@
#include <stdint.h> #include <stdint.h>
#include <lxc/lxccontainer.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;
struct bdev_ops { struct bdev_ops {
......
...@@ -55,10 +55,6 @@ ...@@ -55,10 +55,6 @@
#include <mntent.h> #include <mntent.h>
#endif #endif
#ifndef MS_RELATIME
#define MS_RELATIME (1<<21)
#endif
struct cgroup_hierarchy; struct cgroup_hierarchy;
struct cgroup_meta_data; struct cgroup_meta_data;
struct cgroup_mount_point; struct cgroup_mount_point;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment