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@xxxxxxxxx> --- libblkid/src/superblocks/lvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libblkid/src/superblocks/lvm.c b/libblkid/src/superblocks/lvm.c index 17731a8fd..c7e456fa9 100644 --- a/libblkid/src/superblocks/lvm.c +++ b/libblkid/src/superblocks/lvm.c @@ -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); -- 2.19.1