summaryrefslogtreecommitdiffstats
path: root/lib/libdisk
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1995-08-26 04:57:03 +0000
committerdg <dg@FreeBSD.org>1995-08-26 04:57:03 +0000
commitb87f24347cfdd195bc2e0e04f51487eae037c584 (patch)
treee48d71096ca48f6f3d1964397321a36b1d4ec184 /lib/libdisk
parent95bcd2d87196e1d3790e6cbf037f80edc465f93f (diff)
downloadFreeBSD-src-b87f24347cfdd195bc2e0e04f51487eae037c584.zip
FreeBSD-src-b87f24347cfdd195bc2e0e04f51487eae037c584.tar.gz
Brought in changes from rev 1.14.2.1 into main branch.
Diffstat (limited to 'lib/libdisk')
-rw-r--r--lib/libdisk/write_disk.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/libdisk/write_disk.c b/lib/libdisk/write_disk.c
index dc46bee..e745917 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.13.2.1 1995/06/05 02:24:37 jkh Exp $
+ * $Id: write_disk.c,v 1.14 1995/06/11 19:29:38 rgrimes Exp $
*
*/
@@ -25,6 +25,9 @@
#define DOSPTYP_EXTENDED 5
#define BBSIZE 8192
+#define SBSIZE 8192
+#define DEF_RPM 3600
+#define DEF_INTERLEAVE 1
#define WHERE(offset,disk) (disk->flags & DISK_ON_TRACK ? offset + 63 : offset)
int
@@ -64,6 +67,12 @@ Write_FreeBSD(int fd, struct disk *new, struct disk *old, struct chunk *c1)
}
dl->d_bbsize = BBSIZE;
+ /*
+ * Add in defaults for superblock size, interleave, and rpms
+ */
+ dl->d_sbsize = SBSIZE;
+ dl->d_interleave = DEF_INTERLEAVE;
+ dl->d_rpm = DEF_RPM;
strcpy(dl->d_typename,c1->name);
OpenPOWER on IntegriCloud