cifs: have cifs_show_options show forceuid/forcegid options
authorJeff Layton <jlayton@redhat.com>
Thu, 11 Jun 2009 14:27:29 +0000 (10:27 -0400)
committerSteve French <sfrench@us.ibm.com>
Sat, 13 Jun 2009 08:17:30 +0000 (08:17 +0000)
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifsfs.c

index 3f121fb..8b31570 100644 (file)
@@ -357,7 +357,12 @@ cifs_show_options(struct seq_file *s, struct vfsmount *m)
        cifs_show_address(s, tcon->ses->server);
 
        seq_printf(s, ",uid=%d", cifs_sb->mnt_uid);
+       if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_OVERR_UID)
+               seq_printf(s, ",forceuid");
+
        seq_printf(s, ",gid=%d", cifs_sb->mnt_gid);
+       if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_OVERR_GID)
+               seq_printf(s, ",forcegid");
 
        server = tcon->ses->server;
        seq_printf(s, ",addr=");