diff options
| author | 2026-04-02 14:18:36 +0000 | |
|---|---|---|
| committer | 2026-04-05 19:58:40 -0500 | |
| commit | 58ac796bb3c0f7b8295046404629724b68b40fa0 (patch) | |
| tree | 8cb370a0d25afb639427507239693702e2a05a94 /tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com | |
| parent | smb/client: annotate smberr.h with POSIX error codes (diff) | |
smb/client: autogenerate SMB1 DOS/SRV to POSIX error mapping
Extend the `gen_smb1_mapping` script to support generating sorted POSIX
error mapping tables for both ERRDOS and ERRSRV classes at compile time.
The script parses annotations from smberr.h to generate smb1_err_dos_map.c
and smb1_err_srv_map.c, which are included as the contents of the arrays
mapping_table_ERRDOS[] and mapping_table_ERRSRV[], respectively.
This ensures that the mapping logic remains synchronized with the source
headers and prepares for faster error lookups using binary search in the
future.
Signed-off-by: Huiwen He <hehuiwen@kylinos.cn>
Reviewed-by: ChenXiaoSong <chenxiaosong@kylinos.cn>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
