[U-Boot] [U-Boot, 5/5] fs/fat/fat_write: Fix management of empty files
Tom Rini
trini at konsulko.com
Mon Oct 12 17:15:30 CEST 2015
On Mon, Sep 28, 2015 at 03:45:32PM +0200, Benoît Thébaudeau wrote:
> Overwriting an empty file not created by U-Boot did not work, and it
> could even corrupt the FAT. Moreover, creating empty files or emptying
> existing files allocated a cluster, which is not standard.
>
> Fix this by always keeping empty files clusterless as specified by
> Microsoft (the start cluster must be set to 0 in the directory entry in
> that case), and by supporting overwriting such files.
>
> Signed-off-by: Benoît Thébaudeau <benoit at wsystem.com>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20151012/fd6b878f/attachment.sig>
More information about the U-Boot
mailing list