[PATCH] Mount: fix recursively propagation mounting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Dong Hao <haodong@xxxxxxxxxxxxxxxxxx>
Date: Wed, 21 Mar 2012 13:50:14 +0800
Subject: [PATCH] Mount: fix recursively propagation mounting

Provide the recursive flag of propagation mounting. Recursive flag could be used together with propagation flag.

Signed-off-by: Dong Hao <haodong@xxxxxxxxxxxxxxxxxx>
---
 mount/mount.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/mount/mount.c b/mount/mount.c
index 2ce4829..f10659c 100644
--- a/mount/mount.c
+++ b/mount/mount.c
@@ -603,7 +603,7 @@ parse_opts (const char *options, int *flags, char **extra_opts) {

/* The propagation flags should not be used together with any other flags */
     if (*flags & MS_PROPAGATION)
-        *flags &= MS_PROPAGATION;
+        *flags &= (MS_PROPAGATION|MS_REC);
 }

 /* Try to build a canonical options string.  */
--
1.7.2.5

--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux