Allowed -dummy burns with stdio-drives (because /dev/null is no block device)

This commit is contained in:
Thomas Schmitt 2007-09-08 13:20:59 +00:00
parent 8c8895c692
commit 18192de9df
3 changed files with 4 additions and 2 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2007.09.08.102620"
#define Cdrskin_timestamP "2007.09.08.132058"

View File

@ -1972,6 +1972,7 @@ int burn_disc_get_multi_caps(struct burn_drive *d, enum burn_write_types wt,
o->might_do_sao = 4;
o->might_do_tao = 2;
o->advised_write_mode = BURN_WRITE_TAO;
o->might_simulate = 1;
} else if (s != BURN_DISC_BLANK && s != BURN_DISC_APPENDABLE) {
return 0;
} else if (s == BURN_DISC_APPENDABLE &&

View File

@ -1868,7 +1868,8 @@ int burn_stdio_write_track(struct burn_write_opts *o, struct burn_session *s,
ret = bufsize;
}
t->sourcecount += ret;
ret = burn_stdio_write(fd, buf, ret, d, 0);
if (!o->simulate)
ret = burn_stdio_write(fd, buf, ret, d, 0);
if (ret <= 0)
return ret;