From: Kevin Wolf Date: Thu, 9 Mar 2017 10:45:39 +0000 (+0100) Subject: block: Refresh filename after changing backing file X-Git-Tag: v2.9.0-rc2~59^2~2 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=9e7e940c3dc9d9643065dc0f64eb51efca954e54;p=mirror_qemu.git block: Refresh filename after changing backing file 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 Reviewed-by: Eric Blake --- diff --git a/block.c b/block.c index dd38e7139f..cb5737073f 100644 --- a/block.c +++ b/block.c @@ -1938,6 +1938,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); }