Set si_bsize_phys to 2048 for cdrom.

Reviewed by:	sos
This commit is contained in:
Poul-Henning Kamp 1999-09-03 10:56:27 +00:00
parent f10f520361
commit a2f21fdc51

View File

@ -405,6 +405,7 @@ acdopen(dev_t dev, int32_t flags, int32_t fmt, struct proc *p)
if (lun >= acdnlun || !(cdp = acdtab[lun]))
return ENXIO;
dev->si_bsize_phys = 2048;
if (!(cdp->flags & F_BOPEN) && !cdp->refcnt) {
acd_lock_device(cdp, 1); /* prevent user eject */
cdp->flags |= F_LOCKED;