]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
smb/client: add NT_STATUS_VOLUME_DISMOUNTED
authorHuiwen He <hehuiwen@kylinos.cn>
Wed, 21 Jan 2026 11:49:01 +0000 (19:49 +0800)
committerSteve French <stfrench@microsoft.com>
Mon, 9 Feb 2026 03:24:41 +0000 (21:24 -0600)
See MS-ERREf 2.3.1 STATUS_VOLUME_DISMOUNTED.

Signed-off-by: Huiwen He <hehuiwen@kylinos.cn>
Signed-off-by: ChenXiaoSong <chenxiaosong@kylinos.cn>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/nterr.c
fs/smb/client/nterr.h
fs/smb/client/smb1maperror.c

index 1c5d7199f5566263d59c053d52b2f23a1cf7cdee..28b6320f2d211ef4b5199b85fb8a8e1117144d68 100644 (file)
@@ -679,6 +679,7 @@ const struct nt_err_code_struct nt_errs[] = {
        {"NT_STATUS_QUOTA_LIST_INCONSISTENT",
         NT_STATUS_QUOTA_LIST_INCONSISTENT},
        {"NT_STATUS_FILE_IS_OFFLINE", NT_STATUS_FILE_IS_OFFLINE},
+       {"NT_STATUS_VOLUME_DISMOUNTED", NT_STATUS_VOLUME_DISMOUNTED},
        {"NT_STATUS_NOT_A_REPARSE_POINT", NT_STATUS_NOT_A_REPARSE_POINT},
        {"NT_STATUS_NETWORK_SESSION_EXPIRED", NT_STATUS_NETWORK_SESSION_EXPIRED},
        {"NT_STATUS_NO_MORE_ENTRIES", NT_STATUS_NO_MORE_ENTRIES},
index 1aa4bc39440536de2e8ca10f0d45603c33390751..2056831ea631f2781419f1833d86747f77f6cb19 100644 (file)
@@ -550,6 +550,7 @@ extern const struct nt_err_code_struct nt_errs[];
 #define NT_STATUS_TOO_MANY_LINKS (0xC0000000 | 0x0265)
 #define NT_STATUS_QUOTA_LIST_INCONSISTENT (0xC0000000 | 0x0266)
 #define NT_STATUS_FILE_IS_OFFLINE (0xC0000000 | 0x0267)
+#define NT_STATUS_VOLUME_DISMOUNTED (0xC0000000 | 0x026e)
 #define NT_STATUS_NOT_A_REPARSE_POINT (0xC0000000 | 0x0275)
 #define NT_STATUS_NETWORK_SESSION_EXPIRED  (0xC0000000 | 0x035c)
 #define NT_STATUS_NO_SUCH_JOB (0xC0000000 | 0xEDE)     /* scheduler */
index 3085e2084f99215f872e12b0cb071a0e1b9404dd..164b721c7dda5b3cfd993781bc966dca65854fe2 100644 (file)
@@ -658,7 +658,7 @@ static const struct {
        ERRDOS, ErrTooManyLinks, NT_STATUS_TOO_MANY_LINKS}, {
        ERRHRD, ERRgeneral, NT_STATUS_QUOTA_LIST_INCONSISTENT}, {
        ERRHRD, ERRgeneral, NT_STATUS_FILE_IS_OFFLINE}, {
-       ERRDOS, 21, 0xc000026e}, {
+       ERRDOS, 21, NT_STATUS_VOLUME_DISMOUNTED}, {
        ERRDOS, 161, 0xc0000281}, {
        ERRDOS, ERRnoaccess, 0xc000028a}, {
        ERRDOS, ERRnoaccess, 0xc000028b}, {