summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2014-10-23 12:03:31 +0200
committerKarel Zak <kzak@redhat.com>2014-10-24 11:10:06 +0200
commitd2a3cce95a2f4f1329ea4c8d77c09c2ae35de859 (patch)
tree07449b8a3ec60c8168073f2f9b3e4809ab9af203
parent735dcba8e9aaa2d93838a26da194d1add53c20d3 (diff)
downloadutil-linux-d2a3cce95a2f4f1329ea4c8d77c09c2ae35de859.tar.gz
fdisk: add section about sizes to the man page
Addresses: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=594005 Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r--disk-utils/fdisk.817
1 files changed, 17 insertions, 0 deletions
diff --git a/disk-utils/fdisk.8 b/disk-utils/fdisk.8
index 1da15d903..cea9853cb 100644
--- a/disk-utils/fdisk.8
+++ b/disk-utils/fdisk.8
@@ -122,6 +122,23 @@ is a device name followed by a partition number. For example, /dev/sda1 is the
first partition on the first hard disk in the system. See also Linux kernel
documentation (the Documentation/devices.txt file).
+.SH SIZES
+The "last sector" dialog accepts partition size specified by number of sectors
+or by +<size>{K,B,M,G,...} notation.
+
+If the size is prefixed by '+' then it is interpreted as relative to the
+partition first sector. In this case the size is expected in bytes and the
+number may be followed by the multiplicative suffixes KiB=1024, MiB=1024*1024,
+and so on for GiB, TiB, PiB, EiB, ZiB and YiB. The "iB" is optional, e.g. "K"
+has the same meaning as "KiB".
+
+The relative sizes are always aligned according to device I/O limits. The
++<size>{K,B,M,G,...} notation is recommended.
+
+For backward compatibility fdisk also accepts the suffixes KB=1000,
+MB=1000*1000, and so on for GB, TB, PB, EB, ZB and YB. These 10^N suffixes
+are deprecated.
+
.SH DISK LABELS
.B GPT (GUID Partition Table)
.RS