Bug fix: Option -dummy did not affect writing by direct_write_amount=

This commit is contained in:
Thomas Schmitt 2016-11-18 14:24:13 +01:00
parent 80175e0054
commit 19a1b8e768
2 changed files with 7 additions and 3 deletions

View File

@ -6989,6 +6989,7 @@ int Cdrskin_direct_write(struct CdrskiN *skin, int flag)
int ret, max_chunksize= 64*1024, source_fd= -1, is_from_stdin, eof_sensed= 0;
int self_opened= 0;
char *buf= NULL, *source_path, amount_text[81];
char *dummy_text= "";
struct burn_multi_caps *caps= NULL;
ret= Cdrskin_grab_drive(skin,0);
@ -7042,8 +7043,11 @@ int Cdrskin_direct_write(struct CdrskiN *skin, int flag)
sprintf(amount_text,"%.fk",(double) (data_count/1024));
else
strcpy(amount_text,"0=open_ended");
fprintf(stderr,"Beginning direct write (start=%.fk,amount=%s) ...\n",
(double) (byte_address/1024),amount_text);
burn_drive_reset_simulate(skin->grabbed_drive, !!skin->dummy_mode);
if(skin->dummy_mode)
dummy_text= " simulation of";
fprintf(stderr,"Beginning%s direct write (start=%.fk,amount=%s) ...\n",
dummy_text, (double) (byte_address / 1024), amount_text);
for(i= 0; i<data_count || data_count==0; i+= chunksize) {
if(data_count==0)
chunksize= (alignment > 0 ? alignment : 2048);

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2016.11.18.131813"
#define Cdrskin_timestamP "2016.11.18.132335"