]> git.ipfire.org Git - thirdparty/util-linux.git/commit
partx: Fix example in man page
authorMichal Suchanek <msuchanek@suse.de>
Tue, 24 Sep 2024 07:19:39 +0000 (09:19 +0200)
committerMichal Suchanek <msuchanek@suse.de>
Tue, 24 Sep 2024 07:22:20 +0000 (09:22 +0200)
commit50ff6cbfe5bf0fa20dc61631346b2d6ccafc0b41
treef0c1e65083649cbd3eb51c92880d2b0d581c5cd1
parent81ea117e0396274808a77d40bf11af44ea047285
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
disk-utils/partx.8.adoc