diff options
author | Dong Hao | 2012-03-21 06:50:14 +0100 |
---|---|---|
committer | Karel Zak | 2012-03-21 12:35:54 +0100 |
commit | c7b0af96bcd7489424ff291bbbc9d14b2dda9435 (patch) | |
tree | cf593dca516a5a09cbb0a560cdbc8a5dd0c37654 /libmount/src/context_mount.c | |
parent | fsck: tiny coding style fix (diff) | |
download | kernel-qcow2-util-linux-c7b0af96bcd7489424ff291bbbc9d14b2dda9435.tar.gz kernel-qcow2-util-linux-c7b0af96bcd7489424ff291bbbc9d14b2dda9435.tar.xz kernel-qcow2-util-linux-c7b0af96bcd7489424ff291bbbc9d14b2dda9435.zip |
mount: fix recursively propagation mounting
Provide the recursive flag of propagation mounting. Recursive flag could
be used together with propagation flag.
[kzak@redhat.com: - add MS_SILENT to acceptable propagation flags,
- fix new code in libmount too]
Signed-off-by: Karel Zak <kzak@redhat.com>
Signed-off-by: Dong Hao <haodong@linux.vnet.ibm.com>
Diffstat (limited to 'libmount/src/context_mount.c')
-rw-r--r-- | libmount/src/context_mount.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libmount/src/context_mount.c b/libmount/src/context_mount.c index 4174f84cb..976f45927 100644 --- a/libmount/src/context_mount.c +++ b/libmount/src/context_mount.c @@ -48,9 +48,10 @@ static int fix_optstr(struct libmnt_context *cxt) fs = cxt->fs; - /* The propagation flags should not be used together with any other flags */ + /* The propagation flags should not be used together with any other + * flags (except MS_REC and MS_SILENT) */ if (cxt->mountflags & MS_PROPAGATION) - cxt->mountflags &= MS_PROPAGATION; + cxt->mountflags &= (MS_PROPAGATION | MS_REC | MS_SILENT); if (!mnt_optstr_get_option(fs->user_optstr, "user", &val, &valsz)) { if (val) { |