Skip to content
  • Max Reitz's avatar
    qemu-img: Allow source cache mode specification · 40055951
    Max Reitz authored
    
    
    Many qemu-img subcommands only read the source file(s) once. For these
    use cases, a full write-back cache is unnecessary and mainly clutters
    host cache memory. Though this is generally no concern as cache memory
    is freely available and can be scaled by the host OS, it may become a
    concern with thin provisioning.
    
    For these cases, it makes sense to allow users to freely specify the
    source cache mode (e.g. use no cache at all).
    
    This commit adds a new switch (-T) for the qemu-img subcommands check,
    compare, convert and rebase to specify the cache to be used for source
    images (the backing file in case of rebase).
    
    Signed-off-by: default avatarMax Reitz <mreitz@redhat.com>
    Reviewed-by: default avatarEric Blake <eblake@redhat.com>
    Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
    40055951