bug-parted
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

linux_partition_get_path returns wrong path


From: Jan Lana
Subject: linux_partition_get_path returns wrong path
Date: Mon, 11 Sep 2006 18:24:07 +0200
User-agent: Mutt/1.5.13 (2006-08-11)

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]