]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libblkid: use 'VERSION' rather than 'PERSISTENCE_VERSION'
authorKarel Zak <kzak@redhat.com>
Mon, 31 Aug 2015 11:23:55 +0000 (13:23 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 31 Aug 2015 11:23:55 +0000 (13:23 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/superblocks/drbdmanage.c

index bfe853ad303596b26ee240a582df5761b1a09379..d7384dff39e3f523805b1e92743cb16841c491a3 100644 (file)
@@ -66,8 +66,7 @@ static int probe_drbdmanage(blkid_probe pr,
                return errno ? -errno : 1;
 
        if (memcmp(prs->magic, persistence_magic, sizeof(prs->magic)) == 0 &&
-           blkid_probe_sprintf_value(pr, "PERSISTENCE_VERSION",
-                                       "%d", be32_to_cpu(prs->version_le)) != 0)
+           blkid_probe_sprintf_version(pr, "%d", be32_to_cpu(prs->version_le)) != 0)
                return errno ? -errno : 1;
 
        return 0;