Re: [U-Boot] [PATCH v4 1/6] fat: write: fix broken write to fragmented files

2020-02-07 Thread Tom Rini
On Mon, Dec 02, 2019 at 12:11:13PM +0100, Marek Szyprowski wrote: > The code for handing file overwrite incorrectly assumed that the file on > disk is always contiguous. This resulted in corrupting disk structure > every time when write to existing fragmented file happened. Fix this > by adding

[U-Boot] [PATCH v4 1/6] fat: write: fix broken write to fragmented files

2019-12-02 Thread Marek Szyprowski
The code for handing file overwrite incorrectly assumed that the file on disk is always contiguous. This resulted in corrupting disk structure every time when write to existing fragmented file happened. Fix this by adding proper check for cluster discontinuity and adjust chunk size on each partial