diff options
author | Pavel Shilovsky <pshilovsky@samba.org> | 2013-08-14 11:25:21 -0400 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2013-09-08 15:27:34 -0400 |
commit | b42bf88828cde60772dc08201d0a4f1a0663d7bc (patch) | |
tree | 3b019e905c83aba6578b56ae5a49669f59db23cf /fs/cifs/smb2pdu.h | |
parent | 3ae35cde67c1ec50267bcc55d81f4953b5f637c2 (diff) |
CIFS: Implement follow_link for SMB2
that allows to access files through symlink created on a server.
Acked-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Pavel Shilovsky <pshilovsky@samba.org>
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/smb2pdu.h')
-rw-r--r-- | fs/cifs/smb2pdu.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/fs/cifs/smb2pdu.h b/fs/cifs/smb2pdu.h index 36b0d37ea69b..40baeae60b08 100644 --- a/fs/cifs/smb2pdu.h +++ b/fs/cifs/smb2pdu.h | |||
@@ -150,6 +150,20 @@ struct smb2_err_rsp { | |||
150 | __u8 ErrorData[1]; /* variable length */ | 150 | __u8 ErrorData[1]; /* variable length */ |
151 | } __packed; | 151 | } __packed; |
152 | 152 | ||
153 | struct smb2_symlink_err_rsp { | ||
154 | __le32 SymLinkLength; | ||
155 | __le32 SymLinkErrorTag; | ||
156 | __le32 ReparseTag; | ||
157 | __le16 ReparseDataLength; | ||
158 | __le16 UnparsedPathLength; | ||
159 | __le16 SubstituteNameOffset; | ||
160 | __le16 SubstituteNameLength; | ||
161 | __le16 PrintNameOffset; | ||
162 | __le16 PrintNameLength; | ||
163 | __le32 Flags; | ||
164 | __u8 PathBuffer[0]; | ||
165 | } __packed; | ||
166 | |||
153 | #define SMB2_CLIENT_GUID_SIZE 16 | 167 | #define SMB2_CLIENT_GUID_SIZE 16 |
154 | 168 | ||
155 | extern __u8 cifs_client_guid[SMB2_CLIENT_GUID_SIZE]; | 169 | extern __u8 cifs_client_guid[SMB2_CLIENT_GUID_SIZE]; |