Re: [PATCH 1/2] md/raid5: Increase r5conf.cache_name size

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux