[PATCH 2/3] smb/server: align partial normalized name responses to UTF-16
ChenXiaoSong
chenxiaosong at chenxiaosong.com
Tue Sep 15 23:52:17 UTC 2026
I had the same question. However, the protocol does not specify any
alignment requirement for `ALTERNATE_NAME`, see MS-FSA 2.1.5.12.4:
https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-fsa/5051d021-8d06-4b7e-94e3-55b118193427
Maybe this was missed in the protocol, or is it because an 8.3 filename
is at most 12 bytes? See MS-FSCC 2.1.5.2.1:
https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-fscc/18e63b13-ba43-4f5f-a5b7-11e871b71f14
Hopefully Ralph or someone else can explain this.
Some people may not have received the patch. Here is the patch link:
https://lore.kernel.org/linux-cifs/20260915064657.110687-3-chenxiaosong@chenxiaosong.com/
On 9/16/2026 7:14 AM, Namjae Jeon wrote:
> Shouldn’t we apply the same alignment to
> FILE_ALTERNATE_NAME_INFORMATION as well?
--
ChenXiaoSong <chenxiaosong at chenxiaosong.com>
Chinese Homepage: https://chenxiaosong.com
English Homepage: https://chenxiaosong.com/en
More information about the samba-technical
mailing list