diff mbox series

[CIFS] Add missing mount option 'signloosely' to what is displayed in /proc/mounts

Message ID CAH2r5msy+zQCWdBARfdw5TTk1va3vXU9f3JcWmd_xgHASJj9jQ@mail.gmail.com
State New
Headers show
Series [CIFS] Add missing mount option 'signloosely' to what is displayed in /proc/mounts | expand

Commit Message

Steve French Feb. 20, 2020, 6:02 a.m. UTC
We were not displaying the mount option "signloosely" in /proc/mounts
    for cifs mounts which some users found confusing recently

Comments

Aurélien Aptel Feb. 20, 2020, 4:12 p.m. UTC | #1
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
diff mbox series

Patch

From 45bf68584ce937936fe07d22a72b21ba4786f174 Mon Sep 17 00:00:00 2001
From: Steve French <stfrench@microsoft.com>
Date: Wed, 19 Feb 2020 23:59:32 -0600
Subject: [PATCH] cifs: add missing mount option to /proc/mounts

We were not displaying the mount option "signloosely" in /proc/mounts
for cifs mounts which some users found confusing recently

Signed-off-by: Steve French <stfrench@microsoft.com>
---
 fs/cifs/cifsfs.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c
index 46ebaf3f0824..fa77fe5258b0 100644
--- a/fs/cifs/cifsfs.c
+++ b/fs/cifs/cifsfs.c
@@ -530,6 +530,8 @@  cifs_show_options(struct seq_file *s, struct dentry *root)
 
 	if (tcon->seal)
 		seq_puts(s, ",seal");
+	else if (tcon->ses->server->ignore_signature)
+		seq_puts(s, ",signloosely");
 	if (tcon->nocase)
 		seq_puts(s, ",nocase");
 	if (tcon->local_lease)
-- 
2.20.1