Re: [RFC][PATCH 26/27] /proc/mounts: treat ro/rw like the rest

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jun 07, 2006 at 05:10:39PM -0700, Dave Hansen wrote:
> 
> Originally from: Herbert Poetzl <herbert@xxxxxxxxxxxx>
> 
> Now that we have the set/unset fields in the fs_info[]
> array, we can stop special-casing the ro/rw bits.

Signed-off-by: Herbert Poetzl <herbert@xxxxxxxxxxxx>
> Signed-off-by: Dave Hansen <haveblue@xxxxxxxxxx>
> ---
> 
>  lxc-dave/fs/namespace.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletion(-)
> 
> diff -puN fs/namespace.c~D7-proc-show-ro-attr-actual fs/namespace.c
> --- lxc/fs/namespace.c~D7-proc-show-ro-attr-actual	2006-06-07 16:53:28.000000000 -0700
> +++ lxc-dave/fs/namespace.c	2006-06-07 16:53:28.000000000 -0700
> @@ -361,6 +361,7 @@ static int show_vfsmnt(struct seq_file *
>  		char *set_str;
>  		char *unset_str;
>  	} fs_info[] = {
> +		{ MS_RDONLY, MNT_RDONLY, "ro", "rw" },
>  		{ MS_SYNCHRONOUS, 0, ",sync", NULL },
>  		{ MS_DIRSYNC, 0, ",dirsync", NULL },
>  		{ MS_MANDLOCK, 0, ",mand", NULL },
> @@ -376,7 +377,7 @@ static int show_vfsmnt(struct seq_file *
>  	seq_path(m, mnt, mnt->mnt_root, " \t\n\\");
>  	seq_putc(m, ' ');
>  	mangle(m, mnt->mnt_sb->s_type->name);
> -	seq_puts(m, mnt->mnt_sb->s_flags & MS_RDONLY ? " ro" : " rw");
> +	seq_putc(m, ' ');
>  	for (i = 0; i < ARRAY_SIZE(fs_info); i++) {
>  		struct proc_fs_info *fs_infop = &fs_info[i];
>  		char *str = NULL;
> _
-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux