LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   libblkid uuid_parse() failing to parse UUID for lvm volume on raid device (https://www.linuxquestions.org/questions/programming-9/libblkid-uuid_parse-failing-to-parse-uuid-for-lvm-volume-on-raid-device-830382/)

wroom 09-04-2010 07:08 PM

libblkid uuid_parse() failing to parse UUID for lvm volume on raid device
 
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:
"cgrPXv-vtek-kfNh-kqNv-2Ad1-kct8-DVPLg5"
The "unparsed" UUID of a partition with a reiserfs filesystem, (or a swap partition), can look like the following:
"9124daf1-cea4-4d1b-94d1-20c165e03b05"
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?


All times are GMT -5. The time now is 08:30 PM.