]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: fix regression in setting BLOCK_SIZE value
authorMilan Broz <gmazyland@gmail.com>
Sat, 5 Nov 2022 09:17:48 +0000 (10:17 +0100)
committerMilan Broz <gmazyland@gmail.com>
Sat, 5 Nov 2022 09:24:03 +0000 (10:24 +0100)
commita008e2860ed6688ffd93d344d1a91e3ff81b46ea
treefab454e9472bac323250947405a48fbfcdd80410
parent4e8a8d3598022aec301760f99f15e2a628a532b0
libblkid: fix regression in setting BLOCK_SIZE value

In the stable version, the BLOCK_SIZE attribute is
unconditionally set when probing the device.

Commit c9b2297eb1f357d9bc9989aacc874f218081fcb8 added
a new FSINFO flag and conditionally set the BLOCK_SIZE
attribute only when it is used.

This breaks the ABI interface. Cryptsetup reencrypt code
depends on checking the minimal accessible FS block
to prevent the destruction of the filesystem if a user
requests reencryption to a larger sector than
the filesystem can handle.

This patch removes the condition to make ABI compatible
again (as we cannot add FSINFO bit retrospectively).

Signed-off-by: Milan Broz <gmazyland@gmail.com>
libblkid/src/superblocks/superblocks.c