Always read the TOC in acd_read_toc even if MEDIA_CHANGED wasn't set.

Since we cannot (reliably) detect when media has been removed before we
try to touch it, this could leave stale TOC's around.
This commit is contained in:
Søren Schmidt 2006-03-08 10:14:39 +00:00
parent de0ed44e2f
commit d0bf5478e0

View File

@ -940,9 +940,6 @@ acd_read_toc(device_t dev)
int8_t ccb[16];
int track, ntracks, len;
if (!(atadev->flags & ATA_D_MEDIA_CHANGED))
return;
atadev->flags &= ~ATA_D_MEDIA_CHANGED;
bzero(&cdp->toc, sizeof(cdp->toc));
cdp->disk_size = -1; /* hack for GEOM SOS */