summaryrefslogtreecommitdiffstats
path: root/libfdisk
diff options
context:
space:
mode:
authorKarel Zak2018-01-02 16:50:31 +0100
committerKarel Zak2018-01-02 16:50:31 +0100
commit280b9754755b201e9fd1a830a4e0f05b6177e33c (patch)
treeda67d65896d5a7ca40c2a29f788b0af594cf9f09 /libfdisk
parentlibfdisk: extend API to provide label specific geometry ranges (diff)
downloadkernel-qcow2-util-linux-280b9754755b201e9fd1a830a4e0f05b6177e33c.tar.gz
kernel-qcow2-util-linux-280b9754755b201e9fd1a830a4e0f05b6177e33c.tar.xz
kernel-qcow2-util-linux-280b9754755b201e9fd1a830a4e0f05b6177e33c.zip
libfdisk: (dos) fix max heads
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libfdisk')
-rw-r--r--libfdisk/src/dos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libfdisk/src/dos.c b/libfdisk/src/dos.c
index fd6e2cbb5..438d39afd 100644
--- a/libfdisk/src/dos.c
+++ b/libfdisk/src/dos.c
@@ -2490,7 +2490,7 @@ struct fdisk_label *fdisk_new_dos_label(struct fdisk_context *cxt)
lb->geom_min.cylinders = 1;
lb->geom_max.sectors = 63;
- lb->geom_max.heads = 256;
+ lb->geom_max.heads = 255;
lb->geom_max.cylinders = 1048576;
return lb;