]> git.proxmox.com Git - mirror_qemu.git/commit - block/file-posix.c
block/file-posix: Do not force-cap *pnum
authorHanna Reitz <hreitz@redhat.com>
Thu, 12 Aug 2021 08:41:46 +0000 (10:41 +0200)
committerHanna Reitz <hreitz@redhat.com>
Wed, 15 Sep 2021 13:54:07 +0000 (15:54 +0200)
commit869e7ee827ebf9392ed100119cc7e21a81311536
treee4e86a0a773cdc782ba0f569ba8eccc19da03fda
parent5a1cfd2150596bddbf429f81097cbd8b861515c0
block/file-posix: Do not force-cap *pnum

bdrv_co_block_status() does it for us, we do not need to do it here.

The advantage of not capping *pnum is that bdrv_co_block_status() can
cache larger data regions than requested by its caller.

Signed-off-by: Hanna Reitz <hreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20210812084148.14458-5-hreitz@redhat.com>
block/file-posix.c