[dm-devel] What is the deal with the partition separator?

Phillip Susi psusi at cfl.rr.com
Wed Feb 16 19:37:55 UTC 2011

On 2/16/2011 2:38 AM, Hannes Reinecke wrote:
> The linux scheme since the dawn of time is to
> a) Add the partition number to the device node name
> b) If last letter of the device node name is a number, insert a 'p'
> between device node name and partition number

Since the dawn of time?  Before device mapper it wasn't possible to have
a disk device name ending in a digit.

> with the advent of persistent device names (via udev) the partition
> separator (for persistent links only!) is '-part'.
> So you have
> /dev/sda
> /dev/sda1
> /dev/disk/by-id/scsi-0WhatAStupidName
> /dev/disk/by-id/scsi-0WhatAStupidName-part1
> persistent device names are longish anyway, so we can as well use
> something readable for partitions.

That's fine for the symlinks in by-id, but what about the names in
/dev/mapper and /dev/VG?

More information about the pkg-lvm-maintainers mailing list