1QA output created by 267 2 3=== No block devices at all === 4 5Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 6Testing: 7QEMU X.Y.Z monitor - type 'help' for more information 8(qemu) savevm snap0 9Error: No block device can accept snapshots 10(qemu) info snapshots 11No available block device supports snapshots 12(qemu) loadvm snap0 13Error: No block device supports snapshots 14(qemu) quit 15 16 17=== -drive if=none === 18 19Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 20Testing: -drive driver=file,file=TEST_DIR/t.IMGFMT,if=none 21QEMU X.Y.Z monitor - type 'help' for more information 22(qemu) savevm snap0 23Error: Device 'none0' is writable but does not support snapshots 24(qemu) info snapshots 25No available block device supports snapshots 26(qemu) loadvm snap0 27Error: Device 'none0' is writable but does not support snapshots 28(qemu) quit 29 30Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 31Testing: -drive driver=IMGFMT,file=TEST_DIR/t.IMGFMT,if=none 32QEMU X.Y.Z monitor - type 'help' for more information 33(qemu) savevm snap0 34(qemu) info snapshots 35List of snapshots present on all disks: 36ID TAG VM SIZE DATE VM CLOCK 37-- snap0 SIZE yyyy-mm-dd hh:mm:ss 00:00:00.000 38(qemu) loadvm snap0 39(qemu) quit 40 41Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 42Testing: -drive driver=IMGFMT,file=TEST_DIR/t.IMGFMT,if=none -device virtio-blk,drive=none0 43QEMU X.Y.Z monitor - type 'help' for more information 44(qemu) savevm snap0 45(qemu) info snapshots 46List of snapshots present on all disks: 47ID TAG VM SIZE DATE VM CLOCK 48-- snap0 SIZE yyyy-mm-dd hh:mm:ss 00:00:00.000 49(qemu) loadvm snap0 50(qemu) quit 51 52 53=== -drive if=virtio === 54 55Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 56Testing: -drive driver=file,file=TEST_DIR/t.IMGFMT,if=virtio 57QEMU X.Y.Z monitor - type 'help' for more information 58(qemu) savevm snap0 59Error: Device 'virtio0' is writable but does not support snapshots 60(qemu) info snapshots 61No available block device supports snapshots 62(qemu) loadvm snap0 63Error: Device 'virtio0' is writable but does not support snapshots 64(qemu) quit 65 66Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 67Testing: -drive driver=IMGFMT,file=TEST_DIR/t.IMGFMT,if=virtio 68QEMU X.Y.Z monitor - type 'help' for more information 69(qemu) savevm snap0 70(qemu) info snapshots 71List of snapshots present on all disks: 72ID TAG VM SIZE DATE VM CLOCK 73-- snap0 SIZE yyyy-mm-dd hh:mm:ss 00:00:00.000 74(qemu) loadvm snap0 75(qemu) quit 76 77 78=== Simple -blockdev === 79 80Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 81Testing: -blockdev driver=file,filename=TEST_DIR/t.IMGFMT,node-name=file 82QEMU X.Y.Z monitor - type 'help' for more information 83(qemu) savevm snap0 84Error: Device 'file' is writable but does not support snapshots 85(qemu) info snapshots 86No available block device supports snapshots 87(qemu) loadvm snap0 88Error: Device 'file' is writable but does not support snapshots 89(qemu) quit 90 91Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 92Testing: -blockdev driver=file,filename=TEST_DIR/t.IMGFMT,node-name=file -blockdev driver=IMGFMT,file=file,node-name=fmt 93QEMU X.Y.Z monitor - type 'help' for more information 94(qemu) savevm snap0 95(qemu) info snapshots 96List of snapshots present on all disks: 97ID TAG VM SIZE DATE VM CLOCK 98-- snap0 SIZE yyyy-mm-dd hh:mm:ss 00:00:00.000 99(qemu) loadvm snap0 100(qemu) quit 101 102Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 103Testing: -blockdev driver=file,filename=TEST_DIR/t.IMGFMT,node-name=file -blockdev driver=raw,file=file,node-name=raw -blockdev driver=IMGFMT,file=raw,node-name=fmt 104QEMU X.Y.Z monitor - type 'help' for more information 105(qemu) savevm snap0 106(qemu) info snapshots 107List of snapshots present on all disks: 108ID TAG VM SIZE DATE VM CLOCK 109-- snap0 SIZE yyyy-mm-dd hh:mm:ss 00:00:00.000 110(qemu) loadvm snap0 111(qemu) quit 112 113 114=== -blockdev with a filter on top === 115 116Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 117Testing: -blockdev driver=file,filename=TEST_DIR/t.IMGFMT,node-name=file -blockdev driver=IMGFMT,file=file,node-name=fmt -blockdev driver=copy-on-read,file=fmt,node-name=filter 118QEMU X.Y.Z monitor - type 'help' for more information 119(qemu) savevm snap0 120(qemu) info snapshots 121List of snapshots present on all disks: 122ID TAG VM SIZE DATE VM CLOCK 123-- snap0 SIZE yyyy-mm-dd hh:mm:ss 00:00:00.000 124(qemu) loadvm snap0 125(qemu) quit 126 127 128=== -blockdev with a backing file === 129 130Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=134217728 131Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=IMGFMT 132Testing: -blockdev driver=file,filename=TEST_DIR/t.IMGFMT.base,node-name=backing-file -blockdev driver=file,filename=TEST_DIR/t.IMGFMT,node-name=file -blockdev driver=IMGFMT,file=file,backing=backing-file,node-name=fmt 133QEMU X.Y.Z monitor - type 'help' for more information 134(qemu) savevm snap0 135(qemu) info snapshots 136List of snapshots present on all disks: 137ID TAG VM SIZE DATE VM CLOCK 138-- snap0 SIZE yyyy-mm-dd hh:mm:ss 00:00:00.000 139(qemu) loadvm snap0 140(qemu) quit 141 142Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=IMGFMT 143Testing: -blockdev driver=file,filename=TEST_DIR/t.IMGFMT.base,node-name=backing-file -blockdev driver=IMGFMT,file=backing-file,node-name=backing-fmt -blockdev driver=file,filename=TEST_DIR/t.IMGFMT,node-name=file -blockdev driver=IMGFMT,file=file,backing=backing-fmt,node-name=fmt 144QEMU X.Y.Z monitor - type 'help' for more information 145(qemu) savevm snap0 146(qemu) info snapshots 147List of snapshots present on all disks: 148ID TAG VM SIZE DATE VM CLOCK 149-- snap0 SIZE yyyy-mm-dd hh:mm:ss 00:00:00.000 150(qemu) loadvm snap0 151(qemu) quit 152 153Internal snapshots on overlay: 154Snapshot list: 155ID TAG VM SIZE DATE VM CLOCK 1561 snap0 SIZE yyyy-mm-dd hh:mm:ss 00:00:00.000 157Internal snapshots on backing file: 158 159=== -blockdev with NBD server on the backing file === 160 161Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=IMGFMT 162Testing: -blockdev driver=file,filename=TEST_DIR/t.IMGFMT.base,node-name=backing-file -blockdev driver=IMGFMT,file=backing-file,node-name=backing-fmt -blockdev driver=file,filename=TEST_DIR/t.IMGFMT,node-name=file -blockdev driver=IMGFMT,file=file,backing=backing-fmt,node-name=fmt 163QEMU X.Y.Z monitor - type 'help' for more information 164(qemu) nbd_server_start unix:SOCK_DIR/nbd 165(qemu) nbd_server_add -w backing-fmt 166(qemu) savevm snap0 167(qemu) info snapshots 168List of snapshots present on all disks: 169ID TAG VM SIZE DATE VM CLOCK 170-- snap0 SIZE yyyy-mm-dd hh:mm:ss 00:00:00.000 171(qemu) loadvm snap0 172(qemu) quit 173 174Internal snapshots on overlay: 175Snapshot list: 176ID TAG VM SIZE DATE VM CLOCK 1771 snap0 SIZE yyyy-mm-dd hh:mm:ss 00:00:00.000 178Internal snapshots on backing file: 179Snapshot list: 180ID TAG VM SIZE DATE VM CLOCK 1811 snap0 SIZE yyyy-mm-dd hh:mm:ss 00:00:00.000 182*** done 183