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>
*/
static const struct blkid_idinfo *idinfos[] =
{
+ /* In case the volume is locked with OPAL we are going to get
+ * an I/O error when reading past the LUKS header, so try it
+ * first. */
+ &luks_idinfo,
+
/* RAIDs */
&linuxraid_idinfo,
&ddfraid_idinfo,
&snapcow_idinfo,
&verity_hash_idinfo,
&integrity_idinfo,
- &luks_idinfo,
&vmfs_volume_idinfo,
&ubi_idinfo,
&vdo_idinfo,