|
|
|
RE: [PATCH] Mount: fix recursively propagation mounting | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
don wrote:
> 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
The comment above conflicts with the change.
Shouldn't it be also adapted?
Have a nice day,
Berny--
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
[Site Home] [Netdev] [Ethernet Bridging] [Linux Wireless] [Kernel Newbies] [Memory] [Security] [Linux for Hams] [Netfilter] [Bugtraq] [Rubini] [Photo] [Yosemite] [Yosemite News] [MIPS Linux] [ARM Linux] [Linux RAID] [Linux Admin] [Samba] [Video 4 Linux] [Linux Resources]