New flag bit2 with burn_read_data()

This commit is contained in:
Thomas Schmitt 2008-08-09 07:19:54 +00:00
parent 6dc9ecbcad
commit acd7dbc5c6
3 changed files with 5 additions and 2 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2008.08.09.071742"
#define Cdrskin_timestamP "2008.08.09.071854"

View File

@ -2420,6 +2420,8 @@ int burn_random_access_write(struct burn_drive *d, off_t byte_address,
@param flag Bitfield for control purposes:
bit0= - reserved -
bit1= do not submit error message if read error
bit2= on error do not try to read a second time
with single block steps. @since 0.5.2
@return 1=sucessful , <=0 an error occured
@since 0.4.0
*/

View File

@ -443,6 +443,7 @@ int burn_read_data(struct burn_drive *d, off_t byte_address,
d->silent_on_scsi_error = sose_mem;
if (err == BE_CANCELLED) {
/* Try to read a smaller part of the chunk */
if(!(flag & 4))
for (i = 0; i < chunksize - 1; i++) {
if (flag & 2)
d->silent_on_scsi_error = 1;