diff options
Diffstat (limited to 'sys/dev/scd/scd.c')
| -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 1742fdd47819..719c86b30d91 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; |
