From: Robert Pengelly Date: Sun, 16 Jun 2024 08:04:17 +0000 (+0100) Subject: Actually heads per cylinder was right without -1 X-Git-Url: https://git.candlhat.org/?a=commitdiff_plain;h=4133a10e0acebd1372755dd30dc6b2b7485a36bc;p=parted.git Actually heads per cylinder was right without -1 --- diff --git a/parted.c b/parted.c index 2bcd18d..dd809e7 100644 --- a/parted.c +++ b/parted.c @@ -513,7 +513,7 @@ int main (int argc, char **argv) { write781_to_byte_array (footer.data_size, flen - sizeof (footer), 0); write721_to_byte_array (footer.disk_geom.cylinders, cylinders, 0); - footer.disk_geom.heads_per_cyl = heads_per_cylinder - 1; + footer.disk_geom.heads_per_cyl = heads_per_cylinder; footer.disk_geom.secs_per_track = sectors_per_track; get_random_bytes (footer.identifier, sizeof (footer.identifier));