• 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: default avatarBenoît Thébaudeau <benoit@wsystem.com>
    1254b44a
Name
Last commit
Last update
Licenses Loading commit data...
api Loading commit data...
arch Loading commit data...
board Loading commit data...
common Loading commit data...
configs Loading commit data...
disk Loading commit data...
doc Loading commit data...
drivers Loading commit data...
dts Loading commit data...
examples Loading commit data...
fs Loading commit data...
include Loading commit data...
lib Loading commit data...
net Loading commit data...
post Loading commit data...
scripts Loading commit data...
test Loading commit data...
tools Loading commit data...
.checkpatch.conf Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
Kbuild Loading commit data...
Kconfig Loading commit data...
MAINTAINERS Loading commit data...
MAKEALL Loading commit data...
Makefile Loading commit data...
README Loading commit data...
config.mk Loading commit data...
snapshot.commit Loading commit data...