• A
    block: add a 'blockdev-snapshot' QMP command · 43de7e2d
    Alberto Garcia 提交于
    One of the limitations of the 'blockdev-snapshot-sync' command is that
    it does not allow passing BlockdevOptions to the newly created
    snapshots, so they are always opened using the default values.
    
    Extending the command to allow passing options is not a practical
    solution because there is overlap between those options and some of
    the existing parameters of the command.
    
    This patch introduces a new 'blockdev-snapshot' command with a simpler
    interface: it just takes two references to existing block devices that
    will be used as the source and target for the snapshot.
    
    Since the main difference between the two commands is that one of them
    creates and opens the target image, while the other uses an already
    opened one, the bulk of the implementation is shared.
    Signed-off-by: NAlberto Garcia <berto@igalia.com>
    Reviewed-by: NMax Reitz <mreitz@redhat.com>
    Signed-off-by: NKevin Wolf <kwolf@redhat.com>
    43de7e2d
qmp-commands.hx 122.7 KB