From: Robert Pengelly Date: Sun, 16 Jun 2024 08:03:29 +0000 (+0100) Subject: Actually heads per cylinder was right without -1 X-Git-Url: https://git.candlhat.org/?a=commitdiff_plain;h=7fd42999953392995defc4a44e0dde65e73eac51;p=dosfstools.git Actually heads per cylinder was right without -1 --- diff --git a/mkfs.c b/mkfs.c index 3fde2fe..3113607 100644 --- a/mkfs.c +++ b/mkfs.c @@ -1009,7 +1009,7 @@ static void write_reserved (void) { } write721_to_byte_array (bs.sectors_per_track, sectors_per_track); - write721_to_byte_array (bs.heads_per_cylinder, ((heads_per_cylinder >= 4) ? (heads_per_cylinder - 1) : heads_per_cylinder)); + write721_to_byte_array (bs.heads_per_cylinder, heads_per_cylinder); write741_to_byte_array (bs.hidden_sectors, hidden_sectors); if (total_sectors > USHRT_MAX) {