Commit 968fbd36 by Sergey S. Kostyliov Committed by Daniel Lezcano

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: 's avatarSergey S. Kostyliov <rathamahata@gmail.com> Signed-off-by: 's avatarDaniel Lezcano <dlezcano@fr.ibm.com>
parent acb0e330
...@@ -68,6 +68,10 @@ lxc_log_define(lxc_conf, lxc); ...@@ -68,6 +68,10 @@ lxc_log_define(lxc_conf, lxc);
#define MAXMTULEN 16 #define MAXMTULEN 16
#define MAXLINELEN 128 #define MAXLINELEN 128
#ifndef MS_DIRSYNC
#define MS_DIRSYNC 128
#endif
#ifndef MS_REC #ifndef MS_REC
#define MS_REC 16384 #define MS_REC 16384
#endif #endif
...@@ -133,6 +137,7 @@ static struct mount_opt mount_opt[] = { ...@@ -133,6 +137,7 @@ static struct mount_opt mount_opt[] = {
{ "noexec", 0, MS_NOEXEC }, { "noexec", 0, MS_NOEXEC },
{ "sync", 0, MS_SYNCHRONOUS }, { "sync", 0, MS_SYNCHRONOUS },
{ "async", 1, MS_SYNCHRONOUS }, { "async", 1, MS_SYNCHRONOUS },
{ "dirsync", 0, MS_DIRSYNC },
{ "remount", 0, MS_REMOUNT }, { "remount", 0, MS_REMOUNT },
{ "mand", 0, MS_MANDLOCK }, { "mand", 0, MS_MANDLOCK },
{ "nomand", 1, MS_MANDLOCK }, { "nomand", 1, MS_MANDLOCK },
......
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