summaryrefslogtreecommitdiffstats
path: root/sys/dev/ata/atapi-cd.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1999-09-03 10:56:27 +0000
committerphk <phk@FreeBSD.org>1999-09-03 10:56:27 +0000
commit842d9077f7b9ea4f366c77a0d7a9eaa5208d6fce (patch)
tree816c9eac71dae532503b8e6b20fd2f0e8cb26345 /sys/dev/ata/atapi-cd.c
parentf51d44e622135915665fb3526f64e15c175af75b (diff)
downloadFreeBSD-src-842d9077f7b9ea4f366c77a0d7a9eaa5208d6fce.zip
FreeBSD-src-842d9077f7b9ea4f366c77a0d7a9eaa5208d6fce.tar.gz
Set si_bsize_phys to 2048 for cdrom.
Reviewed by: sos
Diffstat (limited to 'sys/dev/ata/atapi-cd.c')
-rw-r--r--sys/dev/ata/atapi-cd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/ata/atapi-cd.c b/sys/dev/ata/atapi-cd.c
index bd804b4..ab7a43f 100644
--- a/sys/dev/ata/atapi-cd.c
+++ b/sys/dev/ata/atapi-cd.c
@@ -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;
OpenPOWER on IntegriCloud