aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsfs.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2010-09-29 19:51:12 -0400
committerSteve French <sfrench@us.ibm.com>2010-10-06 16:13:11 +0000
commit29e07c82a9e8acebbb38ecc22b0b5005a0a5d839 (patch)
tree6d97816e48753810f96cbb1af45ac5d13a358ca0 /fs/cifs/cifsfs.c
parent6508d904e6fb66ce4c34617f72b38d6714c4b9f6 (diff)
downloadkernel_samsung_aries-29e07c82a9e8acebbb38ecc22b0b5005a0a5d839.zip
kernel_samsung_aries-29e07c82a9e8acebbb38ecc22b0b5005a0a5d839.tar.gz
kernel_samsung_aries-29e07c82a9e8acebbb38ecc22b0b5005a0a5d839.tar.bz2
cifs: fix cifs_show_options to show "username=" or "multiuser"
...based on CIFS_MOUNT_MULTIUSER flag. Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifsfs.c')
-rw-r--r--fs/cifs/cifsfs.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c
index b2fd075..c96345c 100644
--- a/fs/cifs/cifsfs.c
+++ b/fs/cifs/cifsfs.c
@@ -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);