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 pro

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

2019-12-05 Thread Tom Rini
On Thu, Dec 05, 2019 at 06:58:15PM +0100, Matthias Brugger wrote: > > > On 05/12/2019 17:52, Lukasz Majewski wrote: > > Hi Tom, Matthias, > > > >> The code for handing file overwrite incorrectly assumed that the file > >> on disk is always contiguous. This resulted in corrupting disk > >> struct

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

2019-12-05 Thread Matthias Brugger
On 05/12/2019 17:52, Lukasz Majewski wrote: > Hi Tom, Matthias, > >> 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 add

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

2019-12-05 Thread Lukasz Majewski
Hi Tom, Matthias, > 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

[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