Re: [PATCH 01/30] smb/client: fix NT_STATUS_NO_DATA_DETECTED value
From: ChenXiaoSong
Date: Mon Dec 08 2025 - 19:27:59 EST
Hi Steve and Namjae,
Some of these macro values seem to differ from the documentation
(possibly due to typos or updates in the docs). Should we, like Samba,
use a script to automatically regenerate these macro definitions on a
regular basis?
Thanks,
ChenXiaoSong.
On 12/8/25 2:20 PM, chenxiaosong.chenxiaosong@xxxxxxxxx wrote:
From: ChenXiaoSong <chenxiaosong@xxxxxxxxxx>
This was reported by the KUnit tests in the later patches.
See MS-ERREF 2.3.1 STATUS_NO_DATA_DETECTED. Keep it consistent with the
value in the documentation.
Signed-off-by: ChenXiaoSong <chenxiaosong@xxxxxxxxxx>
---
fs/smb/client/nterr.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/smb/client/nterr.h b/fs/smb/client/nterr.h
index 180602c22355..4fd79a82c817 100644
--- a/fs/smb/client/nterr.h
+++ b/fs/smb/client/nterr.h
@@ -41,7 +41,7 @@ extern const struct nt_err_code_struct nt_errs[];
#define NT_STATUS_MEDIA_CHANGED 0x8000001c
#define NT_STATUS_END_OF_MEDIA 0x8000001e
#define NT_STATUS_MEDIA_CHECK 0x80000020
-#define NT_STATUS_NO_DATA_DETECTED 0x8000001c
+#define NT_STATUS_NO_DATA_DETECTED 0x80000022
#define NT_STATUS_STOPPED_ON_SYMLINK 0x8000002d
#define NT_STATUS_DEVICE_REQUIRES_CLEANING 0x80000288
#define NT_STATUS_DEVICE_DOOR_OPEN 0x80000288