diff options
| author | Huiwen He <hehuiwen@kylinos.cn> | 2026-04-02 14:18:36 +0000 |
|---|---|---|
| committer | Steve French <stfrench@microsoft.com> | 2026-04-05 19:58:40 -0500 |
| commit | 58ac796bb3c0f7b8295046404629724b68b40fa0 (patch) | |
| tree | 8cb370a0d25afb639427507239693702e2a05a94 /arch/ppc/boot/lib/git@git.tavy.me:linux.git | |
| parent | cd4e653a2f75517b4ba8a0589856aeb529a27871 (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 'arch/ppc/boot/lib/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
