summaryrefslogtreecommitdiffstats
path: root/linux-user/user-internals.h
diff options
context:
space:
mode:
authorAlberto Faria2022-10-29 14:20:31 +0200
committerStefan Hajnoczi2022-10-31 19:33:15 +0100
commit4c8f4fda0504564580f5c0a37e2d4b32ff17d2a1 (patch)
tree57f53b90e5d542bd6644b7a003f1336ac255bafc /linux-user/user-internals.h
parentblock/blkio: Add virtio-blk-vfio-pci BlockDriver (diff)
downloadqemu-4c8f4fda0504564580f5c0a37e2d4b32ff17d2a1.tar.gz
qemu-4c8f4fda0504564580f5c0a37e2d4b32ff17d2a1.tar.xz
qemu-4c8f4fda0504564580f5c0a37e2d4b32ff17d2a1.zip
block/blkio: Tolerate device size changes
Some libblkio drivers may be able to work with regular files (e.g., io_uring) or otherwise resizable devices. Conservatively set BlockDriver::has_variable_length to true to ensure bdrv_nb_sectors() always gives up-to-date results. Also implement BlockDriver::bdrv_co_truncate for the case where no preallocation is needed and the device already has a size compatible with what was requested. Signed-off-by: Alberto Faria <afaria@redhat.com> Message-id: 20221029122031.975273-1-afaria@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'linux-user/user-internals.h')
0 files changed, 0 insertions, 0 deletions