summaryrefslogtreecommitdiff
path: root/sys/arch/hp300/dev/hd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/hp300/dev/hd.c')
-rw-r--r--sys/arch/hp300/dev/hd.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/arch/hp300/dev/hd.c b/sys/arch/hp300/dev/hd.c
index 094cd9a7532..71514571b0e 100644
--- a/sys/arch/hp300/dev/hd.c
+++ b/sys/arch/hp300/dev/hd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hd.c,v 1.7 1998/03/27 08:37:06 millert Exp $ */
+/* $OpenBSD: hd.c,v 1.8 1998/04/25 00:38:16 millert Exp $ */
/* $NetBSD: rd.c,v 1.33 1997/07/10 18:14:08 kleink Exp $ */
/*
@@ -60,6 +60,8 @@
#include <sys/proc.h>
#include <sys/stat.h>
+#include <ufs/ffs/fs.h> /* for BBSIZE and SBSIZE */
+
#include <hp300/dev/hpibvar.h>
#include <hp300/dev/hdreg.h>
@@ -503,6 +505,10 @@ hdgetinfo(dev)
}
lp->d_secpercyl = lp->d_nsectors * lp->d_ntracks;
+ /* XXX - these values for BBSIZE and SBSIZE assume ffs */
+ lp->d_bbsize = BBSIZE;
+ lp->d_sbsize = SBSIZE;
+
lp->d_partitions[RAW_PART].p_offset = 0;
lp->d_partitions[RAW_PART].p_size =
lp->d_secperunit * (lp->d_secsize / DEV_BSIZE);