diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-07-12 01:20:21 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-07-12 01:20:21 +0000 |
commit | c1d58efffecda7280c73c4f8ef16d0c1a17de59f (patch) | |
tree | aeb993d5cb87c2547d9ba7c7ad8f3ca875e194ca /sys/dev/atapi/acd.c | |
parent | 8f3c78f30d98f9e9cb184f46f6f7b27a296db68a (diff) |
fill in d_bbsize and d_sbsize
Diffstat (limited to 'sys/dev/atapi/acd.c')
-rw-r--r-- | sys/dev/atapi/acd.c | 8 |
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 = |