Skip to content

Commit ac635d6

Browse files
haryvensmfrench
authored andcommitted
smb/client: rename ERRinvlevel to ERRunknownlevel
See MS-CIFS 2.2.2.4 ERRunknownlevel. Keep the name consistent with the documentation. 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 cd55c6e commit ac635d6

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

fs/smb/client/smb1maperror.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static const struct smb_to_posix_error mapping_table_ERRDOS[] = {
4747
{ERRinvparm, -EINVAL},
4848
{ERRdiskfull, -ENOSPC},
4949
{ERRinvname, -ENOENT},
50-
{ERRinvlevel, -EOPNOTSUPP},
50+
{ERRunknownlevel, -EOPNOTSUPP},
5151
{ERRdirnotempty, -ENOTEMPTY},
5252
{ERRnotlocked, -ENOLCK},
5353
{ERRcancelviolation, -ENOLCK},
@@ -669,7 +669,7 @@ static const struct {
669669
ERRDOS, ERRnoaccess, 0xc0000290}, {
670670
ERRDOS, ERRbadfunc, 0xc000029c}, {
671671
ERRDOS, ERRsymlink, NT_STATUS_STOPPED_ON_SYMLINK}, {
672-
ERRDOS, ERRinvlevel, NT_STATUS_OS2_INVALID_LEVEL}, {
672+
ERRDOS, ERRunknownlevel, NT_STATUS_OS2_INVALID_LEVEL}, {
673673
0, 0, 0 }
674674
};
675675

fs/smb/client/smberr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
#define ERRinvparm 87
8181
#define ERRdiskfull 112
8282
#define ERRinvname 123
83-
#define ERRinvlevel 124
83+
#define ERRunknownlevel 124
8484
#define ERRdirnotempty 145
8585
#define ERRnotlocked 158
8686
#define ERRcancelviolation 173

0 commit comments

Comments
 (0)