#590957 parted: please allow relative addresses for start and end of partition

Package:
parted
Source:
parted
Description:
disk partition manipulator
Submitter:
Marc Haber
Date:
2014-12-14 06:09:07 UTC
Severity:
wishlist
#590957#5
Date:
2010-07-30 14:20:21 UTC
From:
To:
Hi,

it's a common case that one wants a new partition to start or end
right next to an already existing partition. parted currently cannot
do this automatically. Neither does it allow to specify a partition
_size_ automatically.

Both issues could be solved by adding some kind of relative
addressing. For example, a start of "p2+0" would mean "start the new
partition right after partition 2, with zero gap"; a start of "p2-1G"
would mean, start the new partition 1 Gigabyte before p2. "p0" would
mean the new partition, so an end of "p0+2G" would make the new
partition 2 Gigabytes large.

Please consider implementing such an option, making parted much more
flexible.

Greetings
Marc

#590957#12
Date:
2014-12-14 05:51:17 UTC
From:
To:
found 590957 2.3-12
stop

Specifying start/end relative to other disk slices is such a common usage
pattern, I'd suggest the omission of this mode of operation is rather
more problematic than merely "wishlist" severity.

I'd also like to suggest, when documenting this, there also needs to be a
mention of the '%' suffix for disk start/end relative.