]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libblkid: fix detection of dm-integrity superblock version
authorMilan Broz <gmazyland@gmail.com>
Tue, 4 Jun 2019 10:16:57 +0000 (12:16 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 4 Jun 2019 11:04:09 +0000 (13:04 +0200)
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>
libblkid/src/superblocks/lvm.c

index c7e456fa9c60952591e9de7f9baef8b79f535bcd..b078aba3fc11dbff513a3041c84ec81cc148ea42 100644 (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);