]> git.baikalelectronics.ru Git - kernel.git/commit
CIFS: Reconnect durable handles for SMB2
authorPavel Shilovsky <pshilovsky@samba.org>
Tue, 9 Jul 2013 14:40:58 +0000 (18:40 +0400)
committerSteve French <smfrench@gmail.com>
Wed, 10 Jul 2013 18:08:40 +0000 (13:08 -0500)
commita6dab460cd8324e43c856633d8c0ba1a48970fa0
treeaf06d88f00880c95d35c584338fbdebf1112843e
parent1fa16dbe9f88cb17e6acd59e336f97564088788b
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)>
fs/cifs/cifsglob.h
fs/cifs/dir.c
fs/cifs/file.c
fs/cifs/smb2file.c
fs/cifs/smb2inode.c
fs/cifs/smb2ops.c
fs/cifs/smb2pdu.c
fs/cifs/smb2pdu.h