From: Huiwen He Date: Wed, 21 Jan 2026 11:49:01 +0000 (+0800) Subject: smb/client: add NT_STATUS_VOLUME_DISMOUNTED X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7982ddb7af9b44149226df2a89aa22c5f92583f3;p=thirdparty%2Flinux.git smb/client: add NT_STATUS_VOLUME_DISMOUNTED See MS-ERREf 2.3.1 STATUS_VOLUME_DISMOUNTED. Signed-off-by: Huiwen He Signed-off-by: ChenXiaoSong Signed-off-by: Steve French --- diff --git a/fs/smb/client/nterr.c b/fs/smb/client/nterr.c index 1c5d7199f5566..28b6320f2d211 100644 --- a/fs/smb/client/nterr.c +++ b/fs/smb/client/nterr.c @@ -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}, diff --git a/fs/smb/client/nterr.h b/fs/smb/client/nterr.h index 1aa4bc3944053..2056831ea631f 100644 --- a/fs/smb/client/nterr.h +++ b/fs/smb/client/nterr.h @@ -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 */ diff --git a/fs/smb/client/smb1maperror.c b/fs/smb/client/smb1maperror.c index 3085e2084f992..164b721c7dda5 100644 --- a/fs/smb/client/smb1maperror.c +++ b/fs/smb/client/smb1maperror.c @@ -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}, {