[U-Boot] [PATCH 3/5] FAT32: fix broken root directory handling.

Wolfgang Denk wd at denx.de
Sat Jul 24 20:46:57 CEST 2010


Dear Wolfgang Denk,

In message <1279532220-5848-4-git-send-email-wd at denx.de> you wrote:
> On FAT32, instead of fetching the cluster numbers from the FAT, the
> code assumed (incorrectly) that the clusters for the root directory
> were allocated contiguously. In the result, only the first cluster
> could be accessed. At the typical cluster size of 8 sectors this
> caused all accesses to files after the first 128 entries to fail -
> "fatls" would terminate after 128 files (usually displaying a bogus
> file name, occasionally even crashing the system), and "fatload"
> would fail to find any files that were not in the first directory
> cluster.
> 
> Signed-off-by: Wolfgang Denk <wd at denx.de>
> ---
>  fs/fat/fat.c |   60 ++++++++++++++++++++++++++++++++++++++++++++++++---------
>  1 files changed, 50 insertions(+), 10 deletions(-)

Applied.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The first thing we do is kill all the lawyers.
(Shakespeare. II Henry VI, Act IV, scene ii)


More information about the U-Boot mailing list