From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Layton Subject: [PATCH 09/15] cifs: fix cifs_show_options to show "username=" or "multises" Date: Tue, 30 Mar 2010 15:51:11 -0400 Message-ID: <1269978677-6817-10-git-send-email-jlayton@samba.org> References: <1269978677-6817-1-git-send-email-jlayton@samba.org> Cc: linux-fsdevel@vger.kernel.org To: linux-cifs-client@lists.samba.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:51599 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753518Ab0C3TvQ (ORCPT ); Tue, 30 Mar 2010 15:51:16 -0400 In-Reply-To: <1269978677-6817-1-git-send-email-jlayton@samba.org> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: From: Jeff Layton ...based on CIFS_MOUNT_MULTISES flag. Signed-off-by: Jeff Layton --- 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 e3149c0..53ecc94 100644 --- a/fs/cifs/cifsfs.c +++ b/fs/cifs/cifsfs.c @@ -362,8 +362,12 @@ cifs_show_options(struct seq_file *s, struct vfsmount *m) struct cifsTconInfo *tcon = cifs_sb_tcon(cifs_sb); seq_printf(s, ",unc=%s", tcon->treeName); - if (tcon->ses->userName) + + if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MULTISES) + seq_printf(s, ",multises"); + 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.6.6.1