summaryrefslogtreecommitdiff
path: root/sys/arch/hp300/dev/sd.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1998-04-25 00:38:17 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1998-04-25 00:38:17 +0000
commit0397475dceed1bbc11c572b9ec97d9a0142eedab (patch)
tree6e04ccdf05c7e0589fcaf8f604280666d9146a29 /sys/arch/hp300/dev/sd.c
parent871e2dd2236d18e2d7cabfab0fab7134cf61c8b0 (diff)
set d_bbsize and d_sbsize in spoofed label to values correct for ffs
Diffstat (limited to 'sys/arch/hp300/dev/sd.c')
-rw-r--r--sys/arch/hp300/dev/sd.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/arch/hp300/dev/sd.c b/sys/arch/hp300/dev/sd.c
index 243ff2cea04..78de6345edb 100644
--- a/sys/arch/hp300/dev/sd.c
+++ b/sys/arch/hp300/dev/sd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sd.c,v 1.14 1998/03/27 07:47:54 millert Exp $ */
+/* $OpenBSD: sd.c,v 1.15 1998/04/25 00:38:15 millert Exp $ */
/* $NetBSD: sd.c,v 1.34 1997/07/10 18:14:10 kleink Exp $ */
/*
@@ -56,6 +56,8 @@
#include <sys/proc.h>
#include <sys/stat.h>
+#include <ufs/ffs/fs.h> /* for BBSIZE and SBSIZE */
+
#include <hp300/dev/scsireg.h>
#include <hp300/dev/scsivar.h>
#include <hp300/dev/sdvar.h>
@@ -465,6 +467,10 @@ sdgetinfo(dev)
lp->d_rpm = 3600;
lp->d_interleave = 1;
+ /* 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);