From: Michal Suchanek Date: Tue, 24 Sep 2024 07:19:39 +0000 (+0200) Subject: partx: Fix example in man page X-Git-Tag: v2.40.3~34 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=8b0366ba3db0d43326409cb8a986c50fc601422a;p=thirdparty%2Futil-linux.git partx: Fix example in man page The example is: partx -d --nr :-1 /dev/sdd Removes the last partition on _/dev/sdd_. The documentation says: M: Specifies the lower limit only (e.g. --nr 2:). :N Specifies the upper limit only (e.g. --nr :4). In the above example the lower limit is not set and the upper is set to the last partition, meaning all partitions. The lower limit should be set instead. partx -d --nr -1: /dev/sdd (cherry picked from commit 50ff6cbfe5bf0fa20dc61631346b2d6ccafc0b41) --- diff --git a/disk-utils/partx.8.adoc b/disk-utils/partx.8.adoc index bfc0c5a26..180f1c32b 100644 --- a/disk-utils/partx.8.adoc +++ b/disk-utils/partx.8.adoc @@ -122,7 +122,7 @@ Lists the length in sectors and human-readable size of partition 5 on _/dev/sda_ partx --add --nr 3:5 /dev/sdd:: Adds all available partitions from 3 to 5 (inclusive) on _/dev/sdd_. -partx -d --nr :-1 /dev/sdd:: +partx -d --nr -1: /dev/sdd:: Removes the last partition on _/dev/sdd_. == AUTHORS