Message ID | 1489059542-14232-5-git-send-email-kwolf@redhat.com |
---|---|
State | New |
Headers | show |
diff --git a/block.c b/block.c index 756d607..516cefe 100644 --- a/block.c +++ b/block.c @@ -1933,6 +1933,8 @@ void bdrv_set_backing_hd(BlockDriverState *bs, BlockDriverState *backing_hd, bdrv_unref(backing_hd); } + bdrv_refresh_filename(bs); + out: bdrv_refresh_limits(bs, NULL); }
In bdrv_open_inherit(), the filename is refreshed after opening the backing file, but we neglected to do the same when the backing file changes later. Signed-off-by: Kevin Wolf <kwolf@redhat.com> --- block.c | 2 ++ 1 file changed, 2 insertions(+)