diff options
author | Kevin Wolf <kwolf@redhat.com> | 2017-03-09 11:45:39 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2017-03-13 12:49:33 +0100 |
commit | 9e7e940c3dc9d9643065dc0f64eb51efca954e54 (patch) | |
tree | 9d50592e69bd0ad5377bf07cc36989a95133ac22 /block.c | |
parent | 91965658664cc5da412049de0dd309d50ac09917 (diff) |
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 <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'block.c')
-rw-r--r-- | block.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); } |