diff options
| author | Petr Uzel <petr.uzel@suse.cz> | 2012-07-26 16:04:27 +0200 |
|---|---|---|
| committer | Karel Zak <kzak@redhat.com> | 2012-07-26 17:19:03 +0200 |
| commit | a7a6f7d2e27344030317e91fb656fbd7f4091b7c (patch) | |
| tree | 426388d826eca85e2c678712b378343ea9e9b4dc /fdisks/fdisk.c | |
| parent | f8527f4bd306ce4179d5f82027509770366e757b (diff) | |
| download | util-linux-a7a6f7d2e27344030317e91fb656fbd7f4091b7c.tar.gz | |
fdisk: don't print CHS geometry unless DOS compatible mode is set
References: http://marc.info/?l=util-linux-ng&m=134329693623430&w=2
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Diffstat (limited to 'fdisks/fdisk.c')
| -rw-r--r-- | fdisks/fdisk.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fdisks/fdisk.c b/fdisks/fdisk.c index fb897d85..fa202183 100644 --- a/fdisks/fdisk.c +++ b/fdisks/fdisk.c @@ -1005,9 +1005,9 @@ list_disk_geometry(struct fdisk_context *cxt) { cxt->dev_path, hectomega / 10, hectomega % 10, bytes); } printf(_(", %llu sectors\n"), cxt->total_sectors); - printf(_("%d heads, %llu sectors/track, %llu cylinders"), - cxt->geom.heads, cxt->geom.sectors, cxt->geom.cylinders); - printf("\n"); + if (dos_compatible_flag) + printf(_("%d heads, %llu sectors/track, %llu cylinders\n"), + cxt->geom.heads, cxt->geom.sectors, cxt->geom.cylinders); printf(_("Units = %s of %d * %ld = %ld bytes\n"), str_units(PLURAL), units_per_sector, cxt->sector_size, units_per_sector * cxt->sector_size); |
