Found out that uuid_parse() in libblkid cannot parse the UUID's of LVM physical volumes residing on nonpartitioned raid volumes. It fails with an error, while it correctly parses other UUID's.
This is strange, since the utility blkid reports correctly the UUID's of LVM physical volumes on nonpartitioned raid devices, as any other partition with an UUID.
The "unparsed" UUID of an LVM physical volume can look like this:
The "unparsed" UUID of a partition with a reiserfs filesystem, (or a swap partition), can look like the following:
Note that there is a difference in syntax between the two.
I was under the impression that libblkid was an effort to a unified handling of disk UUID's, but it does not seem to do so.
I wonder if someone could help me shed some insightful light on this topic, please?