diff options
author | Pavel Shilovsky <pshilovsky@samba.org> | 2013-07-09 16:40:58 +0200 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2013-07-10 20:08:40 +0200 |
commit | 9cbc0b7339b0542a1d13922d2745a2636ce44853 (patch) | |
tree | af06d88f00880c95d35c584338fbdebf1112843e /fs/cifs/smb2inode.c | |
parent | CIFS: Make SMB2_open use cifs_open_parms struct (diff) | |
download | linux-9cbc0b7339b0542a1d13922d2745a2636ce44853.tar.xz linux-9cbc0b7339b0542a1d13922d2745a2636ce44853.zip |
CIFS: Reconnect durable handles for SMB2
On reconnects, we need to reopen file and then obtain all byte-range
locks held by the client. SMB2 protocol provides feature to make
this process atomic by reconnecting to the same file handle
with all it's byte-range locks. This patch adds this capability
for SMB2 shares.
Signed-off-by: Pavel Shilovsky <pshilovsky@samba.org>
Signed-off-by: Steven French <steven@steven-GA-970A-DS3.(none)>
Diffstat (limited to 'fs/cifs/smb2inode.c')
-rw-r--r-- | fs/cifs/smb2inode.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifs/smb2inode.c b/fs/cifs/smb2inode.c index 9841df771f08..c6ec1633309a 100644 --- a/fs/cifs/smb2inode.c +++ b/fs/cifs/smb2inode.c @@ -58,6 +58,7 @@ smb2_open_op_close(const unsigned int xid, struct cifs_tcon *tcon, oparms.disposition = create_disposition; oparms.create_options = create_options; oparms.fid = &fid; + oparms.reconnect = false; rc = SMB2_open(xid, &oparms, utf16_path, &oplock, NULL); if (rc) { |