Phillip,
Just for the record, this same bug exists in upstream util-linux.
The patch I applied was against upstream. Will you forward upstream?
Also, the thing I was unsure of (that motiviated the helper function) was if the blkid_partlist was guaranteed to be ordered by partition number. Ie, what if there was no partition 1, or if the partition numbered 3 was located on the disk before partition 1.
Phillip,
Just for the record, this same bug exists in upstream util-linux.
The patch I applied was against upstream. Will you forward upstream?
Also, the thing I was unsure of (that motiviated the helper function) was if the blkid_partlist was guaranteed to be ordered by partition number. Ie, what if there was no partition 1, or if the partition numbered 3 was located on the disk before partition 1.
Scott