aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsfs.c
diff options
context:
space:
mode:
authorSteve French <smfrench@gmail.com>2015-11-03 11:08:53 -0500
committerSteve French <smfrench@gmail.com>2015-11-03 11:10:36 -0500
commit592fafe644bf3a48b9e00e182a67d301493634fc (patch)
tree889d6e47db90c91fe7e3a2693de47d2f29dd3512 /fs/cifs/cifsfs.c
parentb56eae4df9ef922d5785ec4a15d54d9527cedb13 (diff)
Add resilienthandles mount parm
Since many servers (Windows clients, and non-clustered servers) do not support persistent handles but do support resilient handles, allow the user to specify a mount option "resilienthandles" in order to get more reliable connections and less chance of data loss (at least when SMB2.1 or later). Default resilient handle timeout (120 seconds to recent Windows server) is used. Reviewed-by: Pavel Shilovsky <pshilovsky@samba.org> Signed-off-by: Steve French <steve.french@primarydata.com>
Diffstat (limited to 'fs/cifs/cifsfs.c')
-rw-r--r--fs/cifs/cifsfs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c
index 13302e94fee3..f578ef9bc1f4 100644
--- a/fs/cifs/cifsfs.c
+++ b/fs/cifs/cifsfs.c
@@ -456,6 +456,8 @@ cifs_show_options(struct seq_file *s, struct dentry *root)
456 seq_puts(s, ",hard"); 456 seq_puts(s, ",hard");
457 if (tcon->use_persistent) 457 if (tcon->use_persistent)
458 seq_puts(s, ",persistenthandles"); 458 seq_puts(s, ",persistenthandles");
459 else if (tcon->use_resilient)
460 seq_puts(s, ",resilienthandles");
459 if (tcon->unix_ext) 461 if (tcon->unix_ext)
460 seq_puts(s, ",unix"); 462 seq_puts(s, ",unix");
461 else 463 else