]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fdisk: add section about sizes to the man page
authorKarel Zak <kzak@redhat.com>
Thu, 23 Oct 2014 10:03:31 +0000 (12:03 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 23 Oct 2014 10:11:50 +0000 (12:11 +0200)
Addresses: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=594005
Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/fdisk.8

index 2ee5f6448343f0b1167e11d84364338bd9082513..9ed342e4e18e7d15e294566ed34f7655a8cf4a29 100644 (file)
@@ -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