From: Yu Watanabe Date: Tue, 17 Feb 2026 14:23:23 +0000 (+0900) Subject: Fixes & improvments for using homed-luks on 4k disks (#35776) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff33e755e84cfa1cad0e1dccd931e9cc1f01cabd;p=thirdparty%2Fsystemd.git Fixes & improvments for using homed-luks on 4k disks (#35776) Mostly consists of fixes to - use the same sector_size as the fdisk context we are using, when converting between sectors returned by libfdisk to bytes. Fixes #30394 , Fixes #30393 - Use the explicit sector size if specified in the home record when are probing the image file using libblkid. Fixes #30393 Also contains some other improvements with using physical block devices. - Automatically probe sector size of physical block device, if user does not pass luks-sector-size explicitly. - Assign partitions to 1 MiB boundaries, as it is the standard practice followed by all tools, fdisk, gptfdisk, gnu parted etc. - Avoid stacking of loop device on top of physical block device in home_create_luks as it leads to degradation of discard operations, and mkfs getting stuck. --- ff33e755e84cfa1cad0e1dccd931e9cc1f01cabd