[parted-devel] [patch] Use 'p' partition separator only when necessary
Phillip Susi
psusi at cfl.rr.com
Tue Mar 29 19:32:18 UTC 2011
On 3/29/2011 3:19 PM, Brian C. Lane wrote:
> 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
When do tools need to parse like that? AFAIK, they only need to add the
partition number, not remove it. In other words, parted deals with the
base disk device 99% of the time, then just needs to append the
partition number to format the newly created partition. It also has
managed to deal with the sometimes 'p' in other types of devices for ages.
More information about the parted-devel
mailing list