diff options
author | julian <julian@FreeBSD.org> | 1999-09-09 19:08:44 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 1999-09-09 19:08:44 +0000 |
commit | 5c78e7345a2fd91174249db5a41aec14e57f1fb3 (patch) | |
tree | e7d99a6be8ccf0086169fae4fdd8377ccf9252be /sys/dev/scd | |
parent | d475da44561ed80c7ceb7e75432d70a726c7e751 (diff) | |
download | FreeBSD-src-5c78e7345a2fd91174249db5a41aec14e57f1fb3.zip FreeBSD-src-5c78e7345a2fd91174249db5a41aec14e57f1fb3.tar.gz |
Changes to centralise the default blocksize behaviour.
More likely to follow.
Submitted by: phk@freebsd.org
Diffstat (limited to 'sys/dev/scd')
-rw-r--r-- | sys/dev/scd/scd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/scd/scd.c b/sys/dev/scd/scd.c index 1742fdd..719c86b 100644 --- a/sys/dev/scd/scd.c +++ b/sys/dev/scd/scd.c @@ -258,8 +258,6 @@ scdopen(dev_t dev, int flags, int fmt, struct proc *p) XDEBUG(1,("scd%d: DEBUG: status = 0x%x\n", unit, inb(cd->iobase+IREG_STATUS))); - dev->si_bsize_phys = 2048; - dev->si_bsize_max = MAXBSIZE; if ((rc = spin_up(unit)) != 0) { print_error(unit, rc); return EIO; @@ -281,6 +279,8 @@ scdopen(dev_t dev, int flags, int fmt, struct proc *p) } } + dev->si_bsize_phys = cd->blksize; + cd->openflag = 1; cd->flags |= SCDVALID; |