diff options
author | Kevin Wolf <kwolf@redhat.com> | 2013-12-11 20:14:09 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2014-01-24 17:40:01 +0100 |
commit | 355ef4ac95a7a47d5c7201ccd910056a100d2fdf (patch) | |
tree | 45ebc3bfbffb57d48c82c3e3b6aa730552c338fe /block/stream.c | |
parent | 466ad822deef3a03757d505218a52993c5d56b5d (diff) | |
download | qemu-355ef4ac95a7a47d5c7201ccd910056a100d2fdf.zip |
block: Update BlockLimits when they might have changed
When reopening with different flags, or when backing files disappear
from the chain, the limits may change. Make sure they get updated in
these cases.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Wenchao Xia <xiawenc@linux.vnet.ibm.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: BenoƮt Canet <benoit@irqsave.net>
Diffstat (limited to 'block/stream.c')
-rw-r--r-- | block/stream.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/block/stream.c b/block/stream.c index 46bec7d379..dd0b4ac3d2 100644 --- a/block/stream.c +++ b/block/stream.c @@ -75,6 +75,8 @@ static void close_unused_images(BlockDriverState *top, BlockDriverState *base, unused->backing_hd = NULL; bdrv_unref(unused); } + + bdrv_refresh_limits(top); } static void coroutine_fn stream_run(void *opaque) |