summaryrefslogtreecommitdiff
path: root/sys/scsi
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-07-12 01:20:21 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-07-12 01:20:21 +0000
commitc1d58efffecda7280c73c4f8ef16d0c1a17de59f (patch)
treeaeb993d5cb87c2547d9ba7c7ad8f3ca875e194ca /sys/scsi
parent8f3c78f30d98f9e9cb184f46f6f7b27a296db68a (diff)
fill in d_bbsize and d_sbsize
Diffstat (limited to 'sys/scsi')
-rw-r--r--sys/scsi/cd.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/scsi/cd.c b/sys/scsi/cd.c
index 10d5f7d77bc..cb8372ce589 100644
--- a/sys/scsi/cd.c
+++ b/sys/scsi/cd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cd.c,v 1.30 1998/03/27 18:40:54 millert Exp $ */
+/* $OpenBSD: cd.c,v 1.31 1998/07/12 01:20:18 deraadt Exp $ */
/* $NetBSD: cd.c,v 1.100 1997/04/02 02:29:30 mycroft Exp $ */
/*
@@ -71,6 +71,8 @@
#include <scsi/scsi_disk.h> /* rw_big and start_stop come from there */
#include <scsi/scsiconf.h>
+#include <ufs/ffs/fs.h> /* for BBSIZE and SBSIZE */
+
#define CDOUTSTANDING 4
#define CDRETRIES 1
@@ -1070,6 +1072,10 @@ cdgetdisklabel(dev, cd)
lp->d_interleave = 1;
lp->d_flags = D_REMOVABLE;
+ /* 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);