summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHuiwen He <hehuiwen@kylinos.cn>2026-01-21 14:49:07 +0300
committerSteve French <stfrench@microsoft.com>2026-02-09 06:24:41 +0300
commit3988b5675296f2e6b062fa27600ed6417cb80349 (patch)
tree3067c67162bb5ba841bafe3dddf10c018c2fd475
parent2ef4f6b46f3c6b10cbe2eac24fcac217e18b88ae (diff)
downloadlinux-3988b5675296f2e6b062fa27600ed6417cb80349.tar.xz
smb/client: add NT_STATUS_NO_EFS
See MS-ERREf 2.3.1 STATUS_NO_EFS. Signed-off-by: Huiwen He <hehuiwen@kylinos.cn> Signed-off-by: ChenXiaoSong <chenxiaosong@kylinos.cn> Signed-off-by: Steve French <stfrench@microsoft.com>
-rw-r--r--fs/smb/client/nterr.c1
-rw-r--r--fs/smb/client/nterr.h1
-rw-r--r--fs/smb/client/smb1maperror.c2
3 files changed, 3 insertions, 1 deletions
diff --git a/fs/smb/client/nterr.c b/fs/smb/client/nterr.c
index 5e3efc3805a1..5d649222a3be 100644
--- a/fs/smb/client/nterr.c
+++ b/fs/smb/client/nterr.c
@@ -687,6 +687,7 @@ const struct nt_err_code_struct nt_errs[] = {
{"NT_STATUS_DECRYPTION_FAILED", NT_STATUS_DECRYPTION_FAILED},
{"NT_STATUS_RANGE_NOT_FOUND", NT_STATUS_RANGE_NOT_FOUND},
{"NT_STATUS_NO_RECOVERY_POLICY", NT_STATUS_NO_RECOVERY_POLICY},
+ {"NT_STATUS_NO_EFS", NT_STATUS_NO_EFS},
{"NT_STATUS_NETWORK_SESSION_EXPIRED", NT_STATUS_NETWORK_SESSION_EXPIRED},
{"NT_STATUS_NO_MORE_ENTRIES", NT_STATUS_NO_MORE_ENTRIES},
{"NT_STATUS_MORE_ENTRIES", NT_STATUS_MORE_ENTRIES},
diff --git a/fs/smb/client/nterr.h b/fs/smb/client/nterr.h
index c0f317948714..9af4a21e1d9b 100644
--- a/fs/smb/client/nterr.h
+++ b/fs/smb/client/nterr.h
@@ -557,6 +557,7 @@ extern const struct nt_err_code_struct nt_errs[];
#define NT_STATUS_DECRYPTION_FAILED (0xC0000000 | 0x028b)
#define NT_STATUS_RANGE_NOT_FOUND (0xC0000000 | 0x028c)
#define NT_STATUS_NO_RECOVERY_POLICY (0xC0000000 | 0x028d)
+#define NT_STATUS_NO_EFS (0xC0000000 | 0x028e)
#define NT_STATUS_NETWORK_SESSION_EXPIRED (0xC0000000 | 0x035c)
#define NT_STATUS_NO_SUCH_JOB (0xC0000000 | 0xEDE) /* scheduler */
#define NT_STATUS_NO_PREAUTH_INTEGRITY_HASH_OVERLAP (0xC0000000 | 0x5D0000)
diff --git a/fs/smb/client/smb1maperror.c b/fs/smb/client/smb1maperror.c
index 02a2233ea0dc..cef67ea5720e 100644
--- a/fs/smb/client/smb1maperror.c
+++ b/fs/smb/client/smb1maperror.c
@@ -664,7 +664,7 @@ static const struct {
ERRDOS, ERRnoaccess, NT_STATUS_DECRYPTION_FAILED}, {
ERRHRD, ERRgeneral, NT_STATUS_RANGE_NOT_FOUND}, {
ERRDOS, ERRnoaccess, NT_STATUS_NO_RECOVERY_POLICY}, {
- ERRDOS, ERRnoaccess, 0xc000028e}, {
+ ERRDOS, ERRnoaccess, NT_STATUS_NO_EFS}, {
ERRDOS, ERRnoaccess, 0xc000028f}, {
ERRDOS, ERRnoaccess, 0xc0000290}, {
ERRDOS, ERRbadfunc, 0xc000029c}, {