From: Stéphane Graber Date: Wed, 3 Jun 2015 23:37:59 +0000 (-0400) Subject: Revert bdev.h to the way it was X-Git-Tag: lxc-1.0.8~121 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44ba88343f8282680ce241976cde6b0218fc5abf;p=thirdparty%2Flxc.git 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: Stéphane Graber --- diff --git a/src/lxc/bdev.c b/src/lxc/bdev.c index 5b22248df..29f4f21e0 100644 --- a/src/lxc/bdev.c +++ b/src/lxc/bdev.c @@ -62,14 +62,6 @@ #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" diff --git a/src/lxc/bdev.h b/src/lxc/bdev.h index 0907fb79c..c7d52af23 100644 --- a/src/lxc/bdev.h +++ b/src/lxc/bdev.h @@ -32,6 +32,32 @@ #include #include + +/* 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 { diff --git a/src/lxc/cgfs.c b/src/lxc/cgfs.c index ea90774e7..d3d2d42c4 100644 --- a/src/lxc/cgfs.c +++ b/src/lxc/cgfs.c @@ -55,10 +55,6 @@ #include #endif -#ifndef MS_RELATIME -#define MS_RELATIME (1<<21) -#endif - struct cgroup_hierarchy; struct cgroup_meta_data; struct cgroup_mount_point;