FAT filesystem write and long names stability

Franck JULLIEN franck.jullien at gmail.com
Mon Dec 5 15:03:27 EST 2011


Hi Robert,

2011/12/5 Robert Jarzmik <robert.jarzmik at free.fr>:
>
> Does anyone have a feedback about the FAT filesystem support in barebox ?
>
> From my first tests, I think that :
>  - long filenames is a bit buggy (when activated, I have a exception in a ls
>  command)
>  - write doesn't seem to work : on a mounted SD card, I make a "mkdir toto",
>  then dismount and remount => the directory is gone.
>
> Is anyone else doing tests in this area ?
>
> Cheers.
>
> --
> Robert
>
> _______________________________________________
> barebox mailing list
> barebox at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox

Do you have this patch applied to your working branch ? :

fs/fat: Initialize local variable finfo

fat_stat in fs/fat.c declares finfo but doesn't initialize it.
When get_fileinfo is called, fno->lfname and fno->lfsize are
tested but haven't been zeroed...This can lead to a wrong
behavior.

When I worked on MMC SPI, I had problems with long file names. This
uninitialized
varible was the root cause...



More information about the barebox mailing list