commit: Implement .bdrv_refresh_filename
commitdcbf37ce41a52698550f8f8b2f14b5e6fee22d2d
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)
treef69a1fb502186e34897e27a99d5410edc471cb07
parentfd4a6493bb7c5f9bea0e7d9de09ccc0d573e3789
commit: Implement .bdrv_refresh_filename

We want query-block to return the right filename, even if a commit job
put a bdrv_commit_top on top of the actual image format driver. Let
bdrv_commit_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/commit.c