Rockbox

This is the bug/patch tracker for Rockbox. Click here for more information.

Quick links: Bugs · Patches · Rockbox frontpage

Tasklist

FS#2669 - splitedit: check disk space before writing

Attached to Project: Rockbox
Opened by Philipp Pertermann (langhaarrocker) - Tuesday, 06 September 2005, 18:10 GMT+1
Task Type Patches
Category Plugins
Status New
Assigned To No-one
Player Type
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Private No

Details

   splitedit_disk_full.patch (5.7 KiB)
 plugin.c            |    1 +
 plugin.h            |    4 ++--
 plugins/splitedit.c |   50 ++++++++++++++++++++++++++++++++++++++++++++++----
 3 files changed, 49 insertions(+), 6 deletions(-)

This task depends upon

Comment by Linus Nielsen Feltzing (linusnielsen) - Tuesday, 06 September 2005, 22:35 GMT+1

The fat_size() function doesn't tell the truth about the
real remaining space on the disk, especially if the drive
has been mounted under the Windows operating system.

You need to check the return code from write() to catch the
disk full errors as well.
Comment by Anonymous Submitter - Wednesday, 07 September 2005, 10:59 GMT+1

Unfortunately I won't have much time at hand for the next
few weeks. Thus I suggest to commit this meanwhile as it is
an improvement. I can fix write checking later.

Loading...