Skip to content
  • Kevin Wolf's avatar
    block: Enable BDRV_O_SNAPSHOT with driver-specific options · 9fd3171a
    Kevin Wolf authored
    
    
    In the case of snapshot=on, don't rely on the backing file path in the
    temporary image any more, but override the backing file with the given
    set of options. This way, block drivers that don't use a file name can
    be accessed with snapshot=on, for example:
    
        -drive file.driver=nbd,file.host=localhost,snapshot=on
    
    Which becomes internally something like:
    
        file.filename=/tmp/vl.AWQZCu,backing.file.driver=nbd,backing.file.host=localhost
    
    Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
    9fd3171a