From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-189.mta0.migadu.com (out-189.mta0.migadu.com [91.218.175.189]) (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 04389335BCD for ; Fri, 5 Dec 2025 13:27:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.189 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764941226; cv=none; b=QjkGoUPWMfOC4A9juZUZRuz4F8Wz7uS0r2Uq5O/4ZIpn+K1f9JOS4Ip4Q18oKD6POEziXduKVIZhOOJaWAIqE8a8Ov5NV3yuDOly4om3xQXN/aPqrgKYeAYiY5k2a1a9aCX9A+i9L+2LZKqHoFl2gOT0FJbjdFlEzzJfHor+BwM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764941226; c=relaxed/simple; bh=6HJEMr5X59OEb8//cubWzNJerCMISoQtM0zHJvgTDYc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=hoV81W5vQfQ0qkNxeL1a0vCx1ctG9vRR1Gx5ttAPWboLS1t7pXYwiaSOGapmhD9oKsIub5oROIYtQl57Do/hliOZhbU7LbwAS/P3JyBe/937gEcWCqqja6L4v/mtq+V+UtmaFZ4qCE/dc+V8r4FMR9Js8xwx5SQHhBMrq+ArksQ= 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=JoeO4fEk; arc=none smtp.client-ip=91.218.175.189 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="JoeO4fEk" 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=1764941217; 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=k+idk5A+mq8aU5amT3grfojWt2+XsKPXn7rdBgtsvkw=; b=JoeO4fEkhvntgIX7vHSYstdxd6Dl5Rh6rkMx0IutXxMuzIs/lMjLoJu8dBuU1mP6MRHMk+ YWi/od19VCXCIQGrPPqf2VoITu6gA5iRJhdUc1cCFbTur5zCgnSdG6U9yTIE8boO8UUWGW dGJAX7TMsBtNVVM4gAjEmvLdf12W/uA= 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, liuzhengyuan@kylinos.cn, huhai@kylinos.cn, liuyun01@kylinos.cn, ChenXiaoSong Subject: [PATCH v3 4/9] smb/client: add two elements to smb2_error_map_table array Date: Fri, 5 Dec 2025 21:25:30 +0800 Message-ID: <20251205132536.2703110-5-chenxiaosong.chenxiaosong@linux.dev> In-Reply-To: <20251205132536.2703110-1-chenxiaosong.chenxiaosong@linux.dev> References: <20251205132536.2703110-1-chenxiaosong.chenxiaosong@linux.dev> Precedence: bulk X-Mailing-List: linux-cifs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT From: ChenXiaoSong Both status codes are mapped to -EIO. Now all status codes from common/smb2status.h are included in the smb2_error_map_table array(except for the first two zero definitions). Signed-off-by: ChenXiaoSong --- fs/smb/client/smb2maperror.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fs/smb/client/smb2maperror.c b/fs/smb/client/smb2maperror.c index 118e32cc8edc..a77467d2d81c 100644 --- a/fs/smb/client/smb2maperror.c +++ b/fs/smb/client/smb2maperror.c @@ -734,6 +734,7 @@ static const struct status_to_posix_error smb2_error_map_table[] = { {STATUS_FS_DRIVER_REQUIRED, -EOPNOTSUPP, "STATUS_FS_DRIVER_REQUIRED"}, {STATUS_IMAGE_ALREADY_LOADED_AS_DLL, -EIO, "STATUS_IMAGE_ALREADY_LOADED_AS_DLL"}, + {STATUS_INVALID_LOCK_RANGE, -EIO, "STATUS_INVALID_LOCK_RANGE"}, {STATUS_NETWORK_OPEN_RESTRICTION, -EIO, "STATUS_NETWORK_OPEN_RESTRICTION"}, {STATUS_NO_USER_SESSION_KEY, -EIO, "STATUS_NO_USER_SESSION_KEY"}, @@ -2413,6 +2414,8 @@ static const struct status_to_posix_error smb2_error_map_table[] = { {STATUS_IPSEC_INTEGRITY_CHECK_FAILED, -EIO, "STATUS_IPSEC_INTEGRITY_CHECK_FAILED"}, {STATUS_IPSEC_CLEAR_TEXT_DROP, -EIO, "STATUS_IPSEC_CLEAR_TEXT_DROP"}, + {STATUS_SMB_NO_PREAUTH_INTEGRITY_HASH_OVERLAP, -EIO, + "STATUS_SMB_NO_PREAUTH_INTEGRITY_HASH_OVERLAP"}, }; int -- 2.43.0