]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libblkid: drbdmanage: use blkid_probe_strncpy_uuid instead of blkid_probe_set_id_label
authorPali Rohár <pali.rohar@gmail.com>
Sun, 22 Nov 2020 18:44:09 +0000 (19:44 +0100)
committerPali Rohár <pali.rohar@gmail.com>
Sun, 22 Nov 2020 18:44:09 +0000 (19:44 +0100)
Function blkid_probe_strncpy_uuid() is better suitable for setting UUID
than function blkid_probe_set_id_label().

Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
libblkid/src/superblocks/drbdmanage.c

index b45f89bc8d9d399687c28c71249c830b49c57253..d56c414c928474fb75045c8e5ae9de23165ecf64 100644 (file)
@@ -56,7 +56,7 @@ static int probe_drbdmanage(blkid_probe pr,
        if (hdr->lf != '\n')
                return 1;
 
-       if (blkid_probe_set_id_label(pr, "UUID",
+       if (blkid_probe_strncpy_uuid(pr,
                                hdr->uuid, sizeof(hdr->uuid)))
                return errno ? -errno : 1;