Patchwork cifs: show noforceuid/noforcegid options instead of forceuid/forcegid

login
register
mail settings
Submitter Jeff Layton
Date Aug. 3, 2009, 2:04 p.m.
Message ID <1249308282-2429-1-git-send-email-jlayton@redhat.com>
Download mbox | patch
Permalink /patch/30539/
State New
Headers show

Comments

Jeff Layton - Aug. 3, 2009, 2:04 p.m.
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(-)

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);