* [PATCH] libblkid: fix detection of dm-integrity superblock version
@ 2019-06-04 10:16 Milan Broz
2019-06-04 11:05 ` Karel Zak
0 siblings, 1 reply; 2+ messages in thread
From: Milan Broz @ 2019-06-04 10:16 UTC (permalink / raw)
To: util-linux; +Cc: Milan Broz
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>
---
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 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);
--
2.20.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] libblkid: fix detection of dm-integrity superblock version
2019-06-04 10:16 [PATCH] libblkid: fix detection of dm-integrity superblock version Milan Broz
@ 2019-06-04 11:05 ` Karel Zak
0 siblings, 0 replies; 2+ messages in thread
From: Karel Zak @ 2019-06-04 11:05 UTC (permalink / raw)
To: Milan Broz; +Cc: util-linux
On Tue, Jun 04, 2019 at 12:16:57PM +0200, Milan Broz wrote:
> libblkid/src/superblocks/lvm.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks.
--
Karel Zak <kzak@redhat.com>
http://karelzak.blogspot.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-06-04 11:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-04 10:16 [PATCH] libblkid: fix detection of dm-integrity superblock version Milan Broz
2019-06-04 11:05 ` Karel Zak
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.