From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Mon, 12 Oct 2015 11:15:30 -0400 Subject: [U-Boot] [U-Boot, 5/5] fs/fat/fat_write: Fix management of empty files In-Reply-To: <1443447932-14139-5-git-send-email-benoit@wsystem.com> References: <1443447932-14139-5-git-send-email-benoit@wsystem.com> Message-ID: <20151012151530.GK23893@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 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: