aboutsummaryrefslogtreecommitdiff
path: root/scripts/qapi/commands.py
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2023-04-07 17:32:58 +0200
committerKevin Wolf <kwolf@redhat.com>2023-04-11 16:38:59 +0200
commit439cc330c58c6973a5c73dab36c334e29607d47b (patch)
tree5c697f70351b29ad39b7cfa13600d3759a60d72b /scripts/qapi/commands.py
parent6188088f72fbfc419ba6cbc129479ee0b96c7436 (diff)
downloadqemu-439cc330c58c6973a5c73dab36c334e29607d47b.zip
qemu-439cc330c58c6973a5c73dab36c334e29607d47b.tar.gz
qemu-439cc330c58c6973a5c73dab36c334e29607d47b.tar.bz2
block: refresh bs->total_sectors on reopen
After reopening a BlockDriverState, it's possible that the size of the underlying file has changed. This for example is covered by test 171. Right now, this is handled by the raw driver's has_variable_length = true setting. Since this will be removed by the next patch, handle it on reopen instead, together with the existing bdrv_refresh_limits. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20230407153303.391121-4-pbonzini@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'scripts/qapi/commands.py')
0 files changed, 0 insertions, 0 deletions