diff options
author | Sachin Prabhu <sprabhu@redhat.com> | 2012-04-24 16:28:14 +0200 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2012-04-24 18:36:22 +0200 |
commit | 3c7c87fd5bd71f57c68a64d11a15170d0dc4f7aa (patch) | |
tree | 0bc095535ad62f5cd235a856f1e190fb7a4b6c6e /fs/cifs/cifsfs.c | |
parent | cifs: fix offset handling in cifs_iovec_write (diff) | |
download | linux-3c7c87fd5bd71f57c68a64d11a15170d0dc4f7aa.tar.xz linux-3c7c87fd5bd71f57c68a64d11a15170d0dc4f7aa.zip |
CIFS: Show backupuid/gid in /proc/mounts
Show backupuid/backupgid in /proc/mounts for cifs shares mounted with
the backupuid/backupgid feature.
Also consolidate the two separate checks for
pvolume_info->backupuid_specified into a single if condition in
cifs_setup_cifs_sb().
Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
Reviewed-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.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c index d34212822444..ea8eb92b65b4 100644 --- a/fs/cifs/cifsfs.c +++ b/fs/cifs/cifsfs.c @@ -434,6 +434,10 @@ cifs_show_options(struct seq_file *s, struct dentry *root) seq_printf(s, ",noperm"); if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_STRICT_IO) seq_printf(s, ",strictcache"); + if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_CIFS_BACKUPUID) + seq_printf(s, ",backupuid=%u", cifs_sb->mnt_backupuid); + if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_CIFS_BACKUPGID) + seq_printf(s, ",backupgid=%u", cifs_sb->mnt_backupgid); seq_printf(s, ",rsize=%d", cifs_sb->rsize); seq_printf(s, ",wsize=%d", cifs_sb->wsize); |