Allowing SCSI read operations > 32 kB

This commit is contained in:
Thomas Schmitt 2012-01-23 10:06:52 +00:00
parent 8ed28bec4e
commit 35ec27de00
2 changed files with 4 additions and 4 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2012.01.20.091016" #define Cdrskin_timestamP "2012.01.21.174103"

View File

@ -465,9 +465,9 @@ int burn_read_data(struct burn_drive *d, off_t byte_address,
wpt = data; wpt = data;
for (; start < upto; start += chunksize) { for (; start < upto; start += chunksize) {
chunksize = upto - start; chunksize = upto - start;
if (chunksize > 16) { if (chunksize > (BUFFER_SIZE / 2048)) {
chunksize = 16; chunksize = (BUFFER_SIZE / 2048);
cpy_size = 16 * 2048; cpy_size = BUFFER_SIZE;
} else } else
cpy_size = data_size - *data_count; cpy_size = data_size - *data_count;
if (flag & 2) if (flag & 2)