From: Karel Zak Date: Tue, 25 Feb 2025 10:46:46 +0000 (+0100) Subject: fdisk: (man) add note about partition size calculation X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=57df7ea01b2c3dddbe88651cbd1db9ab0b6c94f2;p=thirdparty%2Futil-linux.git fdisk: (man) add note about partition size calculation Signed-off-by: Karel Zak --- diff --git a/disk-utils/fdisk.8.adoc b/disk-utils/fdisk.8.adoc index 6c59aa1a4..1644f7bd9 100644 --- a/disk-utils/fdisk.8.adoc +++ b/disk-utils/fdisk.8.adoc @@ -120,7 +120,9 @@ In the case the size is specified in bytes, then the number may be followed by t //TRANSLATORS: Keep {plus} untranslated. -The relative sizes are always aligned according to device I/O limits. The {plus}/-{K,B,M,G,...} notation is recommended. +The relative sizes if specified with multiplicative suffixes (e.g. +100MiB) are always aligned according to device I/O limits. The {plus}/-{K,B,M,G,...} notation is recommended. + +The last sector of the partition is strictly calculated as + (without -1) if the size is specified by the + notation. In this case, the size is not aligned to the device I/O limits. For backward compatibility *fdisk* also accepts the suffixes KB (1000 bytes), MB (1000*1000 bytes), and so on for GB, TB, PB, EB, ZB and YB. These 10^N suffixes are deprecated.