1 Aug 2007 05:11
r507 - ofw/fs/fatfs
Author: wmb Date: 2007-08-01 05:11:46 +0200 (Wed, 01 Aug 2007) New Revision: 507 Modified: ofw/fs/fatfs/bpb.fth ofw/fs/fatfs/fat.fth Log: FAT filesystem - OLPC trac 2609. Fixed FAT32 cluster allocation bug. The "next cluster" field in the fsinfo structure was being treated as a definitive free cluster number, instead of as a hint for where to begin searching. In addition, it was off by one - that field typically contains the number of the most recently written cluster, whereas the code was treating it as the next available cluster number. Modified: ofw/fs/fatfs/bpb.fth =================================================================== --- ofw/fs/fatfs/bpb.fth 2007-07-30 21:08:57 UTC (rev 506) +++ ofw/fs/fatfs/bpb.fth 2007-08-01 03:11:46 UTC (rev 507) <at> <at> -91,21 +91,11 <at> <at> d# 16 constant fat16 d# 32 constant fat32 -: fs-lelop ( adr op -- ) - fsinfo <at> 0<> if - over lel <at> swap execute swap lel! - true fsinfos-dirty c! - else - 2drop - then(Continue reading)
RSS Feed