diff options
author | Milan Broz | 2018-11-07 12:48:37 +0100 |
---|---|---|
committer | Karel Zak | 2018-11-12 11:32:24 +0100 |
commit | 1741d2ea572be01899107bd171d4e8a3e50c73d9 (patch) | |
tree | 154a8177e9cd682e8f76114aed0e1481166b35a3 /libblkid | |
parent | agetty: fix portability issues (diff) | |
download | kernel-qcow2-util-linux-1741d2ea572be01899107bd171d4e8a3e50c73d9.tar.gz kernel-qcow2-util-linux-1741d2ea572be01899107bd171d4e8a3e50c73d9.tar.xz kernel-qcow2-util-linux-1741d2ea572be01899107bd171d4e8a3e50c73d9.zip |
libblkid: fix detection of dm-integrity superblock
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>
Diffstat (limited to 'libblkid')
-rw-r--r-- | libblkid/src/superblocks/lvm.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |