summaryrefslogtreecommitdiffstats
path: root/disk-utils/fdisk.8
diff options
context:
space:
mode:
authorKarel Zak2014-10-23 12:03:31 +0200
committerKarel Zak2014-10-23 12:11:50 +0200
commitfd211531e8b079380c3b041a4768005b63c42d78 (patch)
tree01664b5fbdf52a1e903d8ea57536f5ce6c38982f /disk-utils/fdisk.8
parentdocs: remove obsolete READMEs for (s)fdisk (diff)
downloadkernel-qcow2-util-linux-fd211531e8b079380c3b041a4768005b63c42d78.tar.gz
kernel-qcow2-util-linux-fd211531e8b079380c3b041a4768005b63c42d78.tar.xz
kernel-qcow2-util-linux-fd211531e8b079380c3b041a4768005b63c42d78.zip
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>
Diffstat (limited to 'disk-utils/fdisk.8')
-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 2ee5f6448..9ed342e4e 100644
--- a/disk-utils/fdisk.8
+++ b/disk-utils/fdisk.8
@@ -130,6 +130,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