FS#10656 - Wrong Free and Disk size when SECTOR_SIZE!=512

Attached to Project: Rockbox
Opened by Laurent Papier (papier) - Monday, 05 October 2009, 22:32 GMT
Last edited by Frank Gevaerts (fg) - Monday, 09 November 2009, 22:54 GMT
Task Type Patches
Category Operating System/Drivers
Status Closed
Assigned To No-one
Operating System All players
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


'System'->'Rockbox Info' shows wrong Free and Disk size when SECTOR_SIZE != 512.

Right now, Nano2g is the only target with SECTOR_SIZE != 512, but I guess this could change in the futur.

Here is a simple patch that fixes the problem and should works for any SECTOR_SIZE.

This task depends upon

Closed by  Frank Gevaerts (fg)
Monday, 09 November 2009, 22:54 GMT
Reason for closing:  Accepted
Additional comments about closing:  accepted in r23595