From 35ec27de007a54ca13eabb9e3e6ed3407f38c973 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Mon, 23 Jan 2012 10:06:52 +0000 Subject: [PATCH] Allowing SCSI read operations > 32 kB --- libburn/trunk/cdrskin/cdrskin_timestamp.h | 2 +- libburn/trunk/libburn/read.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libburn/trunk/cdrskin/cdrskin_timestamp.h b/libburn/trunk/cdrskin/cdrskin_timestamp.h index 2d16b70a..e188c184 100644 --- a/libburn/trunk/cdrskin/cdrskin_timestamp.h +++ b/libburn/trunk/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2012.01.20.091016" +#define Cdrskin_timestamP "2012.01.21.174103" diff --git a/libburn/trunk/libburn/read.c b/libburn/trunk/libburn/read.c index d909d3cf..425c1503 100644 --- a/libburn/trunk/libburn/read.c +++ b/libburn/trunk/libburn/read.c @@ -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)