From mboxrd@z Thu Jan 1 00:00:00 1970 From: Phillip Susi Subject: Re: [dm-devel] What is the deal with the partition separator? Date: Wed, 16 Feb 2011 14:33:31 -0500 Message-ID: <4D5C268B.6070507@cfl.rr.com> References: <4D5B42BE.3050301@cfl.rr.com> <4D5B7ED9.20304@suse.de> <4D5C073F.3020502@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4D5C073F.3020502-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: parted-devel-bounces+gcgpd-parted-devel=m.gmane.org-XbBxUvOt3X2LieD7tvxI8l/i77bcL1HB@public.gmane.org Errors-To: parted-devel-bounces+gcgpd-parted-devel=m.gmane.org-XbBxUvOt3X2LieD7tvxI8l/i77bcL1HB@public.gmane.org To: Curtis Gedak Cc: device-mapper development , serge.hallyn-GeWIH/nMZzLQT0dZR+AlfA@public.gmane.org, parted-devel-XbBxUvOt3X2LieD7tvxI8l/i77bcL1HB@public.gmane.org, Hannes Reinecke , Debian LVM Team List-Id: dm-devel.ids On 2/16/2011 12:19 PM, Curtis Gedak wrote: > Only newer versions of (lib)parted which link with the dmraid library > work this way with dmraid devices. In this situation it is the dmraid > library that is coming up with the device names. For all other devices, > (lib)parted uses the "linux scheme since the dawn of time" mentioned > below. Older versions of (lib)parted follow the "linux scheme since the > dawn of time". (lib)parted does not link to dmraid; it contains its own code to generate the name by always adding the 'p' in libparted/arch/linux.c. > GParted uses (lib)parted to come up with device names, except in the > case of dmraid devices. Because dmraid does not follow the "linux > scheme since the dawn of time", gparted calls dmraid directly to create > names following the old dmraid standard (only append partition number to > device name). If kpartx is available, then GParted will call kpartx to > ensure that dmraid device names follow the "linux scheme since the dawn > of time". This behaviour enables GParted to work with all versions of > dmraid, and maintain compatibility with (lib)parted versions 1.7.1 and > higher. It shouldn't be using both dmraid and kpartx to create the partition devices. If dmraid does it, then calling kpartx at best does nothing, and at worst creates duplicate devices.