util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] blkid: fix detection of dm-integrity superblock
@ 2018-11-07 11:48 Milan Broz
  2018-11-12 10:40 ` Karel Zak
  0 siblings, 1 reply; 2+ messages in thread
From: Milan Broz @ 2018-11-07 11:48 UTC (permalink / raw)
  To: util-linux; +Cc: Milan Broz

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 | 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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-11-12 10:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-07 11:48 [PATCH] blkid: fix detection of dm-integrity superblock Milan Broz
2018-11-12 10:40 ` Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).