From: don <haodong@linux.vnet.ibm.com>
To: util-linux@vger.kernel.org
Subject: [PATCH] Mount: fix recursively propagation mounting
Date: Wed, 21 Mar 2012 17:15:48 +0800 [thread overview]
Message-ID: <4F699C44.70700@linux.vnet.ibm.com> (raw)
From: Dong Hao <haodong@linux.vnet.ibm.com>
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@linux.vnet.ibm.com>
---
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
next reply other threads:[~2012-03-21 9:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-21 9:15 don [this message]
2012-03-21 10:07 ` [PATCH] Mount: fix recursively propagation mounting Voelker, Bernhard
2012-03-21 11:38 ` Karel Zak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F699C44.70700@linux.vnet.ibm.com \
--to=haodong@linux.vnet.ibm.com \
--cc=util-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.