Re: [RFC PATCH 2/2] qemu-img convert: Fix sparseness detection

2021-12-17 Thread Peter Lieven
Am 04.12.21 um 00:04 schrieb Vladimir Sementsov-Ogievskiy: > 03.12.2021 14:17, Peter Lieven wrote: >> Am 19.05.21 um 18:48 schrieb Kevin Wolf: >>> Am 19.05.2021 um 15:24 hat Peter Lieven geschrieben: Am 20.04.21 um 18:52 schrieb Vladimir Sementsov-Ogievskiy: > 20.04.2021 18:04, Kevin Wolf

Re: [RFC PATCH 2/2] qemu-img convert: Fix sparseness detection

2021-12-04 Thread Peter Lieven
> Am 04.12.2021 um 00:04 schrieb Vladimir Sementsov-Ogievskiy > : > > 03.12.2021 14:17, Peter Lieven wrote: >>> Am 19.05.21 um 18:48 schrieb Kevin Wolf: >>> Am 19.05.2021 um 15:24 hat Peter Lieven geschrieben: Am 20.04.21 um 18:52 schrieb Vladimir Sementsov-Ogievskiy: > 20.04.2021

Re: [RFC PATCH 2/2] qemu-img convert: Fix sparseness detection

2021-12-03 Thread Vladimir Sementsov-Ogievskiy
03.12.2021 14:17, Peter Lieven wrote: Am 19.05.21 um 18:48 schrieb Kevin Wolf: Am 19.05.2021 um 15:24 hat Peter Lieven geschrieben: Am 20.04.21 um 18:52 schrieb Vladimir Sementsov-Ogievskiy: 20.04.2021 18:04, Kevin Wolf wrote: Am 20.04.2021 um 16:31 hat Vladimir Sementsov-Ogievskiy

Re: [RFC PATCH 2/2] qemu-img convert: Fix sparseness detection

2021-12-03 Thread Peter Lieven
Am 19.05.21 um 18:48 schrieb Kevin Wolf: > Am 19.05.2021 um 15:24 hat Peter Lieven geschrieben: >> Am 20.04.21 um 18:52 schrieb Vladimir Sementsov-Ogievskiy: >>> 20.04.2021 18:04, Kevin Wolf wrote: Am 20.04.2021 um 16:31 hat Vladimir Sementsov-Ogievskiy geschrieben: > 15.04.2021 18:22,

Re: [RFC PATCH 2/2] qemu-img convert: Fix sparseness detection

2021-05-19 Thread Kevin Wolf
Am 19.05.2021 um 15:24 hat Peter Lieven geschrieben: > Am 20.04.21 um 18:52 schrieb Vladimir Sementsov-Ogievskiy: > > 20.04.2021 18:04, Kevin Wolf wrote: > >> Am 20.04.2021 um 16:31 hat Vladimir Sementsov-Ogievskiy geschrieben: > >>> 15.04.2021 18:22, Kevin Wolf wrote: > In order to avoid RMW

Re: [RFC PATCH 2/2] qemu-img convert: Fix sparseness detection

2021-05-19 Thread Peter Lieven
Am 20.04.21 um 18:52 schrieb Vladimir Sementsov-Ogievskiy: > 20.04.2021 18:04, Kevin Wolf wrote: >> Am 20.04.2021 um 16:31 hat Vladimir Sementsov-Ogievskiy geschrieben: >>> 15.04.2021 18:22, Kevin Wolf wrote: In order to avoid RMW cycles, is_allocated_sectors() treats zeroed areas like

Re: [RFC PATCH 2/2] qemu-img convert: Fix sparseness detection

2021-04-20 Thread Vladimir Sementsov-Ogievskiy
20.04.2021 18:04, Kevin Wolf wrote: Am 20.04.2021 um 16:31 hat Vladimir Sementsov-Ogievskiy geschrieben: 15.04.2021 18:22, Kevin Wolf wrote: In order to avoid RMW cycles, is_allocated_sectors() treats zeroed areas like non-zero data if the end of the checked area isn't aligned. This can

Re: [RFC PATCH 2/2] qemu-img convert: Fix sparseness detection

2021-04-20 Thread Kevin Wolf
Am 20.04.2021 um 16:31 hat Vladimir Sementsov-Ogievskiy geschrieben: > 15.04.2021 18:22, Kevin Wolf wrote: > > In order to avoid RMW cycles, is_allocated_sectors() treats zeroed areas > > like non-zero data if the end of the checked area isn't aligned. This > > can improve the efficiency of the

Re: [RFC PATCH 2/2] qemu-img convert: Fix sparseness detection

2021-04-20 Thread Vladimir Sementsov-Ogievskiy
15.04.2021 18:22, Kevin Wolf wrote: In order to avoid RMW cycles, is_allocated_sectors() treats zeroed areas like non-zero data if the end of the checked area isn't aligned. This can improve the efficiency of the conversion and was introduced in commit 8dcd3c9b91a. However, it comes with a

[RFC PATCH 2/2] qemu-img convert: Fix sparseness detection

2021-04-15 Thread Kevin Wolf
In order to avoid RMW cycles, is_allocated_sectors() treats zeroed areas like non-zero data if the end of the checked area isn't aligned. This can improve the efficiency of the conversion and was introduced in commit 8dcd3c9b91a. However, it comes with a correctness problem: qemu-img convert is