]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: introduce luks opal prober
authorThomas Weißschuh <thomas@t-8ch.de>
Sat, 30 Mar 2024 10:14:47 +0000 (11:14 +0100)
committerThomas Weißschuh <thomas@t-8ch.de>
Sat, 30 Mar 2024 10:14:47 +0000 (11:14 +0100)
commit49a969dd87090cf0565e5c08036e887d56765353
tree727889f70e9c57eb2fc1008b6cb7ddf323b1f74d
parent6ff6f5b6ffd9323cc568def2169225dd84bc3a0c
libblkid: introduce luks opal prober

Accesses to a disk locked with OPAL trigger IO errors logged by the
kernel which should be avoided.
Running the normal luks prober first breaks the ordering of probers
leading to incorrect detections, for example detecting mdadm superblocks
before version 1.1 as luks.

Introduce a new prober that only runs on OPAL-locked disks to avoid
these false-positives.

See #2061, #2373 and #2882.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
libblkid/src/superblocks/luks.c
libblkid/src/superblocks/superblocks.c
libblkid/src/superblocks/superblocks.h