libblkid: fix detection of dm-integrity superblock version

Kernel 5.2 can use superblock version 3 for dm-integrity.
Let's remove the explicit version check to be compatible
with future extensions.

Signed-off-by: Milan Broz <gmazyland@gmail.com>
This commit is contained in:
Milan Broz 2019-06-04 12:16:57 +02:00 committed by Karel Zak
parent f7c5507db6
commit 73421b953e
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@ static int probe_integrity(blkid_probe pr, const struct blkid_idmag *mag)
if (sb == NULL)
return errno ? -errno : 1;
if (sb->version !=1 && sb->version != 2)
if (!sb->version)
return 1;
blkid_probe_sprintf_version(pr, "%u", sb->version);