summaryrefslogtreecommitdiffstats
path: root/libblkid
diff options
context:
space:
mode:
authorMilan Broz2019-06-04 12:16:57 +0200
committerKarel Zak2019-06-04 13:04:09 +0200
commit73421b953e39758aac132d6673b713f007da06b2 (patch)
tree044f95726dcd3091e779bbe57f7c0491e17c1372 /libblkid
parenthardlink: fix bad formatting in hardlink.1 (diff)
downloadkernel-qcow2-util-linux-73421b953e39758aac132d6673b713f007da06b2.tar.gz
kernel-qcow2-util-linux-73421b953e39758aac132d6673b713f007da06b2.tar.xz
kernel-qcow2-util-linux-73421b953e39758aac132d6673b713f007da06b2.zip
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>
Diffstat (limited to 'libblkid')
-rw-r--r--libblkid/src/superblocks/lvm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libblkid/src/superblocks/lvm.c b/libblkid/src/superblocks/lvm.c
index c7e456fa9..b078aba3f 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 && sb->version != 2)
+ if (!sb->version)
return 1;
blkid_probe_sprintf_version(pr, "%u", sb->version);