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)
commit9cbc0b7339b0542a1d13922d2745a2636ce44853
treeaf06d88f00880c95d35c584338fbdebf1112843e
parent064f6047a123d61dd52bb44605c999cd8ef727d9
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