1QA output created by 206 2 3=== Successful image creation (defaults) === 4 5Testing: 6QMP_VERSION 7{"return": {}} 8{"return": {}} 9{"return": {}} 10{"return": {}} 11{"return": {}} 12{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false}} 13 14image: TEST_DIR/t.IMGFMT 15file format: IMGFMT 16virtual size: 128M (134217728 bytes) 17cluster_size: 65536 18Format specific information: 19 compat: 1.1 20 lazy refcounts: false 21 refcount bits: 16 22 corrupt: false 23 24=== Successful image creation (inline blockdev-add, explicit defaults) === 25 26Testing: 27QMP_VERSION 28{"return": {}} 29{"return": {}} 30{"return": {}} 31{"return": {}} 32{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false}} 33 34image: TEST_DIR/t.IMGFMT 35file format: IMGFMT 36virtual size: 64M (67108864 bytes) 37cluster_size: 65536 38Format specific information: 39 compat: 1.1 40 lazy refcounts: false 41 refcount bits: 16 42 corrupt: false 43 44=== Successful image creation (v3 non-default options) === 45 46Testing: 47QMP_VERSION 48{"return": {}} 49{"return": {}} 50{"return": {}} 51{"return": {}} 52{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false}} 53 54image: TEST_DIR/t.IMGFMT 55file format: IMGFMT 56virtual size: 32M (33554432 bytes) 57cluster_size: 2097152 58Format specific information: 59 compat: 1.1 60 lazy refcounts: true 61 refcount bits: 1 62 corrupt: false 63 64=== Successful image creation (v2 non-default options) === 65 66Testing: 67QMP_VERSION 68{"return": {}} 69{"return": {}} 70{"return": {}} 71{"return": {}} 72{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false}} 73 74image: TEST_DIR/t.IMGFMT 75file format: IMGFMT 76virtual size: 32M (33554432 bytes) 77cluster_size: 512 78backing file: TEST_DIR/t.IMGFMT.base 79backing file format: IMGFMT 80Format specific information: 81 compat: 0.10 82 refcount bits: 16 83 84=== Successful image creation (encrypted) === 85 86Testing: -object secret,id=keysec0,data=foo 87QMP_VERSION 88{"return": {}} 89{"return": {}} 90{"return": {}} 91{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false}} 92 93image: TEST_DIR/t.IMGFMT 94file format: IMGFMT 95virtual size: 32M (33554432 bytes) 96Format specific information: 97 compat: 1.1 98 lazy refcounts: false 99 refcount bits: 16 100 encrypt: 101 ivgen alg: plain64 102 hash alg: sha1 103 cipher alg: twofish-128 104 uuid: 00000000-0000-0000-0000-000000000000 105 format: luks 106 cipher mode: ctr 107 slots: 108 [0]: 109 active: true 110 iters: 1024 111 key offset: 4096 112 stripes: 4000 113 [1]: 114 active: false 115 key offset: 69632 116 [2]: 117 active: false 118 key offset: 135168 119 [3]: 120 active: false 121 key offset: 200704 122 [4]: 123 active: false 124 key offset: 266240 125 [5]: 126 active: false 127 key offset: 331776 128 [6]: 129 active: false 130 key offset: 397312 131 [7]: 132 active: false 133 key offset: 462848 134 payload offset: 528384 135 master key iters: 1024 136 corrupt: false 137 138=== Invalid BlockdevRef === 139 140Testing: 141QMP_VERSION 142{"return": {}} 143{"error": {"class": "GenericError", "desc": "Cannot find device=this doesn't exist nor node_name=this doesn't exist"}} 144{"return": {}} 145{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false}} 146 147 148=== Invalid sizes === 149 150Testing: -blockdev driver=file,filename=TEST_DIR/t.IMGFMT,node-name=node0 151QMP_VERSION 152{"return": {}} 153{"error": {"class": "GenericError", "desc": "Image size must be a multiple of 512 bytes"}} 154{"error": {"class": "GenericError", "desc": "Could not resize image: Image size cannot be negative"}} 155{"error": {"class": "GenericError", "desc": "Could not resize image: Image size cannot be negative"}} 156{"error": {"class": "GenericError", "desc": "Could not resize image: Failed to grow the L1 table: File too large"}} 157{"return": {}} 158{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false}} 159 160 161=== Invalid version === 162 163Testing: -blockdev driver=file,filename=TEST_DIR/t.IMGFMT,node-name=node0 164QMP_VERSION 165{"return": {}} 166{"error": {"class": "GenericError", "desc": "Invalid parameter 'v1'"}} 167{"error": {"class": "GenericError", "desc": "Lazy refcounts only supported with compatibility level 1.1 and above (use version=v3 or greater)"}} 168{"error": {"class": "GenericError", "desc": "Different refcount widths than 16 bits require compatibility level 1.1 or above (use version=v3 or greater)"}} 169{"return": {}} 170{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false}} 171 172 173=== Invalid backing file options === 174 175Testing: -blockdev driver=file,filename=TEST_DIR/t.IMGFMT,node-name=node0 176QMP_VERSION 177{"return": {}} 178{"error": {"class": "GenericError", "desc": "Backing file and preallocation cannot be used at the same time"}} 179{"error": {"class": "GenericError", "desc": "Backing format cannot be used without backing file"}} 180{"return": {}} 181{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false}} 182 183 184=== Invalid cluster size === 185 186Testing: -blockdev driver=file,filename=TEST_DIR/t.IMGFMT,node-name=node0 187QMP_VERSION 188{"return": {}} 189{"error": {"class": "GenericError", "desc": "Cluster size must be a power of two between 512 and 2048k"}} 190{"error": {"class": "GenericError", "desc": "Cluster size must be a power of two between 512 and 2048k"}} 191{"error": {"class": "GenericError", "desc": "Cluster size must be a power of two between 512 and 2048k"}} 192{"error": {"class": "GenericError", "desc": "Cluster size must be a power of two between 512 and 2048k"}} 193{"error": {"class": "GenericError", "desc": "Could not resize image: Failed to grow the L1 table: File too large"}} 194{"return": {}} 195{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false}} 196 197 198=== Invalid refcount width === 199 200Testing: -blockdev driver=file,filename=TEST_DIR/t.IMGFMT,node-name=node0 201QMP_VERSION 202{"return": {}} 203{"error": {"class": "GenericError", "desc": "Refcount width must be a power of two and may not exceed 64 bits"}} 204{"error": {"class": "GenericError", "desc": "Refcount width must be a power of two and may not exceed 64 bits"}} 205{"error": {"class": "GenericError", "desc": "Refcount width must be a power of two and may not exceed 64 bits"}} 206{"return": {}} 207{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false}} 208 209*** done 210