mirror of
https://github.com/torvalds/linux.git
synced 2026-10-17 06:20:02 +02:00
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>
5 lines
80 B
Plaintext
5 lines
80 B
Plaintext
smb1_mapping_table.c
|
|
smb1_err_dos_map.c
|
|
smb1_err_srv_map.c
|
|
smb2_mapping_table.c
|