diff mbox

[linux-cifs-client] cifs: show noforceuid/noforcegid options instead of forceuid/forcegid

Message ID 1249308282-2429-1-git-send-email-jlayton@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Jeff Layton Aug. 3, 2009, 2:04 p.m. UTC
Since forceuid/forcegid is the default, it makes more sense to show the
"no" version of these options.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
---
 fs/cifs/cifsfs.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
diff mbox

Patch

diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c
index 44f3050..2e24178 100644
--- a/fs/cifs/cifsfs.c
+++ b/fs/cifs/cifsfs.c
@@ -374,12 +374,12 @@  cifs_show_options(struct seq_file *s, struct vfsmount *m)
 		seq_printf(s, ",domain=%s", tcon->ses->domainName);
 
 	seq_printf(s, ",uid=%d", cifs_sb->mnt_uid);
-	if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_OVERR_UID)
-		seq_printf(s, ",forceuid");
+	if (!(cifs_sb->mnt_cifs_flags & CIFS_MOUNT_OVERR_UID))
+		seq_printf(s, ",noforceuid");
 
 	seq_printf(s, ",gid=%d", cifs_sb->mnt_gid);
-	if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_OVERR_GID)
-		seq_printf(s, ",forcegid");
+	if (!(cifs_sb->mnt_cifs_flags & CIFS_MOUNT_OVERR_GID))
+		seq_printf(s, ",noforcegid");
 
 	cifs_show_address(s, tcon->ses->server);