OK, I'll try to write a script in my spare time to compare these values
with the documentation.
Thanks,
ChenXiaoSong.
On 12/9/25 08:29, Steve French wrote:
> These (return code, NT STATIUS code names) are unlikely to change much
> so probably would not need to regenerate, although wouldn't hurt to
> check every year or so.
>
> On Mon, Dec 8, 2025 at 6:17 PM ChenXiaoSong <chenxiaosong@kylinos.cn> wrote:
>>
>> 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@linux.dev wrote:
>>> From: ChenXiaoSong <chenxiaosong@kylinos.cn>
>>>
>>> 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@kylinos.cn>
>>> ---
>>> 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
>>
>
>