On 12/11/2024 23:05, Song Liu wrote:
WDYT?
Indeed it is confusing...
So the string is "raid%d-%s", which is
4B for "raid"
10B for max int (right?)
1B for '-'
32B for DISK_NAME_LEN
1B for NUL
which totals 48
So I don't know why/how 38 is ok. Maybe there is some auto-padding going
on, like you hint at.
Maybe just using 48 is better.
Makes sense. I will update the patch to use 48, and apply it to md-6.13.
ok, thanks.
And let me know what you think of 2/2, I am even less happy about the
solution there.
Cheers