diff options
author | Kevin Wolf <kwolf@redhat.com> | 2010-01-12 12:55:17 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-01-13 17:14:15 -0600 |
commit | 756e6736a12a46330d9532d5f861ba15b38886d8 (patch) | |
tree | b8b36409fef483b90fe9a79384aab38e3ea07dd2 /block.h | |
parent | b783e409bf17b92f4af8dc5d6bd040d0092f33e0 (diff) |
block: Add bdrv_change_backing_file
Introduce the functions needed to change the backing file of an image. The
function is implemented for qcow2.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'block.h')
-rw-r--r-- | block.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -83,6 +83,8 @@ int64_t bdrv_getlength(BlockDriverState *bs); void bdrv_get_geometry(BlockDriverState *bs, uint64_t *nb_sectors_ptr); void bdrv_guess_geometry(BlockDriverState *bs, int *pcyls, int *pheads, int *psecs); int bdrv_commit(BlockDriverState *bs); +int bdrv_change_backing_file(BlockDriverState *bs, + const char *backing_file, const char *backing_fmt); void bdrv_register(BlockDriver *bdrv); /* async block I/O */ |