]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: try LUKS2 first when probing
authorLuca Boccassi <bluca@debian.org>
Thu, 9 Feb 2023 01:21:07 +0000 (01:21 +0000)
committerLuca Boccassi <bluca@debian.org>
Wed, 22 Feb 2023 02:02:03 +0000 (02:02 +0000)
commitb8889c0a214aeb3dd47bf1ab280fe5534b64d2aa
tree6eb782fe22dc6b5460243d535ec64f46d6f34e26
parenta0cf9105e0591904dec87aa4e37ed13f5e6ec2fa
libblkid: try LUKS2 first when probing

If a device is locked with OPAL we'll get an I/O error when probing
past the LUKS2 header. Try it first to avoid this issue. It is
useful regardless, as when we find a LUKS superblock we stop there
anyway, no need to check futher.

Signed-off-by: Luca Boccassi <bluca@debian.org>
libblkid/src/superblocks/superblocks.c