Author: quozl Date: Wed Nov 3 03:50:32 2010 New Revision: 2002 URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2002
Log: OLPC XO-1.5 - fix fs-update for small files svn 1994 broke fs-update for files smaller than 2 GIB, detected by Luna, debugged by James, code by Mitch.
Modified: ofw/fs/fatfs/read.fth
Modified: ofw/fs/fatfs/read.fth ============================================================================== --- ofw/fs/fatfs/read.fth Wed Nov 3 02:11:02 2010 (r2001) +++ ofw/fs/fatfs/read.fth Wed Nov 3 03:50:32 2010 (r2002) @@ -134,7 +134,10 @@
\ If the last cluster of the file has been read, account for the \ true length of the file - fh_length l@ current-position - + ( bytes-valid ) + current-position fh_length l@ u> if ( bytes-tranferred ) + current-position fh_length l@ - - ( bytes-valid ) + then ( bytes-valid ) + false ;