Mount: fix recursively propagation mounting
PATCH 1/1 Mount: fix recursively propagation mounting
From: Dong Hao <[email protected]>
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.
--- mount/mount.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
mount/mount.c +0 -0
@@ -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. */
Signature · 1 line
1.7.2.5
Quoted 29 lines · don
From: Dong Hao <[email protected]>
Date: Wed, 21 Mar 2012 13:50:14 +0800
Subject: [PATCH] Mount: fix recursively propagation mountingProvide the recursive flag of propagation mounting. Recursive flag could be used together with propagation flag.
Signed-off-by Dong Hao <[email protected]>--- mount/mount.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)mount/mount.c +0
-0@@ -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)mount/mount.c +1
-1- *flags &=MS_PROPAGATION ; + *flags &= (MS_PROPAGATION |MS_REC ); }/* Try to build a canonical options string. */ Signature · 1 line
1.7.2.5
The comment above conflicts with the change.
Shouldn't it be also adapted?
Have a nice day,
Berny
Quoted 2 lines · don
mount/mount.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
Applied, thanks.
I have also added MS_SILENT to the acceptable flags and fixed the new mount code in libmount.
Karel
Signature · 2 lines
Karel Zak <[email protected]> http://karelzak.blogspot.com