Skip to contentSkip to conversation

blkid: fix detection of dm-integrity superblock

PATCH Applied Milan Broz 2 participants 2 messages Nov 7, 2018 – Nov 12, 2018 Util-Linux package

lore
Share & tools
lore

Milan Broz

author
#0 lore raw

PATCH 1/1 blkid: 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.

---
 libblkid/src/superblocks/lvm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
libblkid/src/superblocks/lvm.c +1 -1
index 17731a8fd..c7e456fa9 100644
@@ -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);
Signature · 1 line
2.19.1
maintainer Applied
#1 lore raw
Quoted 2 lines · Milan Broz
 libblkid/src/superblocks/lvm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks.

Signature · 2 lines
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com