mirror: Implement .bdrv_refresh_filename
commitfd4a6493bb7c5f9bea0e7d9de09ccc0d573e3789
authorKevin Wolf <kwolf@redhat.com>
Thu, 9 Mar 2017 10:49:16 +0000 (9 11:49 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 13 Mar 2017 11:49:33 +0000 (13 12:49 +0100)
treef2b400f0a8e4ffcaf72ea43b80ae2cfd1f737040
parent9e7e940c3dc9d9643065dc0f64eb51efca954e54
mirror: Implement .bdrv_refresh_filename

We want query-block to return the right filename, even if a mirror job
put a bdrv_mirror_top on top of the actual image format driver. Let
bdrv_mirror_top.bdrv_refresh_filename get the filename from its backing
file.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
block/mirror.c