block: Get full backing filename from string
commit0a82855a1a819f3de49781d42728f485fbd64284
authorMax Reitz <mreitz@redhat.com>
Wed, 26 Nov 2014 16:20:25 +0000 (26 17:20 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 13 Jan 2015 11:47:56 +0000 (13 11:47 +0000)
treefc6f93a121984366f6e8e1bdb44e4e6813c17eca
parenta97ceca578e69f9b050a2400e1979a068b0654eb
block: Get full backing filename from string

Introduce bdrv_get_full_backing_filename_from_filename(), a function
which takes the name of the backed file and a potentially relative
backing filename to produce the full (absolute) backing filename.

Use this function from bdrv_get_full_backing_filename().

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c
include/block/block.h