GNU bug report logs - #55841
parted is not user-friendly on specifying partition end

Previous Next

Package: parted;

Reported by: Aleksey Midenkov <midenok <at> gmail.com>

Date: Wed, 8 Jun 2022 09:26:02 UTC

Severity: normal

To reply to this bug, email your comments to 55841 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-parted <at> gnu.org:
bug#55841; Package parted. (Wed, 08 Jun 2022 09:26:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Aleksey Midenkov <midenok <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-parted <at> gnu.org. (Wed, 08 Jun 2022 09:26:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Aleksey Midenkov <midenok <at> gmail.com>
To: bug-parted <at> gnu.org
Subject: parted is not user-friendly on specifying partition end
Date: Wed, 8 Jun 2022 12:17:00 +0300
Example
mkpart p1 ext2 700mib 800mib

Expected: 100Mib partition created.
Result: 100Mib + 1 sector partition created. Next partition will be on
nonoptimal odd sector number start and parted will warn.

That is because parted takes literally 800mib as an address. This
doesn't help anything as mib unit is meant to be used for human and
for human it is natural to specify 100mib size that way.

How this should be fixed (two parts):
1. end address in human-usable units should be translated to sector value - 1.
2. additionally it should be possible to specify size like that:

    mkpart p1 ext2 700mib +100mib

So the plus sign should tell that we specify size instead of end. This
should not cancel p.1 fix.

-- 
@midenok




This bug report was last modified 2 years and 151 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.