From: Christian Brauner Date: Tue, 2 May 2017 21:37:16 +0000 (+0200) Subject: conf: order mount options X-Git-Tag: lxc-1.0.10~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0213547b5815d01665e01f0228f9695e442f445;p=thirdparty%2Flxc.git conf: order mount options Signed-off-by: Christian Brauner --- diff --git a/src/lxc/conf.c b/src/lxc/conf.c index d146316c1..450d34222 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -225,31 +225,31 @@ static instantiate_cb netdev_deconf[LXC_NET_MAXCONFTYPE + 1] = { }; static struct mount_opt mount_opt[] = { + { "async", 1, MS_SYNCHRONOUS }, + { "atime", 1, MS_NOATIME }, + { "bind", 0, MS_BIND }, { "defaults", 0, 0 }, - { "ro", 0, MS_RDONLY }, - { "rw", 1, MS_RDONLY }, - { "suid", 1, MS_NOSUID }, - { "nosuid", 0, MS_NOSUID }, { "dev", 1, MS_NODEV }, - { "nodev", 0, MS_NODEV }, - { "exec", 1, MS_NOEXEC }, - { "noexec", 0, MS_NOEXEC }, - { "sync", 0, MS_SYNCHRONOUS }, - { "async", 1, MS_SYNCHRONOUS }, + { "diratime", 1, MS_NODIRATIME }, { "dirsync", 0, MS_DIRSYNC }, - { "remount", 0, MS_REMOUNT }, + { "exec", 1, MS_NOEXEC }, { "mand", 0, MS_MANDLOCK }, - { "nomand", 1, MS_MANDLOCK }, - { "atime", 1, MS_NOATIME }, { "noatime", 0, MS_NOATIME }, - { "diratime", 1, MS_NODIRATIME }, + { "nodev", 0, MS_NODEV }, { "nodiratime", 0, MS_NODIRATIME }, - { "bind", 0, MS_BIND }, + { "noexec", 0, MS_NOEXEC }, + { "nomand", 1, MS_MANDLOCK }, + { "norelatime", 1, MS_RELATIME }, + { "nostrictatime", 1, MS_STRICTATIME }, + { "nosuid", 0, MS_NOSUID }, { "rbind", 0, MS_BIND|MS_REC }, { "relatime", 0, MS_RELATIME }, - { "norelatime", 1, MS_RELATIME }, + { "remount", 0, MS_REMOUNT }, + { "ro", 0, MS_RDONLY }, + { "rw", 1, MS_RDONLY }, { "strictatime", 0, MS_STRICTATIME }, - { "nostrictatime", 1, MS_STRICTATIME }, + { "suid", 1, MS_NOSUID }, + { "sync", 0, MS_SYNCHRONOUS }, { NULL, 0, 0 }, };