cifs: print nosharesock value while dumping mount options
authorSteve French <stfrench@microsoft.com>
Wed, 19 Jul 2023 02:17:57 +0000 (21:17 -0500)
committerSteve French <stfrench@microsoft.com>
Wed, 19 Jul 2023 02:18:30 +0000 (21:18 -0500)
We print most other mount options for a mount when dumping
the mount entries. But miss out the nosharesock value.
This change will print that in addition to the other options.

Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Reviewed-by: Bharath SM <bharathsm@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifsfs.c

index d1181d26b437288682f41f9f16214180fc224dc5..a2fbe0390e6db46203b95c60226a2a0728bcdd74 100644 (file)
@@ -684,6 +684,8 @@ cifs_show_options(struct seq_file *s, struct dentry *root)
                seq_puts(s, ",noautotune");
        if (tcon->ses->server->noblocksnd)
                seq_puts(s, ",noblocksend");
+       if (tcon->ses->server->nosharesock)
+               seq_puts(s, ",nosharesock");
 
        if (tcon->snapshot_time)
                seq_printf(s, ",snapshot=%llu", tcon->snapshot_time);