Skip to content

Commit 7982ddb

Browse files
haryvensmfrench
authored andcommitted
smb/client: add NT_STATUS_VOLUME_DISMOUNTED
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>
1 parent 563318f commit 7982ddb

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

fs/smb/client/nterr.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,7 @@ const struct nt_err_code_struct nt_errs[] = {
679679
{"NT_STATUS_QUOTA_LIST_INCONSISTENT",
680680
NT_STATUS_QUOTA_LIST_INCONSISTENT},
681681
{"NT_STATUS_FILE_IS_OFFLINE", NT_STATUS_FILE_IS_OFFLINE},
682+
{"NT_STATUS_VOLUME_DISMOUNTED", NT_STATUS_VOLUME_DISMOUNTED},
682683
{"NT_STATUS_NOT_A_REPARSE_POINT", NT_STATUS_NOT_A_REPARSE_POINT},
683684
{"NT_STATUS_NETWORK_SESSION_EXPIRED", NT_STATUS_NETWORK_SESSION_EXPIRED},
684685
{"NT_STATUS_NO_MORE_ENTRIES", NT_STATUS_NO_MORE_ENTRIES},

fs/smb/client/nterr.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,7 @@ extern const struct nt_err_code_struct nt_errs[];
550550
#define NT_STATUS_TOO_MANY_LINKS (0xC0000000 | 0x0265)
551551
#define NT_STATUS_QUOTA_LIST_INCONSISTENT (0xC0000000 | 0x0266)
552552
#define NT_STATUS_FILE_IS_OFFLINE (0xC0000000 | 0x0267)
553+
#define NT_STATUS_VOLUME_DISMOUNTED (0xC0000000 | 0x026e)
553554
#define NT_STATUS_NOT_A_REPARSE_POINT (0xC0000000 | 0x0275)
554555
#define NT_STATUS_NETWORK_SESSION_EXPIRED (0xC0000000 | 0x035c)
555556
#define NT_STATUS_NO_SUCH_JOB (0xC0000000 | 0xEDE) /* scheduler */

fs/smb/client/smb1maperror.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ static const struct {
658658
ERRDOS, ErrTooManyLinks, NT_STATUS_TOO_MANY_LINKS}, {
659659
ERRHRD, ERRgeneral, NT_STATUS_QUOTA_LIST_INCONSISTENT}, {
660660
ERRHRD, ERRgeneral, NT_STATUS_FILE_IS_OFFLINE}, {
661-
ERRDOS, 21, 0xc000026e}, {
661+
ERRDOS, 21, NT_STATUS_VOLUME_DISMOUNTED}, {
662662
ERRDOS, 161, 0xc0000281}, {
663663
ERRDOS, ERRnoaccess, 0xc000028a}, {
664664
ERRDOS, ERRnoaccess, 0xc000028b}, {

0 commit comments

Comments
 (0)