Skip to contentSkip to conversation

Mount: fix recursively propagation mounting

PATCH Applied don 3 participants 3 messages Mar 21, 2012 Util-Linux package

lore
Share & tools
lore

don

author
#0 lore raw

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
index 2ce4829..f10659c 100644
@@ -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
#1 lore raw
Quoted 29 lines · don

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
index 2ce4829..f10659c 100644
@@ -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

maintainer Applied
#2 lore raw
In reply to don
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