]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
smb: update struct duplicate_extents_to_file_ex
authorChenXiaoSong <chenxiaosong@kylinos.cn>
Mon, 1 Dec 2025 06:59:38 +0000 (14:59 +0800)
committerSteve French <stfrench@microsoft.com>
Thu, 11 Dec 2025 06:52:54 +0000 (00:52 -0600)
Add the missing field to the structure (see MS-FSCC 2.3.9.2), and correct
the section number in the documentation reference.

Signed-off-by: ChenXiaoSong <chenxiaosong@kylinos.cn>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/common/smb2pdu.h

index 950aadade4016b1940f3b2549f635293fc3d01eb..6575333e6f475de9668812772161aae41d46b7c5 100644 (file)
@@ -1545,9 +1545,10 @@ struct duplicate_extents_to_file {
        __le64 ByteCount;  /* Bytes to be copied */
 } __packed;
 
-/* See MS-FSCC 2.3.8 */
+/* See MS-FSCC 2.3.9 */
 #define DUPLICATE_EXTENTS_DATA_EX_SOURCE_ATOMIC        0x00000001
 struct duplicate_extents_to_file_ex {
+       __le64 StructureSize; /* MUST be set to 0x30 */
        __u64 PersistentFileHandle; /* source file handle, opaque endianness */
        __u64 VolatileFileHandle;
        __le64 SourceFileOffset;