Add mount flags that are "recent".
authorDaniel Hokka Zakrisson <daniel@hozac.com>
Tue, 23 Jun 2009 18:16:53 +0000 (18:16 +0000)
committerDaniel Hokka Zakrisson <daniel@hozac.com>
Tue, 23 Jun 2009 18:16:53 +0000 (18:16 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2840 94cd875c-1c1d-0410-91d2-eb244daf1a30

src/exec-remount.c
src/secure-mount.c

index d2b693c..caa5970 100644 (file)
 #define CMD_VERSION            0x1001
 #define CMD_MTAB               0x2001
 
+#ifndef MNT_DETACH
+#define MNT_DETACH             0x0002
+#endif
+
 static struct option const
 CMDLINE_OPTIONS[] = {
   { "help",    no_argument,       0, CMD_HELP },
index 3ef6edf..3ca4257 100644 (file)
@@ -112,7 +112,19 @@ CMDLINE_OPTIONS[] = {
 };
 
 #ifndef MS_REC
-#  define MS_REC       0x4000
+#define MS_REC         0x4000
+#endif
+#ifndef MS_UNBINDABLE
+#define MS_UNBINDABLE  (1<<17)
+#endif
+#ifndef MS_PRIVATE
+#define MS_PRIVATE     (1<<18)
+#endif
+#ifndef MS_SLAVE
+#define MS_SLAVE       (1<<19)
+#endif
+#ifndef MS_SHARED
+#define MS_SHARED      (1<<20)
 #endif
 
 static struct FstabOption {