[openfirmware] [commit] r2002 - ofw/fs/fatfs
repository service
svn at openfirmware.info
Wed Nov 3 03:50:32 CET 2010
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
;
More information about the openfirmware
mailing list