]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libfdisk: make sure libblkid uses the same sector size
authorKarel Zak <kzak@redhat.com>
Mon, 14 Oct 2024 09:45:32 +0000 (11:45 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 3 Jan 2025 11:21:42 +0000 (12:21 +0100)
commit3ae06e966d183900a87ac72aa4fb4803d8a7df24
tree396f56840c29695e72ef25f05b0951e531b43d78
parentd0adb1c01c273e0210f348f0bb549bea4f2165af
libfdisk: make sure libblkid uses the same sector size

Libfdisk uses libblkid to check for filesystems on the device. It
makes sense for both libraries to share the logical sector size
setting, as this setting can be modified by using the fdisk command
line.

We do not see this as an issue, as filesystem detection rarely depends
on sector size (with the exception of some RAIDs). Additionally,
libblkid is usually intelligent enough to check multiple locations
independently of the current device's sector size setting.

Addresses: https://github.com/util-linux/util-linux/pull/3235
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit 7ada6547fcd1f649fadaa8021ff21e3e0f431459)
libfdisk/src/wipe.c