[parted-devel] [patch] Use 'p' partition separator only when necessary
Brian C. Lane
bcl at redhat.com
Tue Mar 29 19:19:21 UTC 2011
On Sat, Mar 05, 2011 at 12:30:06AM -0500, Phillip Susi wrote:
>
> Device mapper type should not automatically mean add 'p'
> before the partition number. Fall back to adding it only
> if the previous character is a digit. This compilies
> with kpartx behavior.
This will make it more difficult for tools to parse the name to get the
partition number. Having p%d always present is much easier to handle
than %d or p%d
It seems to me that kpartx should change its behavior to always add the
p.
--
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 482 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/parted-devel/attachments/20110329/0d337472/attachment.pgp>
More information about the parted-devel
mailing list