summaryrefslogtreecommitdiffstats
path: root/fdisk/fdisk.8
diff options
context:
space:
mode:
authorKarel Zak2010-03-19 15:56:27 +0100
committerKarel Zak2010-03-19 15:56:27 +0100
commit7f152745c33567f49807019fd4f5f72eadfd4fd4 (patch)
tree3ce1170267b974feae48c4f64c1ad150fae920a0 /fdisk/fdisk.8
parentdocs: update TODO file (diff)
downloadkernel-qcow2-util-linux-7f152745c33567f49807019fd4f5f72eadfd4fd4.tar.gz
kernel-qcow2-util-linux-7f152745c33567f49807019fd4f5f72eadfd4fd4.tar.xz
kernel-qcow2-util-linux-7f152745c33567f49807019fd4f5f72eadfd4fd4.zip
fdisk: fix -b <sectorsize>
The old fdisk (<2.17) does not differentiate between logical and physical sector size, it uses the <sectorsize> for everything. Now, we have logical and physical sectors size, but the -b option changes the logical size only. The second bug is that "fdisk -b <sz>" does not read topology information (it means that all I/O limits and physical sector size are 512 (default). The backwardly compatible bug fix is to override both sizes, logical and physical if "-b" is used. In future we can add a special option for physical size only. Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'fdisk/fdisk.8')
-rw-r--r--fdisk/fdisk.84
1 files changed, 3 insertions, 1 deletions
diff --git a/fdisk/fdisk.8 b/fdisk/fdisk.8
index 367837d9d..30dc9678a 100644
--- a/fdisk/fdisk.8
+++ b/fdisk/fdisk.8
@@ -182,7 +182,9 @@ program and Linux partitions with the Linux fdisk or Linux cfdisk program.
.BI "\-b " sectorsize
Specify the sector size of the disk. Valid values are 512, 1024, 2048 or 4096.
(Recent kernels know the sector size. Use this only on old kernels or
-to override the kernel's ideas.)
+to override the kernel's ideas.) Since util-linux-ng 2.17 fdisk differentiates
+between logical and physical sector size. This option changes both sector sizes to
+.IB sectorsize .
.TP
.BI \-h
Print help and then exit.