summaryrefslogtreecommitdiffstats
path: root/fdisks/fdisk.c
diff options
context:
space:
mode:
authorKarel Zak2013-09-25 17:36:21 +0200
committerKarel Zak2013-09-25 17:36:21 +0200
commit96dc2798a86196d6f679dca1d46540fc38ab9524 (patch)
treeb642b5133b3a0f7cd1f9247df3e6dc8217de1b53 /fdisks/fdisk.c
parentlibfdisk: (sun) make it more obvious why the first sector moved (diff)
downloadkernel-qcow2-util-linux-96dc2798a86196d6f679dca1d46540fc38ab9524.tar.gz
kernel-qcow2-util-linux-96dc2798a86196d6f679dca1d46540fc38ab9524.tar.xz
kernel-qcow2-util-linux-96dc2798a86196d6f679dca1d46540fc38ab9524.zip
fdisk: print geometry for dos-compatible mode too
Diffstat (limited to 'fdisks/fdisk.c')
-rw-r--r--fdisks/fdisk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fdisks/fdisk.c b/fdisks/fdisk.c
index cbefd5a59..61a522c36 100644
--- a/fdisks/fdisk.c
+++ b/fdisks/fdisk.c
@@ -204,7 +204,7 @@ void list_disk_geometry(struct fdisk_context *cxt)
cxt->dev_path, strsz, bytes, cxt->total_sectors);
free(strsz);
- if (fdisk_require_geometry(cxt))
+ if (fdisk_require_geometry(cxt) || fdisk_context_use_cylinders(cxt))
fdisk_colon(cxt, _("Geometry: %d heads, %llu sectors/track, %llu cylinders"),
cxt->geom.heads, cxt->geom.sectors, cxt->geom.cylinders);