--- src/sys/bus/cam/scsi/scsi_cd.c 2007/05/15 05:37:36 1.30 +++ src/sys/bus/cam/scsi/scsi_cd.c 2007/06/03 03:44:17 1.31 @@ -768,7 +768,8 @@ cdregister(struct cam_periph *periph, vo DEVSTAT_TYPE_CDROM | DEVSTAT_TYPE_IF_SCSI, DEVSTAT_PRIORITY_CD); disk_create(periph->unit_number, &softc->disk, &cd_ops); - softc->disk.d_info.d_dsflags = DSO_ONESLICE | DSO_COMPATLABEL; + softc->disk.d_info.d_dsflags = DSO_ONESLICE | DSO_COMPATLABEL | + DSO_COMPATPARTA; /* * Add an async callback so that we get @@ -1435,10 +1436,9 @@ cdstrategy(struct dev_strategy_args *ap) struct buf *bp = bio->bio_buf; struct cam_periph *periph; struct cd_softc *softc; - u_int unit, part; + u_int unit; unit = dkunit(dev); - part = dkpart(dev); periph = cam_extend_get(cdperiphs, unit); if (periph == NULL) { bp->b_error = ENXIO;