summaryrefslogtreecommitdiff
path: root/lib/libdisk/write_disk.c
diff options
context:
space:
mode:
authorRodney W. Grimes <rgrimes@FreeBSD.org>1995-06-11 19:33:05 +0000
committerRodney W. Grimes <rgrimes@FreeBSD.org>1995-06-11 19:33:05 +0000
commitd3628763db3974826e46a036aa54333147fbe238 (patch)
treeba998dfb4fcad03e00a5cbf58e2a0ad648bab6e6 /lib/libdisk/write_disk.c
parent67eb1e0ed1fb11c703392e562440c67d3b44b094 (diff)
Notes
Diffstat (limited to 'lib/libdisk/write_disk.c')
-rw-r--r--lib/libdisk/write_disk.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/libdisk/write_disk.c b/lib/libdisk/write_disk.c
index e2c067404547..dc46beeab6f1 100644
--- a/lib/libdisk/write_disk.c
+++ b/lib/libdisk/write_disk.c
@@ -6,7 +6,7 @@
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
* ----------------------------------------------------------------------------
*
- * $Id: write_disk.c,v 1.12 1995/05/24 08:59:40 jkh Exp $
+ * $Id: write_disk.c,v 1.13.2.1 1995/06/05 02:24:37 jkh Exp $
*
*/
@@ -69,9 +69,15 @@ Write_FreeBSD(int fd, struct disk *new, struct disk *old, struct chunk *c1)
dl->d_secsize = 512;
dl->d_secperunit = new->chunks->size;
+#if 0
dl->d_secpercyl = new->real_cyl ? new->real_cyl : new->bios_cyl;
dl->d_ntracks = new->real_hd ? new->real_hd : new->bios_hd;
dl->d_nsectors = new->real_sect ? new->real_sect : new->bios_sect;
+#else
+ dl->d_secpercyl = new->bios_cyl;
+ dl->d_ntracks = new->bios_hd;
+ dl->d_nsectors = new->bios_sect;
+#endif
dl->d_secpercyl = dl->d_ntracks * dl->d_nsectors;
dl->d_npartitions = MAXPARTITIONS;