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