block: qemu-iotests 085 - live snapshots tests
commit4089f7c6a0d91020ca60ce8300784c93dd9ddcbe
authorJeff Cody <jcody@redhat.com>
Sat, 1 Mar 2014 02:08:11 +0000 (28 21:08 -0500)
committerKevin Wolf <kwolf@redhat.com>
Fri, 7 Mar 2014 10:36:12 +0000 (7 11:36 +0100)
treee1d829cd1959dead80ca44f02e62889dd7e54588
parent2c02f88780aa611d669f73b7677aeadc1211de7e
block: qemu-iotests 085 - live snapshots tests

This adds tests for live snapshots, both through the single
snapshot command, and the transaction group snapshot command.

The snapshots are done through the QMP interface, using the
following commands for snapshots:

Single snapshot:
{ 'execute': 'blockdev-snapshot-sync', 'arguments':
             { 'device': 'virtio0', 'snapshot-file':'...',
               'format': 'qcow2' } }"

Group snapshot:
{ 'execute': 'transaction', 'arguments':
              {'actions': [
                  { 'type': 'blockdev-snapshot-sync', 'data' :
                    { 'device': 'virtio0', 'snapshot-file': '...' } },
                  { 'type': 'blockdev-snapshot-sync', 'data' :
                    { 'device': 'virtio1', 'snapshot-file': '...' } } ]
             } }

Signed-off-by: Jeff Cody <jcody@redhat.com>
Reviewed-by: Benoit Canet <benoit@irqsave.net>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/085 [new file with mode: 0755]
tests/qemu-iotests/085.out [new file with mode: 0644]
tests/qemu-iotests/group