Allowing SCSI read operations > 32 kB

This commit is contained in:
Thomas Schmitt 2012-01-23 10:06:52 +00:00
parent 6549072dcd
commit 7ce13c6dd3
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;
for (; start < upto; start += chunksize) {
chunksize = upto - start;
if (chunksize > 16) {
chunksize = 16;
cpy_size = 16 * 2048;
if (chunksize > (BUFFER_SIZE / 2048)) {
chunksize = (BUFFER_SIZE / 2048);
cpy_size = BUFFER_SIZE;
} else
cpy_size = data_size - *data_count;
if (flag & 2)