Re: [PATCH 09/12] block-backend: convert blk_co_copy_range to int64_t bytes

2021-10-06 Thread Eric Blake
On Wed, Oct 06, 2021 at 03:17:15PM +0200, Vladimir Sementsov-Ogievskiy wrote: > Function is updated so that parameter type becomes wider, so all > callers should be OK with it. > > Look at blk_co_copy_range() itself: bytes passed only to > blk_check_byte_request() and bdrv_co_copy_range(), which a

[PATCH 09/12] block-backend: convert blk_co_copy_range to int64_t bytes

2021-10-06 Thread Vladimir Sementsov-Ogievskiy
Function is updated so that parameter type becomes wider, so all callers should be OK with it. Look at blk_co_copy_range() itself: bytes passed only to blk_check_byte_request() and bdrv_co_copy_range(), which already has int64_t bytes parameter, so we are OK. Note that requests exceeding INT_MAX