]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
[CIFS] Show nostrictsync and noperm mount options in /proc/mounts
authorSteve French <smfrench@gmail.com>
Thu, 20 Oct 2011 01:44:48 +0000 (20:44 -0500)
committerSteve French <smfrench@gmail.com>
Thu, 20 Oct 2011 01:44:48 +0000 (20:44 -0500)
Add support to print nostrictsync and noperm mount options in
/proc/mounts for shares mounted with these options.
(cleanup merge conflict in Sachin's original patch)

Suggested-by: Sachin Prabhu <sprabhu@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/cifsfs.c

index b0a2e1647390e1e10dc69b2aadfe9d0856d9e811..96a48baad8f7c49fb34cab93a2e4045d6e20b654 100644 (file)
@@ -436,6 +436,10 @@ cifs_show_options(struct seq_file *s, struct vfsmount *m)
                seq_printf(s, ",mfsymlinks");
        if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_FSCACHE)
                seq_printf(s, ",fsc");
+       if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_NOSSYNC)
+               seq_printf(s, ",nostrictsync");
+       if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_NO_PERM)
+               seq_printf(s, ",noperm");
        if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_STRICT_IO)
                seq_printf(s, ",strictcache");