Re: [PATCH 11/15] cifs: fix cifs_show_options to show "username=" or "multiuser"

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

 



obviously harmless/fine (would merge now, but don't want to do it
out of order with 8 and 9)

On Mon, Sep 20, 2010 at 6:01 PM, Jeff Layton <jlayton@xxxxxxxxxx> wrote:
> ...based on CIFS_MOUNT_MULTIUSER flag.
>
> Signed-off-by: Jeff Layton <jlayton@xxxxxxxxxx>
> ---
>  fs/cifs/cifsfs.c |    6 +++++-
>  1 files changed, 5 insertions(+), 1 deletions(-)
>
> diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c
> index 2b897e3..51090cec 100644
> --- a/fs/cifs/cifsfs.c
> +++ b/fs/cifs/cifsfs.c
> @@ -371,8 +371,12 @@ cifs_show_options(struct seq_file *s, struct vfsmount *m)
>        srcaddr = (struct sockaddr *)&tcon->ses->server->srcaddr;
>
>        seq_printf(s, ",unc=%s", tcon->treeName);
> -       if (tcon->ses->userName)
> +
> +       if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MULTIUSER)
> +               seq_printf(s, ",multiuser");
> +       else if (tcon->ses->userName)
>                seq_printf(s, ",username=%s", tcon->ses->userName);
> +
>        if (tcon->ses->domainName)
>                seq_printf(s, ",domain=%s", tcon->ses->domainName);
>
> --
> 1.7.2.3
>
>



-- 
Thanks,

Steve
--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux