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

Re: [libvirt] [PATCH 1/1] RFC: Canonicalize block device paths



On Thu, Jul 08, 2010 at 07:37:03PM -0400, David Allan wrote:
> There are many naming conventions for partitions associated with a
> block device.  Some of the major ones are:
> 
> /dev/foo -> /dev/foo1
> /dev/foo1 -> /dev/foo1p1
> /dev/mapper/foo -> /dev/mapper/foop1
> /dev/disk/by-path/foo -> /dev/disk/by-path/foo-part1
> 
> The universe of possible conventions isn't clear.  Rather than trying
> to understand all possible conventions, this patch divides devices
> into two groups, device mapper devices and everything else.  Device
> mapper devices seem always to follow the convention of device ->
> devicep1; everything else is canonicalized.
> ---
>  src/Makefile.am          |    9 +++++++--
>  src/storage/parthelper.c |   35 +++++++++++++++++++++++++++++++++--
>  2 files changed, 40 insertions(+), 4 deletions(-)

ACK, it may not be perfect, but it looks incrementally better
than what we have now.


Daniel
-- 
|: Red Hat, Engineering, London    -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org -o- http://virt-manager.org -o- http://deltacloud.org :|
|: http://autobuild.org        -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|


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