summaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsfs.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2009-06-11 10:27:29 -0400
committerSteve French <sfrench@us.ibm.com>2009-06-13 08:17:30 +0000
commit340481a36498bf3fe404bcecb2e2d6188e950bff (patch)
treed5e8cc4dd7bb7d111f29170642170ea921017b00 /fs/cifs/cifsfs.c
parent8616e0fc1e27295316f9821a883f0e9fa6f8200f (diff)
downloadkernel-crypto-340481a36498bf3fe404bcecb2e2d6188e950bff.tar.gz
kernel-crypto-340481a36498bf3fe404bcecb2e2d6188e950bff.tar.xz
kernel-crypto-340481a36498bf3fe404bcecb2e2d6188e950bff.zip
cifs: have cifs_show_options show forceuid/forcegid options
Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifsfs.c')
-rw-r--r--fs/cifs/cifsfs.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c
index 3f121fbd6c5..8b315708cb3 100644
--- a/fs/cifs/cifsfs.c
+++ b/fs/cifs/cifsfs.c
@@ -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=");