linux_partition_get_path (./libparted/arch/linux.c) appends part->num to
part->disk->dev->path. 

It is wrong for PED_PARTITION_METADATA or extended partitions because
they have negative part->num. For example for the first partition of x86
disk ("MBR partition") it returns '/dev/hda-1'

I suggest use NULL or just part->disk->dev->path instead of an
unexist device path.

- jenda



_______________________________________________
bug-parted mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-parted

Reply via email to