aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/smb2pdu.h
diff options
context:
space:
mode:
authorPavel Shilovsky <pshilovsky@samba.org>2012-09-18 19:20:31 -0400
committerSteve French <smfrench@gmail.com>2012-09-24 22:46:29 -0400
commit568798cc6211553e2494a6876fa19d064c822e79 (patch)
treefa73b97cac75ae54a08a5e0dfc26c2120243a412 /fs/cifs/smb2pdu.h
parentd6e906f1b571d15ff5778a049802f6ef6f70159a (diff)
CIFS: Add SMB2 support for hardlink operation
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.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/cifs/smb2pdu.h b/fs/cifs/smb2pdu.h
index b03ca37d0d58..0f3c4828cd00 100644
--- a/fs/cifs/smb2pdu.h
+++ b/fs/cifs/smb2pdu.h
@@ -653,6 +653,15 @@ struct smb2_file_rename_info { /* encoding of request for level 10 */
653 char FileName[0]; /* New name to be assigned */ 653 char FileName[0]; /* New name to be assigned */
654} __packed; /* level 10 Set */ 654} __packed; /* level 10 Set */
655 655
656struct smb2_file_link_info { /* encoding of request for level 11 */
657 __u8 ReplaceIfExists; /* 1 = replace existing link with new */
658 /* 0 = fail if link already exists */
659 __u8 Reserved[7];
660 __u64 RootDirectory; /* MBZ for network operations (why says spec?) */
661 __le32 FileNameLength;
662 char FileName[0]; /* Name to be assigned to new link */
663} __packed; /* level 11 Set */
664
656/* 665/*
657 * This level 18, although with struct with same name is different from cifs 666 * This level 18, although with struct with same name is different from cifs
658 * level 0x107. Level 0x107 has an extra u64 between AccessFlags and 667 * level 0x107. Level 0x107 has an extra u64 between AccessFlags and