diff options
author | Steve French <stfrench@microsoft.com> | 2022-05-23 23:17:12 -0500 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2022-05-23 23:32:54 -0500 |
commit | 52832252dded19e291a7b8842542ea61d1765f2f (patch) | |
tree | 9a2ab14df21cbb17034aa627317abedd23b4109b /fs/cifs/cifs_debug.c | |
parent | 9ccfc23a72b669678e4c9ccba98d3d91db1c04cf (diff) |
smb3: add mount parm nosparse
To reduce risk of applications breaking that mount to servers
with only partial sparse file support, add optional mount parm
"nosparse" which disables setting files sparse (and thus
will return EOPNOTSUPP on certain fallocate operations).
Acked-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/cifs_debug.c')
-rw-r--r-- | fs/cifs/cifs_debug.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/cifs/cifs_debug.c b/fs/cifs/cifs_debug.c index 9d334816eac0..0effc4c95077 100644 --- a/fs/cifs/cifs_debug.c +++ b/fs/cifs/cifs_debug.c @@ -116,7 +116,8 @@ static void cifs_debug_tcon(struct seq_file *m, struct cifs_tcon *tcon) tcon->ses->server->ops->dump_share_caps(m, tcon); if (tcon->use_witness) seq_puts(m, " Witness"); - + if (tcon->broken_sparse_sup) + seq_puts(m, " nosparse"); if (tcon->need_reconnect) seq_puts(m, "\tDISCONNECTED "); seq_putc(m, '\n'); |