Skip to content

Commit

Permalink
cifs: fix cifs_show_options to show "username=" or "multiuser"
Browse files Browse the repository at this point in the history
...based on CIFS_MOUNT_MULTIUSER flag.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
  • Loading branch information
Jeff Layton authored and Steve French committed Oct 6, 2010
1 parent 6508d90 commit 29e07c8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion fs/cifs/cifsfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,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);

Expand Down

0 comments on commit 29e07c8

Please sign in to comment.