Rockbox

Tasklist

FS#2387 - Splitedit: Disc full Handling

Attached to Project: Rockbox
Opened by Alexander Eickhoff (aeickho) - Saturday, 06 November 2004, 21:44 GMT
Last edited by Christi Scarborough (christi-s) - Sunday, 19 March 2006, 14:44 GMT
Task Type Bugs
Category User Interface
Status Closed
Assigned To No-one
Operating System All players
Severity Low
Priority Immediate
Reported Version Daily build (which?)
Due in Version Version 3.0
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

When disk is full splitedit hangs while is crate the
new file
This task depends upon

Closed by  Hristo Kovachev (bger)
Sunday, 02 April 2006, 21:29 GMT
Reason for closing:  Fixed
Comment by Alexander Eickhoff (aeickho) - Monday, 08 November 2004, 18:17 GMT

snipp from splitedit.c
(
int dest,
int src,
unsigned int bytes,
int prg_y,
int prg_h)
{
unsigned char *buffer;
unsigned int i = 0;
ssize_t bytes_read = 1; /* ensure the for loop is executed */
unsigned int buffer_size;
buffer = rb->plugin_get_buffer(&buffer_size);

for (i = 0; i < bytes && bytes_read > 0; i += bytes_read)
{
ssize_t bytes_written;
unsigned int bytes_to_read =
bytes - i > buffer_size ? buffer_size : bytes - i;
bytes_read = rb->read(src, buffer, bytes_to_read);
bytes_written = rb->write(dest, buffer, bytes_read);

bytes_written is not checkted
Comment by Christi Scarborough (christi-s) - Sunday, 19 March 2006, 14:43 GMT
Is this still unfixed in the latest CVS?
Comment by Dan Everton (safetydan) - Tuesday, 28 March 2006, 17:53 GMT
Please retest. This should be fixed in the latest CVS builds.

Loading...