summaryrefslogtreecommitdiff
path: root/fs/smb
diff options
context:
space:
mode:
authorShyam Prasad N <sprasad@microsoft.com>2023-06-16 13:37:45 +0300
committerSteve French <stfrench@microsoft.com>2023-06-20 02:16:26 +0300
commitdc765027ed2941985fbb8ef86139e6289b36fc43 (patch)
tree4c8dc9e6aeaa8257a7bbd67beb61be279f744077 /fs/smb
parentda787d5b74983f7525d1eb4b9c0b4aff2821511a (diff)
downloadlinux-dc765027ed2941985fbb8ef86139e6289b36fc43.tar.xz
cifs: print nosharesock value while dumping mount options
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>
Diffstat (limited to 'fs/smb')
-rw-r--r--fs/smb/client/cifsfs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/smb/client/cifsfs.c b/fs/smb/client/cifsfs.c
index 43a4d8603db3..86ac620a9615 100644
--- a/fs/smb/client/cifsfs.c
+++ b/fs/smb/client/cifsfs.c
@@ -688,6 +688,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);