diff options
author | Sergey S. Kostyliov <rathamahata@gmail.com> | 2010-10-30 21:41:19 +0200 |
---|---|---|
committer | Daniel Lezcano <dlezcano@fr.ibm.com> | 2010-10-30 21:41:19 +0200 |
commit | 968fbd36057db3132c68a63700e42929e5df5e2d (patch) | |
tree | e3af9501e9c034b35d90c84460cf6c50523a1439 | |
parent | set version to 0.7.3 (diff) | |
download | lxc-968fbd36057db3132c68a63700e42929e5df5e2d.tar.gz lxc-968fbd36057db3132c68a63700e42929e5df5e2d.tar.bz2 lxc-968fbd36057db3132c68a63700e42929e5df5e2d.zip |
add support for dirsync mount option
Add support for `dirsync' mount option. MS_DIRSYNC is on of the
mount(2) mountflags so don't send it as extra mount option to avoid:
lxc-start: Invalid argument - failed to mount ...
errors.
Signed-off-by: Sergey S. Kostyliov <rathamahata@gmail.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
-rw-r--r-- | src/lxc/conf.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lxc/conf.c b/src/lxc/conf.c index e4e4bb5..73913c2 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -68,6 +68,10 @@ lxc_log_define(lxc_conf, lxc); #define MAXMTULEN 16 #define MAXLINELEN 128 +#ifndef MS_DIRSYNC +#define MS_DIRSYNC 128 +#endif + #ifndef MS_REC #define MS_REC 16384 #endif @@ -133,6 +137,7 @@ static struct mount_opt mount_opt[] = { { "noexec", 0, MS_NOEXEC }, { "sync", 0, MS_SYNCHRONOUS }, { "async", 1, MS_SYNCHRONOUS }, + { "dirsync", 0, MS_DIRSYNC }, { "remount", 0, MS_REMOUNT }, { "mand", 0, MS_MANDLOCK }, { "nomand", 1, MS_MANDLOCK }, |