cifs: show noforceuid/noforcegid mount options (try #2)
authorJeff Layton <jlayton@redhat.com>
Mon, 3 Aug 2009 16:45:10 +0000 (12:45 -0400)
committerSteve French <sfrench@us.ibm.com>
Mon, 3 Aug 2009 21:01:17 +0000 (21:01 +0000)
Since forceuid is the default, we now need to show when it's disabled.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifsfs.c

index 44f30504b82d1bbe511da6d4def1342067359deb..84b75253b05a01cf13748b33d642e58a515e7c41 100644 (file)
@@ -376,10 +376,14 @@ cifs_show_options(struct seq_file *s, struct vfsmount *m)
        seq_printf(s, ",uid=%d", cifs_sb->mnt_uid);
        if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_OVERR_UID)
                seq_printf(s, ",forceuid");
+       else
+               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");
+       else
+               seq_printf(s, ",noforcegid");
 
        cifs_show_address(s, tcon->ses->server);