• K
    qemu-img rebase · 3e85c6fd
    Kevin Wolf 提交于
    This adds a rebase subcommand to qemu-img which allows to change the backing
    file of an image.
    
    In default mode, both the current and the new backing file need to exist, and
    after the rebase, the COW image is guaranteed to have the same guest visible
    content as before. To achieve this, old and new backing file are compared and,
    if necessary, data is copied from the old backing file into the COW image.
    
    With -u an unsafe mode is enabled that doesn't require the backing files to
    exist. It merely changes the backing file reference in the COW image. This is
    useful for renaming or moving the backing file. The user is responsible to make
    sure that the new backing file has no changes compared to the old one, or
    corruption may occur.
    Signed-off-by: NKevin Wolf <kwolf@redhat.com>
    Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
    3e85c6fd
qemu-img.c 36.3 KB