Better attempt at fooling GEOM into working with burnable media.

This commit is contained in:
Søren Schmidt 2003-11-07 08:31:09 +00:00
parent 55b13f8d2d
commit 8bea451207
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=122203

View File

@ -233,7 +233,6 @@ acd_init_lun(struct ata_device *atadev)
cdp->device = atadev;
cdp->lun = ata_get_lun(&acd_lun_map);
cdp->block_size = 2048;
cdp->disk_size = -1; /* hack for GEOM SOS */
cdp->slot = -1;
cdp->changer_info = NULL;
return cdp;
@ -1201,6 +1200,7 @@ acd_read_toc(struct acd_softc *cdp)
return;
cdp->device->flags &= ~ATA_D_MEDIA_CHANGED;
cdp->disk_size = -1; /* hack for GEOM SOS */
len = sizeof(struct ioc_toc_header) + sizeof(struct cd_toc_entry);
ccb[0] = ATAPI_READ_TOC;