diff options
| author | Paolo Bonzini | 2013-09-04 19:00:21 +0200 |
|---|---|---|
| committer | Stefan Hajnoczi | 2013-09-06 15:25:08 +0200 |
| commit | df2a6f29a5019707d69f6eeb30cf792841cae5aa (patch) | |
| tree | 196a71f34402aae6cfded4d54d65df548b24483a /include | |
| parent | cow: do not call bdrv_co_is_allocated (diff) | |
| download | qemu-df2a6f29a5019707d69f6eeb30cf792841cae5aa.tar.gz qemu-df2a6f29a5019707d69f6eeb30cf792841cae5aa.tar.xz qemu-df2a6f29a5019707d69f6eeb30cf792841cae5aa.zip | |
block: keep bs->total_sectors up to date even for growable block devices
If a BlockDriverState is growable, after every write we need to
check if bs->total_sectors might have changed. With this change,
bdrv_getlength does not need anymore a system call.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
