From nobody Tue Dec 16 23:56:06 2025 Received: from out-177.mta0.migadu.com (out-177.mta0.migadu.com [91.218.175.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BDB04283FE2 for ; Thu, 11 Dec 2025 14:33:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765463632; cv=none; b=oo647xLpOe3HKdjRMPAw5NFrWv3ewcuS7Pg44LMcQuThB+8u55NN5jFy0cBXmvVHhpnjQKDGrA5Va26h+yT/kmT7V/oNKSan00o09QCEYrSbY6K/WUUeI45sJy/fh8VyssGdjWS3LoIDwVkWdil/kC6+bbiqO2n1jA29PsYZNEo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765463632; c=relaxed/simple; bh=tSTu7uUu3xdc98j97FV+7fQhyMMjbMTXy/paskabVJM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=PFWLtSRi5lJZ3gSOqdjIUgMOmUHDLwUcDYWNORwC1+nDO20IPrG819HcLcurbRTSY57kR6taQLiADHxeTmGgC0QA+oB2KfPFX574QQNefakRHkubADlIFnRGQSOqsRNKVnFOuoHdoSJ6hhB7SXURz/tIYwrVS9ARxDL/gOVxDZQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=BVT16hut; arc=none smtp.client-ip=91.218.175.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="BVT16hut" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1765463627; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Ulb3PE2e2xkAf2hF5H7JITgN051/NEYe6gvskt2GbfA=; b=BVT16hut6Zljczl6wxJkRboYlGT+VPnW2K8p6HFobQjwTzwFeNulQBH5Uc7XASYXAeTCRL Du972YX/zH8L6350Q9OdFDD21Vl1Y2aUbgQNhJ13NkEpL59Q+jvkPRdX18/eRrBgun8bmV AD21M3IAkiL9M0UE3LDgNmwS8AGsjWU= From: chenxiaosong.chenxiaosong@linux.dev To: sfrench@samba.org, smfrench@gmail.com, linkinjeon@kernel.org, linkinjeon@samba.org Cc: linux-cifs@vger.kernel.org, linux-kernel@vger.kernel.org, ChenXiaoSong , Steve French Subject: [PATCH v2 2/7] smb: update struct duplicate_extents_to_file_ex Date: Thu, 11 Dec 2025 22:32:23 +0800 Message-ID: <20251211143228.172470-3-chenxiaosong.chenxiaosong@linux.dev> In-Reply-To: <20251211143228.172470-1-chenxiaosong.chenxiaosong@linux.dev> References: <20251211143228.172470-1-chenxiaosong.chenxiaosong@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" From: ChenXiaoSong 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 Signed-off-by: Steve French --- fs/smb/common/smb2pdu.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/smb/common/smb2pdu.h b/fs/smb/common/smb2pdu.h index 5372a820118e..3c8d8a4e7439 100644 --- a/fs/smb/common/smb2pdu.h +++ b/fs/smb/common/smb2pdu.h @@ -1510,9 +1510,10 @@ struct duplicate_extents_to_file { __le64 ByteCount; /* Bytes to be copied */ } __packed; =20 -/* 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; --=20 2.43.0