[CIFS] add more complete mount options to cifs_show_options
adds various options to cifs_show_options (displayed when you cat /proc/mounts with a cifs mount). I limited the new ones to values that are associated with the mount with the exception of "seal" (which is a per tree connection property, but I thought was important enough to show through). Eventually cifs's parse_mount_options also needs to be rewritten to use the match_token API but that would be a big enough change that I would prefer that changing parse_mount_options wait until next release. Signed-off-by: Steve French <sfrench@us.ibm.com>
This commit is contained in:
parent
a1fe78f16e
commit
2b280fab12
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* fs/cifs/cifsfs.c
|
* fs/cifs/cifsfs.c
|
||||||
*
|
*
|
||||||
* Copyright (C) International Business Machines Corp., 2002,2007
|
* Copyright (C) International Business Machines Corp., 2002,2008
|
||||||
* Author(s): Steve French (sfrench@us.ibm.com)
|
* Author(s): Steve French (sfrench@us.ibm.com)
|
||||||
*
|
*
|
||||||
* Common Internet FileSystem (CIFS) client
|
* Common Internet FileSystem (CIFS) client
|
||||||
@ -353,9 +353,38 @@ cifs_show_options(struct seq_file *s, struct vfsmount *m)
|
|||||||
if ((cifs_sb->mnt_cifs_flags & CIFS_MOUNT_OVERR_GID) ||
|
if ((cifs_sb->mnt_cifs_flags & CIFS_MOUNT_OVERR_GID) ||
|
||||||
!(cifs_sb->tcon->unix_ext))
|
!(cifs_sb->tcon->unix_ext))
|
||||||
seq_printf(s, ",gid=%d", cifs_sb->mnt_gid);
|
seq_printf(s, ",gid=%d", cifs_sb->mnt_gid);
|
||||||
|
if (!cifs_sb->tcon->unix_ext) {
|
||||||
|
seq_printf(s, ",file_mode=0%o,dir_mode=0%o",
|
||||||
|
cifs_sb->mnt_file_mode,
|
||||||
|
cifs_sb->mnt_dir_mode);
|
||||||
|
}
|
||||||
|
if (cifs_sb->tcon->seal)
|
||||||
|
seq_printf(s, ",seal");
|
||||||
|
seq_printf(s, ",nocase");
|
||||||
}
|
}
|
||||||
if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_POSIX_PATHS)
|
if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_POSIX_PATHS)
|
||||||
seq_printf(s, ",posixpaths");
|
seq_printf(s, ",posixpaths");
|
||||||
|
if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_SET_UID)
|
||||||
|
seq_printf(s, ",setuids");
|
||||||
|
if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_SERVER_INUM)
|
||||||
|
seq_printf(s, ",serverino");
|
||||||
|
if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_DIRECT_IO)
|
||||||
|
seq_printf(s, ",directio");
|
||||||
|
if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_NO_XATTR)
|
||||||
|
seq_printf(s, ",nouser_xattr");
|
||||||
|
if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MAP_SPECIAL_CHR)
|
||||||
|
seq_printf(s, ",mapchars");
|
||||||
|
if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_UNX_EMUL)
|
||||||
|
seq_printf(s, ",sfu");
|
||||||
|
if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_NO_BRL)
|
||||||
|
seq_printf(s, ",nobrl");
|
||||||
|
if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_CIFS_ACL)
|
||||||
|
seq_printf(s, ",cifsacl");
|
||||||
|
if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_DYNPERM)
|
||||||
|
seq_printf(s, ",dynperm");
|
||||||
|
if (m->mnt_sb->s_flags & MS_POSIXACL)
|
||||||
|
seq_printf(s, ",acl");
|
||||||
|
|
||||||
seq_printf(s, ",rsize=%d", cifs_sb->rsize);
|
seq_printf(s, ",rsize=%d", cifs_sb->rsize);
|
||||||
seq_printf(s, ",wsize=%d", cifs_sb->wsize);
|
seq_printf(s, ",wsize=%d", cifs_sb->wsize);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user