]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
conf: order mount options
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 2 May 2017 21:37:16 +0000 (23:37 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 9 May 2017 16:32:08 +0000 (12:32 -0400)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/conf.c

index d146316c115df13e65e47c9e267f484e58712640..450d34222e87d6ca9a340bc9eb477ab9e4836378 100644 (file)
@@ -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              },
 };