Ensured synchronize cache before release

This commit is contained in:
2007-10-03 11:24:41 +00:00
parent 01ec5f031d
commit f71c2079ff
5 changed files with 29 additions and 3 deletions

View File

@ -2308,6 +2308,8 @@ void mmc_sync_cache(struct burn_drive *d)
}
if (spc_wait_unit_attention(d, 3600, "SYNCHRONIZE CACHE", 0) <= 0)
d->cancel = 1;
else
d->needs_sync_cache = 0;
}
@ -2949,6 +2951,7 @@ int mmc_setup_drive(struct burn_drive *d)
d->current_feat21h_link_size = -1;
d->current_feat2fh_byte4 = -1;
d->needs_close_session = 0;
d->needs_sync_cache = 0;
d->bg_format_status = -1;
d->num_format_descr = 0;
d->complete_sessions = 0;