|
From: | Hanna Czenczek |
Subject: | Re: [PATCH v2 4/8] qemu-img: add chunk size parameter to compare_buffers() |
Date: | Tue, 19 Sep 2023 10:32:34 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 |
On 15.09.23 18:20, Andrey Drobyshev wrote:
Add @chsize param to the function which, if non-zero, would represent the chunk size to be used for comparison. If it's zero, then BDRV_SECTOR_SIZE is used as default chunk size, which is the previous behaviour. In particular, we're going to use this param in img_rebase() to make the write requests aligned to a predefined alignment value. Signed-off-by: Andrey Drobyshev <andrey.drobyshev@virtuozzo.com> --- qemu-img.c | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-)
With the comment fix Eric has suggested: Reviewed-by: Hanna Czenczek <hreitz@redhat.com>
[Prev in Thread] | Current Thread | [Next in Thread] |