• Benoît Thébaudeau's avatar
    fs/fat/fat_write: Fix management of empty files · 1254b44a
    Benoît Thébaudeau authored
    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: 's avatarBenoît Thébaudeau <benoit@wsystem.com>
    1254b44a
Name
Last commit
Last update
..
cbfs Loading commit data...
cramfs Loading commit data...
ext4 Loading commit data...
fat Loading commit data...
jffs2 Loading commit data...
reiserfs Loading commit data...
sandbox Loading commit data...
ubifs Loading commit data...
yaffs2 Loading commit data...
zfs Loading commit data...
Kconfig Loading commit data...
Makefile Loading commit data...
fs.c Loading commit data...