From a8dc4bb25bee0d14ff8f8b7f88e35db86d263190 Mon Sep 17 00:00:00 2001 From: Daniel Hokka Zakrisson Date: Tue, 23 Jun 2009 18:16:53 +0000 Subject: [PATCH] Add mount flags that are "recent". git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2840 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- src/exec-remount.c | 4 ++++ src/secure-mount.c | 14 +++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/src/exec-remount.c b/src/exec-remount.c index d2b693c..caa5970 100644 --- a/src/exec-remount.c +++ b/src/exec-remount.c @@ -40,6 +40,10 @@ #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 }, diff --git a/src/secure-mount.c b/src/secure-mount.c index 3ef6edf..3ca4257 100644 --- a/src/secure-mount.c +++ b/src/secure-mount.c @@ -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 { -- 1.8.1.5