]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fdisk: (man) add note about partition size calculation
authorKarel Zak <kzak@redhat.com>
Tue, 25 Feb 2025 10:46:46 +0000 (11:46 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 25 Feb 2025 10:51:21 +0000 (11:51 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/fdisk.8.adoc

index 6c59aa1a46cad71420ead8eb97455f336ba9b37b..1644f7bd9e02f7ee1758555a1b99b0ab6af143d2 100644 (file)
@@ -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}/-<size>{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}/-<size>{K,B,M,G,...} notation is recommended.
+
+The last sector of the partition is strictly calculated as <start> + <size> (without -1) if the size is specified by the +<sectors> 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.