[PATCH] cifs: show noforceuid/noforcegid options instead of forceuid/forcegid

Jeff Layton <[email protected]>
Newsgroups gmane.linux.file-systems.cifs
Message-ID <[email protected]>
Since forceuid/forcegid is the default, it makes more sense to show the
"no" version of these options.

Signed-off-by: Jeff Layton <[email protected]>
---
 fs/cifs/cifsfs.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

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);
 
-- 
1.6.0.6
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.