← Back to team overview

registry team mailing list archive

[Bug 554582] Re: Gparted does not list dmraid devices

 

Phillip, thank you for testing the patch and confirming that it does not
fix the problem for Ubuntu 10.04 Lucid Lynx.

I think you might be on the right track with the parted-devel mailing list thread you started:
"linux: use devicemapper task name instead of device node name" causes dmraid breakage"
http://lists.alioth.debian.org/pipermail/parted-devel/2010-May/003657.html

All of the GParted DMRAID code is stored in the file src/DMRaid.cc.  To detect DMRAID devices, GParted uses the following command:
     dmraid -sa -c

The result of this command is then prefixed with "/dev/mapper" and
passed to libparted as the device name.

The src/DMRaid.cc file contains much code that uses kpartx, dmraid, and
dmsetup to create and remove device nodes.

As long as both parted and kpartx match in what these tools call the
device and partition names, then GParted should work.

When I developed this code, the general rule of thumb for partition
naming was:

If a device name ended in a number (e.g., /dev/mapper/isw_cjbdddajhi_Disk0)
then partition names would have the letter "p" appended prior to appending the partition number.
(e.g.,  /dev/mapper/isw_cjbdddajhi_Disk0p1)

If a device name did not end in a number (e.g., /dev/mapper/isw_cjbdddajhi_Volume)
then the partition names would only have the partition number appended.
(e.g., /dev/mapper/isw_cjbdddajhi_Volume1)

If the patches to parted in Ubuntu 10.04 deviate from this, then you may
just have found the source of the problem.

-- 
Gparted does not list dmraid devices
https://bugs.launchpad.net/bugs/554582
You received this bug notification because you are a member of Registry
Administrators, which is the registrant for GParted.