From unknown Tue Jun 17 01:30:33 2025 X-Loop: help-debbugs@gnu.org Subject: bug#55841: parted is not user-friendly on specifying partition end Resent-From: Aleksey Midenkov Original-Sender: "Debbugs-submit" Resent-CC: bug-parted@gnu.org Resent-Date: Wed, 08 Jun 2022 09:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 55841 X-GNU-PR-Package: parted X-GNU-PR-Keywords: To: 55841@debbugs.gnu.org X-Debbugs-Original-To: bug-parted@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.165468034521510 (code B ref -1); Wed, 08 Jun 2022 09:26:02 +0000 Received: (at submit) by debbugs.gnu.org; 8 Jun 2022 09:25:45 +0000 Received: from localhost ([127.0.0.1]:42483 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nyrwf-0005as-K7 for submit@debbugs.gnu.org; Wed, 08 Jun 2022 05:25:45 -0400 Received: from lists.gnu.org ([209.51.188.17]:37232) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nyrwa-0005ag-Rf for submit@debbugs.gnu.org; Wed, 08 Jun 2022 05:25:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44854) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nyrwa-0004us-Kz for bug-parted@gnu.org; Wed, 08 Jun 2022 05:25:40 -0400 Received: from mail-io1-xd2f.google.com ([2607:f8b0:4864:20::d2f]:36660) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nyrwW-000677-A6 for bug-parted@gnu.org; Wed, 08 Jun 2022 05:25:37 -0400 Received: by mail-io1-xd2f.google.com with SMTP id s26so8333624ioa.3 for ; Wed, 08 Jun 2022 02:25:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=61L9otNn1B5iqQDZaSFiEJCleH0EX00Q6VKvrIEu9Hk=; b=hOchFFR56JapWjtKb4lxOPUkyL1dL5RxNJpaO2kKRuTt62mfmWQWToHz6T+yqupuP+ kdX/pr2eIMK+vSejVWySQfrVFy47ziNuW5bR6QYrLf+5YSEw6/EJvsYf2cuMRbHucPxV Gj8I06nh5xtnEZjUPLA02rH4yVWwSesrmuOEEURa/9+ZaD8SzpFPze1B95kMqXYQJrbS Z5jOfk77BqujHtE72rhKWXS0OsKJgeIN1i6xgIaLET+i/W83CzTWxgfypdaVfGd9pTk0 xuYLju2a2jdyvkqNJrjw7OoF7SJ7qqmyRg+aWdXNReHsBLVrQdhOEUhRlwc3CaG7YTyL jOdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=61L9otNn1B5iqQDZaSFiEJCleH0EX00Q6VKvrIEu9Hk=; b=iq1Y+OwnOr9jYgvOZGK1ktI/lFpLvITD/y/V/w/hxK2F2Yls5e4mG1dnwj29QKFHbT 3UXJPpd3UPA+lRKJp+rBgsX0X6wFuXUFmTM+SErSgWLf3g89s6fv8utmdggYY6q5ZCW9 CO5135nTesjhpHbw68Vxkbd71oCGjTBEyKa1rjc4u9VQnnWazAcnQt4eUMoVnQzPEP2D gUV+tEuNmGZMxiVMQXRfqrp6X4PPVbPRAjQEaNp1QCNQnLdfHgPlI6Y50Vn3oDt5qtJL TWN9VnN6Z/OuxVttx1nfC5bOgGM0hv1JRp3JiBt8LrL/t4E5+cqC/1+QZ3XhiOIqZEtc 6n+Q== X-Gm-Message-State: AOAM533XD8yIIVTJQ79Ccq5jmViLMHLedDxI08EXB8pLmEEnvr2AhPi5 2nnV4rsWYr0E6uc2ZIrzOXxXFFOM8HMas3G990JDFP7Gm9w= X-Google-Smtp-Source: ABdhPJykFdtkE2E4LYc4F6+mpThGYz0/doVXZk2TPJA+5EmGC2l6ayqmp77Ozl+Chx7G6ODNX/+vHrNcpH/zkem3Gnw= X-Received: by 2002:a6b:3b47:0:b0:669:3912:55de with SMTP id i68-20020a6b3b47000000b00669391255demr10526179ioa.168.1654680334428; Wed, 08 Jun 2022 02:25:34 -0700 (PDT) MIME-Version: 1.0 From: Aleksey Midenkov Date: Wed, 8 Jun 2022 12:17:00 +0300 Message-ID: Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::d2f; envelope-from=midenok@gmail.com; helo=mail-io1-xd2f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) 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