Searched hist:"1254 b44a9f31c78ce7325eb392eaa949a2c7fc9a" (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/fs/fat/ |
| H A D | fat_write.c | 1254b44a9f31c78ce7325eb392eaa949a2c7fc9a Mon Sep 28 13:45:32 UTC 2015 Benoît Thébaudeau <benoit@wsystem.com> fs/fat/fat_write: Fix management of empty files
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@wsystem.com>
|