Commit 29e07c82 authored by Jeff Layton's avatar Jeff Layton Committed by Steve French

cifs: fix cifs_show_options to show "username=" or "multiuser"

...based on CIFS_MOUNT_MULTIUSER flag.
Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
parent 6508d904
...@@ -369,8 +369,12 @@ cifs_show_options(struct seq_file *s, struct vfsmount *m) ...@@ -369,8 +369,12 @@ cifs_show_options(struct seq_file *s, struct vfsmount *m)
srcaddr = (struct sockaddr *)&tcon->ses->server->srcaddr; srcaddr = (struct sockaddr *)&tcon->ses->server->srcaddr;
seq_printf(s, ",unc=%s", tcon->treeName); 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); seq_printf(s, ",username=%s", tcon->ses->userName);
if (tcon->ses->domainName) if (tcon->ses->domainName)
seq_printf(s, ",domain=%s", tcon->ses->domainName); seq_printf(s, ",domain=%s", tcon->ses->domainName);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment