Re: [PATCH v2 1/5] fs: fat: finding an empty FAT cluster

2022-08-01 Thread AKASHI Takahiro
On Mon, Aug 01, 2022 at 10:21:20AM +0200, Heinrich Schuchardt wrote: > > > On 8/1/22 03:02, AKASHI Takahiro wrote: > > On Sun, Jul 31, 2022 at 01:58:33PM +0200, Heinrich Schuchardt wrote: > > > Currently we have two functions with redundant coding to find an empty > > > cluster: > > > > > > *

Re: [PATCH v2 1/5] fs: fat: finding an empty FAT cluster

2022-08-01 Thread Heinrich Schuchardt
On 8/1/22 03:02, AKASHI Takahiro wrote: On Sun, Jul 31, 2022 at 01:58:33PM +0200, Heinrich Schuchardt wrote: Currently we have two functions with redundant coding to find an empty cluster: * find_empty_cluster() seeks from the beginning of the FAT table * determine_fatent() seeks after a

Re: [PATCH v2 1/5] fs: fat: finding an empty FAT cluster

2022-07-31 Thread AKASHI Takahiro
On Sun, Jul 31, 2022 at 01:58:33PM +0200, Heinrich Schuchardt wrote: > Currently we have two functions with redundant coding to find an empty > cluster: > > * find_empty_cluster() seeks from the beginning of the FAT table > * determine_fatent() seeks after a given entry > > Both do not detect

[PATCH v2 1/5] fs: fat: finding an empty FAT cluster

2022-07-31 Thread Heinrich Schuchardt
Currently we have two functions with redundant coding to find an empty cluster: * find_empty_cluster() seeks from the beginning of the FAT table * determine_fatent() seeks after a given entry Both do not detect the end of the FAT table correctly and return an invalid cluster number if no empty