]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fdisk: print geometry for dos-compatible mode too
authorKarel Zak <kzak@redhat.com>
Wed, 25 Sep 2013 15:36:21 +0000 (17:36 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 25 Sep 2013 15:36:21 +0000 (17:36 +0200)
fdisks/fdisk.c

index cbefd5a59362dc74eebae726e5e4de44f728777c..61a522c3645d34def966af1c28d4080f6d9ddc1c 100644 (file)
@@ -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);