summaryrefslogtreecommitdiff
path: root/sys/dev/atapi
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/dev/atapi
parent8f3c78f30d98f9e9cb184f46f6f7b27a296db68a (diff)
fill in d_bbsize and d_sbsize
Diffstat (limited to 'sys/dev/atapi')
-rw-r--r--sys/dev/atapi/acd.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/atapi/acd.c b/sys/dev/atapi/acd.c
index 886f72de68c..2efee890feb 100644
--- a/sys/dev/atapi/acd.c
+++ b/sys/dev/atapi/acd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acd.c,v 1.31 1998/07/11 03:48:24 deraadt Exp $ */
+/* $OpenBSD: acd.c,v 1.32 1998/07/12 01:20:20 deraadt Exp $ */
/*
* Copyright (c) 1996 Manuel Bouyer. All rights reserved.
@@ -51,6 +51,8 @@
#include <dev/atapi/atapilink.h>
#include <dev/atapi/atapi.h>
+#include <ufs/ffs/fs.h> /* for BBSIZE and SBSIZE */
+
#define CDUNIT(z) DISKUNIT(z)
#define CDPART(z) DISKPART(z)
#define MAKECDDEV(maj, unit, part) MAKEDISKDEV(maj, unit, part)
@@ -1013,6 +1015,10 @@ acdgetdisklabel(acd)
if (acd_read_toc (acd, CD_LBA_FORMAT, 0, toc, len))
goto done;
+ /* XXX - these values for BBSIZE and SBSIZE assume ffs */
+ lp->d_bbsize = BBSIZE;
+ lp->d_sbsize = SBSIZE;
+
/* The raw partition is special. */
lp->d_partitions[RAW_PART].p_offset = 0;
lp->d_partitions[RAW_PART].p_size =