New flag bit2 with burn_read_data()
This commit is contained in:
parent
6dc9ecbcad
commit
acd7dbc5c6
@ -1 +1 @@
|
|||||||
#define Cdrskin_timestamP "2008.08.09.071742"
|
#define Cdrskin_timestamP "2008.08.09.071854"
|
||||||
|
@ -2420,6 +2420,8 @@ int burn_random_access_write(struct burn_drive *d, off_t byte_address,
|
|||||||
@param flag Bitfield for control purposes:
|
@param flag Bitfield for control purposes:
|
||||||
bit0= - reserved -
|
bit0= - reserved -
|
||||||
bit1= do not submit error message if read error
|
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
|
@return 1=sucessful , <=0 an error occured
|
||||||
@since 0.4.0
|
@since 0.4.0
|
||||||
*/
|
*/
|
||||||
|
@ -443,7 +443,8 @@ int burn_read_data(struct burn_drive *d, off_t byte_address,
|
|||||||
d->silent_on_scsi_error = sose_mem;
|
d->silent_on_scsi_error = sose_mem;
|
||||||
if (err == BE_CANCELLED) {
|
if (err == BE_CANCELLED) {
|
||||||
/* Try to read a smaller part of the chunk */
|
/* Try to read a smaller part of the chunk */
|
||||||
for (i = 0; i < chunksize - 1; i++) {
|
if(!(flag & 4))
|
||||||
|
for (i = 0; i < chunksize - 1; i++) {
|
||||||
if (flag & 2)
|
if (flag & 2)
|
||||||
d->silent_on_scsi_error = 1;
|
d->silent_on_scsi_error = 1;
|
||||||
if (d->drive_role == 1) {
|
if (d->drive_role == 1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user