]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libblkid: fix detection of dm-integrity superblock
authorMilan Broz <gmazyland@gmail.com>
Wed, 7 Nov 2018 11:48:37 +0000 (12:48 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 4 Jan 2019 10:14:16 +0000 (11:14 +0100)
Some new features in Linux kernel 4.19 for dm-integrity use metadata
format version 2, patch adds it to detection.

Signed-off-by: Milan Broz <gmazyland@gmail.com>
libblkid/src/superblocks/lvm.c

index 17731a8fd8487b6259ca0869248765d3f6f4320d..c7e456fa9c60952591e9de7f9baef8b79f535bcd 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)
+       if (sb->version !=1 && sb->version != 2)
                return 1;
 
        blkid_probe_sprintf_version(pr, "%u", sb->version);