Kevin Wolf | 39218a7 | 2018-02-07 16:42:44 +0100 | [diff] [blame] | 1 | === Successful image creation (defaults) === |
| 2 | |
Max Reitz | 8a57a4b | 2019-02-10 15:57:36 +0100 | [diff] [blame] | 3 | {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "file", "filename": "TEST_DIR/PID-t.qcow2", "size": 0}}} |
Max Reitz | e21b5f3 | 2018-10-22 14:53:07 +0100 | [diff] [blame] | 4 | {"return": {}} |
| 5 | {"execute": "job-dismiss", "arguments": {"id": "job0"}} |
| 6 | {"return": {}} |
Kevin Wolf | 39218a7 | 2018-02-07 16:42:44 +0100 | [diff] [blame] | 7 | |
Max Reitz | 8a57a4b | 2019-02-10 15:57:36 +0100 | [diff] [blame] | 8 | {"execute": "blockdev-add", "arguments": {"driver": "file", "filename": "TEST_DIR/PID-t.qcow2", "node-name": "imgfile"}} |
Max Reitz | e21b5f3 | 2018-10-22 14:53:07 +0100 | [diff] [blame] | 9 | {"return": {}} |
Max Reitz | 8a57a4b | 2019-02-10 15:57:36 +0100 | [diff] [blame] | 10 | {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "qcow2", "file": "imgfile", "size": 134217728}}} |
Max Reitz | e21b5f3 | 2018-10-22 14:53:07 +0100 | [diff] [blame] | 11 | {"return": {}} |
| 12 | {"execute": "job-dismiss", "arguments": {"id": "job0"}} |
| 13 | {"return": {}} |
Kevin Wolf | 4de110f | 2018-05-23 18:19:00 +0200 | [diff] [blame] | 14 | |
| 15 | image: TEST_IMG |
Kevin Wolf | 39218a7 | 2018-02-07 16:42:44 +0100 | [diff] [blame] | 16 | file format: IMGFMT |
Eric Blake | de38b50 | 2019-04-17 12:11:01 -0500 | [diff] [blame] | 17 | virtual size: 128 MiB (134217728 bytes) |
Kevin Wolf | 39218a7 | 2018-02-07 16:42:44 +0100 | [diff] [blame] | 18 | cluster_size: 65536 |
| 19 | Format specific information: |
| 20 | compat: 1.1 |
| 21 | lazy refcounts: false |
| 22 | refcount bits: 16 |
| 23 | corrupt: false |
| 24 | |
| 25 | === Successful image creation (inline blockdev-add, explicit defaults) === |
| 26 | |
Max Reitz | 8a57a4b | 2019-02-10 15:57:36 +0100 | [diff] [blame] | 27 | {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "file", "filename": "TEST_DIR/PID-t.qcow2", "nocow": false, "preallocation": "off", "size": 0}}} |
Max Reitz | e21b5f3 | 2018-10-22 14:53:07 +0100 | [diff] [blame] | 28 | {"return": {}} |
| 29 | {"execute": "job-dismiss", "arguments": {"id": "job0"}} |
| 30 | {"return": {}} |
Kevin Wolf | 39218a7 | 2018-02-07 16:42:44 +0100 | [diff] [blame] | 31 | |
Max Reitz | 8a57a4b | 2019-02-10 15:57:36 +0100 | [diff] [blame] | 32 | {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"cluster-size": 65536, "driver": "qcow2", "file": {"driver": "file", "filename": "TEST_DIR/PID-t.qcow2"}, "lazy-refcounts": false, "preallocation": "off", "refcount-bits": 16, "size": 67108864, "version": "v3"}}} |
Max Reitz | e21b5f3 | 2018-10-22 14:53:07 +0100 | [diff] [blame] | 33 | {"return": {}} |
| 34 | {"execute": "job-dismiss", "arguments": {"id": "job0"}} |
| 35 | {"return": {}} |
Kevin Wolf | 4de110f | 2018-05-23 18:19:00 +0200 | [diff] [blame] | 36 | |
| 37 | image: TEST_IMG |
Kevin Wolf | 39218a7 | 2018-02-07 16:42:44 +0100 | [diff] [blame] | 38 | file format: IMGFMT |
Eric Blake | de38b50 | 2019-04-17 12:11:01 -0500 | [diff] [blame] | 39 | virtual size: 64 MiB (67108864 bytes) |
Kevin Wolf | 39218a7 | 2018-02-07 16:42:44 +0100 | [diff] [blame] | 40 | cluster_size: 65536 |
| 41 | Format specific information: |
| 42 | compat: 1.1 |
| 43 | lazy refcounts: false |
| 44 | refcount bits: 16 |
| 45 | corrupt: false |
| 46 | |
| 47 | === Successful image creation (v3 non-default options) === |
| 48 | |
Max Reitz | 8a57a4b | 2019-02-10 15:57:36 +0100 | [diff] [blame] | 49 | {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "file", "filename": "TEST_DIR/PID-t.qcow2", "nocow": true, "preallocation": "falloc", "size": 0}}} |
Max Reitz | e21b5f3 | 2018-10-22 14:53:07 +0100 | [diff] [blame] | 50 | {"return": {}} |
| 51 | {"execute": "job-dismiss", "arguments": {"id": "job0"}} |
| 52 | {"return": {}} |
Kevin Wolf | 39218a7 | 2018-02-07 16:42:44 +0100 | [diff] [blame] | 53 | |
Max Reitz | 8a57a4b | 2019-02-10 15:57:36 +0100 | [diff] [blame] | 54 | {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"cluster-size": 2097152, "driver": "qcow2", "file": {"driver": "file", "filename": "TEST_DIR/PID-t.qcow2"}, "lazy-refcounts": true, "preallocation": "metadata", "refcount-bits": 1, "size": 33554432, "version": "v3"}}} |
Max Reitz | e21b5f3 | 2018-10-22 14:53:07 +0100 | [diff] [blame] | 55 | {"return": {}} |
| 56 | {"execute": "job-dismiss", "arguments": {"id": "job0"}} |
| 57 | {"return": {}} |
Kevin Wolf | 4de110f | 2018-05-23 18:19:00 +0200 | [diff] [blame] | 58 | |
| 59 | image: TEST_IMG |
Kevin Wolf | 39218a7 | 2018-02-07 16:42:44 +0100 | [diff] [blame] | 60 | file format: IMGFMT |
Eric Blake | de38b50 | 2019-04-17 12:11:01 -0500 | [diff] [blame] | 61 | virtual size: 32 MiB (33554432 bytes) |
Kevin Wolf | 39218a7 | 2018-02-07 16:42:44 +0100 | [diff] [blame] | 62 | cluster_size: 2097152 |
| 63 | Format specific information: |
| 64 | compat: 1.1 |
| 65 | lazy refcounts: true |
| 66 | refcount bits: 1 |
| 67 | corrupt: false |
| 68 | |
| 69 | === Successful image creation (v2 non-default options) === |
| 70 | |
Max Reitz | 8a57a4b | 2019-02-10 15:57:36 +0100 | [diff] [blame] | 71 | {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "file", "filename": "TEST_DIR/PID-t.qcow2", "size": 0}}} |
Max Reitz | e21b5f3 | 2018-10-22 14:53:07 +0100 | [diff] [blame] | 72 | {"return": {}} |
| 73 | {"execute": "job-dismiss", "arguments": {"id": "job0"}} |
| 74 | {"return": {}} |
Kevin Wolf | 39218a7 | 2018-02-07 16:42:44 +0100 | [diff] [blame] | 75 | |
Max Reitz | 8a57a4b | 2019-02-10 15:57:36 +0100 | [diff] [blame] | 76 | {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"backing-file": "TEST_DIR/PID-t.qcow2.base", "backing-fmt": "qcow2", "cluster-size": 512, "driver": "qcow2", "file": {"driver": "file", "filename": "TEST_DIR/PID-t.qcow2"}, "size": 33554432, "version": "v2"}}} |
Max Reitz | e21b5f3 | 2018-10-22 14:53:07 +0100 | [diff] [blame] | 77 | {"return": {}} |
| 78 | {"execute": "job-dismiss", "arguments": {"id": "job0"}} |
| 79 | {"return": {}} |
Kevin Wolf | 4de110f | 2018-05-23 18:19:00 +0200 | [diff] [blame] | 80 | |
| 81 | image: TEST_IMG |
Kevin Wolf | 39218a7 | 2018-02-07 16:42:44 +0100 | [diff] [blame] | 82 | file format: IMGFMT |
Eric Blake | de38b50 | 2019-04-17 12:11:01 -0500 | [diff] [blame] | 83 | virtual size: 32 MiB (33554432 bytes) |
Kevin Wolf | 39218a7 | 2018-02-07 16:42:44 +0100 | [diff] [blame] | 84 | cluster_size: 512 |
Kevin Wolf | 4de110f | 2018-05-23 18:19:00 +0200 | [diff] [blame] | 85 | backing file: TEST_IMG.base |
Kevin Wolf | 39218a7 | 2018-02-07 16:42:44 +0100 | [diff] [blame] | 86 | backing file format: IMGFMT |
| 87 | Format specific information: |
| 88 | compat: 0.10 |
| 89 | refcount bits: 16 |
| 90 | |
| 91 | === Successful image creation (encrypted) === |
| 92 | |
Max Reitz | 8a57a4b | 2019-02-10 15:57:36 +0100 | [diff] [blame] | 93 | {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "qcow2", "encrypt": {"cipher-alg": "twofish-128", "cipher-mode": "ctr", "format": "luks", "hash-alg": "sha1", "iter-time": 10, "ivgen-alg": "plain64", "ivgen-hash-alg": "md5", "key-secret": "keysec0"}, "file": {"driver": "file", "filename": "TEST_DIR/PID-t.qcow2"}, "size": 33554432}}} |
Max Reitz | e21b5f3 | 2018-10-22 14:53:07 +0100 | [diff] [blame] | 94 | {"return": {}} |
| 95 | {"execute": "job-dismiss", "arguments": {"id": "job0"}} |
| 96 | {"return": {}} |
Kevin Wolf | 39218a7 | 2018-02-07 16:42:44 +0100 | [diff] [blame] | 97 | |
Kevin Wolf | 4de110f | 2018-05-23 18:19:00 +0200 | [diff] [blame] | 98 | image: TEST_IMG |
Kevin Wolf | 39218a7 | 2018-02-07 16:42:44 +0100 | [diff] [blame] | 99 | file format: IMGFMT |
Eric Blake | de38b50 | 2019-04-17 12:11:01 -0500 | [diff] [blame] | 100 | virtual size: 32 MiB (33554432 bytes) |
Kevin Wolf | 4de110f | 2018-05-23 18:19:00 +0200 | [diff] [blame] | 101 | encrypted: yes |
| 102 | cluster_size: 65536 |
Kevin Wolf | 39218a7 | 2018-02-07 16:42:44 +0100 | [diff] [blame] | 103 | Format specific information: |
| 104 | compat: 1.1 |
| 105 | lazy refcounts: false |
| 106 | refcount bits: 16 |
| 107 | encrypt: |
| 108 | ivgen alg: plain64 |
| 109 | hash alg: sha1 |
| 110 | cipher alg: twofish-128 |
Kevin Wolf | 4de110f | 2018-05-23 18:19:00 +0200 | [diff] [blame] | 111 | uuid: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX |
Kevin Wolf | 39218a7 | 2018-02-07 16:42:44 +0100 | [diff] [blame] | 112 | format: luks |
| 113 | cipher mode: ctr |
| 114 | slots: |
| 115 | [0]: |
| 116 | active: true |
Kevin Wolf | 4de110f | 2018-05-23 18:19:00 +0200 | [diff] [blame] | 117 | iters: XXX |
Kevin Wolf | 39218a7 | 2018-02-07 16:42:44 +0100 | [diff] [blame] | 118 | key offset: 4096 |
| 119 | stripes: 4000 |
| 120 | [1]: |
| 121 | active: false |
| 122 | key offset: 69632 |
| 123 | [2]: |
| 124 | active: false |
| 125 | key offset: 135168 |
| 126 | [3]: |
| 127 | active: false |
| 128 | key offset: 200704 |
| 129 | [4]: |
| 130 | active: false |
| 131 | key offset: 266240 |
| 132 | [5]: |
| 133 | active: false |
| 134 | key offset: 331776 |
| 135 | [6]: |
| 136 | active: false |
| 137 | key offset: 397312 |
| 138 | [7]: |
| 139 | active: false |
| 140 | key offset: 462848 |
| 141 | payload offset: 528384 |
Kevin Wolf | 4de110f | 2018-05-23 18:19:00 +0200 | [diff] [blame] | 142 | master key iters: XXX |
Kevin Wolf | 39218a7 | 2018-02-07 16:42:44 +0100 | [diff] [blame] | 143 | corrupt: false |
| 144 | |
| 145 | === Invalid BlockdevRef === |
| 146 | |
Max Reitz | 8a57a4b | 2019-02-10 15:57:36 +0100 | [diff] [blame] | 147 | {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "qcow2", "file": "this doesn't exist", "size": 33554432}}} |
Max Reitz | e21b5f3 | 2018-10-22 14:53:07 +0100 | [diff] [blame] | 148 | {"return": {}} |
Kevin Wolf | 4de110f | 2018-05-23 18:19:00 +0200 | [diff] [blame] | 149 | Job failed: Cannot find device=this doesn't exist nor node_name=this doesn't exist |
Max Reitz | e21b5f3 | 2018-10-22 14:53:07 +0100 | [diff] [blame] | 150 | {"execute": "job-dismiss", "arguments": {"id": "job0"}} |
| 151 | {"return": {}} |
Kevin Wolf | 39218a7 | 2018-02-07 16:42:44 +0100 | [diff] [blame] | 152 | |
| 153 | === Invalid sizes === |
Max Reitz | 8a57a4b | 2019-02-10 15:57:36 +0100 | [diff] [blame] | 154 | {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "qcow2", "file": "node0", "size": 1234}}} |
Max Reitz | e21b5f3 | 2018-10-22 14:53:07 +0100 | [diff] [blame] | 155 | {"return": {}} |
Kevin Wolf | 4de110f | 2018-05-23 18:19:00 +0200 | [diff] [blame] | 156 | Job failed: Image size must be a multiple of 512 bytes |
Max Reitz | e21b5f3 | 2018-10-22 14:53:07 +0100 | [diff] [blame] | 157 | {"execute": "job-dismiss", "arguments": {"id": "job0"}} |
| 158 | {"return": {}} |
Kevin Wolf | 39218a7 | 2018-02-07 16:42:44 +0100 | [diff] [blame] | 159 | |
Max Reitz | 8a57a4b | 2019-02-10 15:57:36 +0100 | [diff] [blame] | 160 | {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "qcow2", "file": "node0", "size": 18446744073709551104}}} |
Max Reitz | e21b5f3 | 2018-10-22 14:53:07 +0100 | [diff] [blame] | 161 | {"return": {}} |
Kevin Wolf | 4de110f | 2018-05-23 18:19:00 +0200 | [diff] [blame] | 162 | Job failed: Could not resize image: Image size cannot be negative |
Max Reitz | e21b5f3 | 2018-10-22 14:53:07 +0100 | [diff] [blame] | 163 | {"execute": "job-dismiss", "arguments": {"id": "job0"}} |
| 164 | {"return": {}} |
Kevin Wolf | 39218a7 | 2018-02-07 16:42:44 +0100 | [diff] [blame] | 165 | |
Max Reitz | 8a57a4b | 2019-02-10 15:57:36 +0100 | [diff] [blame] | 166 | {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "qcow2", "file": "node0", "size": 9223372036854775808}}} |
Max Reitz | e21b5f3 | 2018-10-22 14:53:07 +0100 | [diff] [blame] | 167 | {"return": {}} |
Kevin Wolf | 4de110f | 2018-05-23 18:19:00 +0200 | [diff] [blame] | 168 | Job failed: Could not resize image: Image size cannot be negative |
Max Reitz | e21b5f3 | 2018-10-22 14:53:07 +0100 | [diff] [blame] | 169 | {"execute": "job-dismiss", "arguments": {"id": "job0"}} |
| 170 | {"return": {}} |
Kevin Wolf | 4de110f | 2018-05-23 18:19:00 +0200 | [diff] [blame] | 171 | |
Max Reitz | 8a57a4b | 2019-02-10 15:57:36 +0100 | [diff] [blame] | 172 | {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "qcow2", "file": "node0", "size": 9223372036854775296}}} |
Max Reitz | e21b5f3 | 2018-10-22 14:53:07 +0100 | [diff] [blame] | 173 | {"return": {}} |
Kevin Wolf | 4de110f | 2018-05-23 18:19:00 +0200 | [diff] [blame] | 174 | Job failed: Could not resize image: Failed to grow the L1 table: File too large |
Max Reitz | e21b5f3 | 2018-10-22 14:53:07 +0100 | [diff] [blame] | 175 | {"execute": "job-dismiss", "arguments": {"id": "job0"}} |
| 176 | {"return": {}} |
Kevin Wolf | 39218a7 | 2018-02-07 16:42:44 +0100 | [diff] [blame] | 177 | |
| 178 | === Invalid version === |
Max Reitz | 8a57a4b | 2019-02-10 15:57:36 +0100 | [diff] [blame] | 179 | {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "qcow2", "file": "node0", "size": 67108864, "version": "v1"}}} |
Max Reitz | e21b5f3 | 2018-10-22 14:53:07 +0100 | [diff] [blame] | 180 | {"error": {"class": "GenericError", "desc": "Invalid parameter 'v1'"}} |
Kevin Wolf | 39218a7 | 2018-02-07 16:42:44 +0100 | [diff] [blame] | 181 | |
Max Reitz | 8a57a4b | 2019-02-10 15:57:36 +0100 | [diff] [blame] | 182 | {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "qcow2", "file": "node0", "lazy-refcounts": true, "size": 67108864, "version": "v2"}}} |
Max Reitz | e21b5f3 | 2018-10-22 14:53:07 +0100 | [diff] [blame] | 183 | {"return": {}} |
Kevin Wolf | 4de110f | 2018-05-23 18:19:00 +0200 | [diff] [blame] | 184 | Job failed: Lazy refcounts only supported with compatibility level 1.1 and above (use version=v3 or greater) |
Max Reitz | e21b5f3 | 2018-10-22 14:53:07 +0100 | [diff] [blame] | 185 | {"execute": "job-dismiss", "arguments": {"id": "job0"}} |
| 186 | {"return": {}} |
Kevin Wolf | 39218a7 | 2018-02-07 16:42:44 +0100 | [diff] [blame] | 187 | |
Max Reitz | 8a57a4b | 2019-02-10 15:57:36 +0100 | [diff] [blame] | 188 | {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "qcow2", "file": "node0", "refcount-bits": 8, "size": 67108864, "version": "v2"}}} |
Max Reitz | e21b5f3 | 2018-10-22 14:53:07 +0100 | [diff] [blame] | 189 | {"return": {}} |
Kevin Wolf | 4de110f | 2018-05-23 18:19:00 +0200 | [diff] [blame] | 190 | Job failed: Different refcount widths than 16 bits require compatibility level 1.1 or above (use version=v3 or greater) |
Max Reitz | e21b5f3 | 2018-10-22 14:53:07 +0100 | [diff] [blame] | 191 | {"execute": "job-dismiss", "arguments": {"id": "job0"}} |
| 192 | {"return": {}} |
Kevin Wolf | 39218a7 | 2018-02-07 16:42:44 +0100 | [diff] [blame] | 193 | |
| 194 | === Invalid backing file options === |
Max Reitz | 8a57a4b | 2019-02-10 15:57:36 +0100 | [diff] [blame] | 195 | {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"backing-file": "/dev/null", "driver": "qcow2", "file": "node0", "preallocation": "full", "size": 67108864}}} |
Max Reitz | e21b5f3 | 2018-10-22 14:53:07 +0100 | [diff] [blame] | 196 | {"return": {}} |
Kevin Wolf | 4de110f | 2018-05-23 18:19:00 +0200 | [diff] [blame] | 197 | Job failed: Backing file and preallocation cannot be used at the same time |
Max Reitz | e21b5f3 | 2018-10-22 14:53:07 +0100 | [diff] [blame] | 198 | {"execute": "job-dismiss", "arguments": {"id": "job0"}} |
| 199 | {"return": {}} |
Kevin Wolf | 39218a7 | 2018-02-07 16:42:44 +0100 | [diff] [blame] | 200 | |
Max Reitz | 8a57a4b | 2019-02-10 15:57:36 +0100 | [diff] [blame] | 201 | {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"backing-fmt": "qcow2", "driver": "qcow2", "file": "node0", "size": 67108864}}} |
Max Reitz | e21b5f3 | 2018-10-22 14:53:07 +0100 | [diff] [blame] | 202 | {"return": {}} |
Kevin Wolf | 4de110f | 2018-05-23 18:19:00 +0200 | [diff] [blame] | 203 | Job failed: Backing format cannot be used without backing file |
Max Reitz | e21b5f3 | 2018-10-22 14:53:07 +0100 | [diff] [blame] | 204 | {"execute": "job-dismiss", "arguments": {"id": "job0"}} |
| 205 | {"return": {}} |
Kevin Wolf | 39218a7 | 2018-02-07 16:42:44 +0100 | [diff] [blame] | 206 | |
| 207 | === Invalid cluster size === |
Max Reitz | 8a57a4b | 2019-02-10 15:57:36 +0100 | [diff] [blame] | 208 | {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"cluster-size": 1234, "driver": "qcow2", "file": "node0", "size": 67108864}}} |
Max Reitz | e21b5f3 | 2018-10-22 14:53:07 +0100 | [diff] [blame] | 209 | {"return": {}} |
Kevin Wolf | 4de110f | 2018-05-23 18:19:00 +0200 | [diff] [blame] | 210 | Job failed: Cluster size must be a power of two between 512 and 2048k |
Max Reitz | e21b5f3 | 2018-10-22 14:53:07 +0100 | [diff] [blame] | 211 | {"execute": "job-dismiss", "arguments": {"id": "job0"}} |
| 212 | {"return": {}} |
Kevin Wolf | 39218a7 | 2018-02-07 16:42:44 +0100 | [diff] [blame] | 213 | |
Max Reitz | 8a57a4b | 2019-02-10 15:57:36 +0100 | [diff] [blame] | 214 | {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"cluster-size": 128, "driver": "qcow2", "file": "node0", "size": 67108864}}} |
Max Reitz | e21b5f3 | 2018-10-22 14:53:07 +0100 | [diff] [blame] | 215 | {"return": {}} |
Kevin Wolf | 4de110f | 2018-05-23 18:19:00 +0200 | [diff] [blame] | 216 | Job failed: Cluster size must be a power of two between 512 and 2048k |
Max Reitz | e21b5f3 | 2018-10-22 14:53:07 +0100 | [diff] [blame] | 217 | {"execute": "job-dismiss", "arguments": {"id": "job0"}} |
| 218 | {"return": {}} |
Kevin Wolf | 39218a7 | 2018-02-07 16:42:44 +0100 | [diff] [blame] | 219 | |
Max Reitz | 8a57a4b | 2019-02-10 15:57:36 +0100 | [diff] [blame] | 220 | {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"cluster-size": 4194304, "driver": "qcow2", "file": "node0", "size": 67108864}}} |
Max Reitz | e21b5f3 | 2018-10-22 14:53:07 +0100 | [diff] [blame] | 221 | {"return": {}} |
Kevin Wolf | 4de110f | 2018-05-23 18:19:00 +0200 | [diff] [blame] | 222 | Job failed: Cluster size must be a power of two between 512 and 2048k |
Max Reitz | e21b5f3 | 2018-10-22 14:53:07 +0100 | [diff] [blame] | 223 | {"execute": "job-dismiss", "arguments": {"id": "job0"}} |
| 224 | {"return": {}} |
Kevin Wolf | 4de110f | 2018-05-23 18:19:00 +0200 | [diff] [blame] | 225 | |
Max Reitz | 8a57a4b | 2019-02-10 15:57:36 +0100 | [diff] [blame] | 226 | {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"cluster-size": 0, "driver": "qcow2", "file": "node0", "size": 67108864}}} |
Max Reitz | e21b5f3 | 2018-10-22 14:53:07 +0100 | [diff] [blame] | 227 | {"return": {}} |
Kevin Wolf | 4de110f | 2018-05-23 18:19:00 +0200 | [diff] [blame] | 228 | Job failed: Cluster size must be a power of two between 512 and 2048k |
Max Reitz | e21b5f3 | 2018-10-22 14:53:07 +0100 | [diff] [blame] | 229 | {"execute": "job-dismiss", "arguments": {"id": "job0"}} |
| 230 | {"return": {}} |
Kevin Wolf | 4de110f | 2018-05-23 18:19:00 +0200 | [diff] [blame] | 231 | |
Max Reitz | 8a57a4b | 2019-02-10 15:57:36 +0100 | [diff] [blame] | 232 | {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"cluster-size": 512, "driver": "qcow2", "file": "node0", "size": 281474976710656}}} |
Max Reitz | e21b5f3 | 2018-10-22 14:53:07 +0100 | [diff] [blame] | 233 | {"return": {}} |
Kevin Wolf | 4de110f | 2018-05-23 18:19:00 +0200 | [diff] [blame] | 234 | Job failed: Could not resize image: Failed to grow the L1 table: File too large |
Max Reitz | e21b5f3 | 2018-10-22 14:53:07 +0100 | [diff] [blame] | 235 | {"execute": "job-dismiss", "arguments": {"id": "job0"}} |
| 236 | {"return": {}} |
Kevin Wolf | 39218a7 | 2018-02-07 16:42:44 +0100 | [diff] [blame] | 237 | |
| 238 | === Invalid refcount width === |
Max Reitz | 8a57a4b | 2019-02-10 15:57:36 +0100 | [diff] [blame] | 239 | {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "qcow2", "file": "node0", "refcount-bits": 128, "size": 67108864}}} |
Max Reitz | e21b5f3 | 2018-10-22 14:53:07 +0100 | [diff] [blame] | 240 | {"return": {}} |
Kevin Wolf | 4de110f | 2018-05-23 18:19:00 +0200 | [diff] [blame] | 241 | Job failed: Refcount width must be a power of two and may not exceed 64 bits |
Max Reitz | e21b5f3 | 2018-10-22 14:53:07 +0100 | [diff] [blame] | 242 | {"execute": "job-dismiss", "arguments": {"id": "job0"}} |
| 243 | {"return": {}} |
Kevin Wolf | 39218a7 | 2018-02-07 16:42:44 +0100 | [diff] [blame] | 244 | |
Max Reitz | 8a57a4b | 2019-02-10 15:57:36 +0100 | [diff] [blame] | 245 | {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "qcow2", "file": "node0", "refcount-bits": 0, "size": 67108864}}} |
Max Reitz | e21b5f3 | 2018-10-22 14:53:07 +0100 | [diff] [blame] | 246 | {"return": {}} |
Kevin Wolf | 4de110f | 2018-05-23 18:19:00 +0200 | [diff] [blame] | 247 | Job failed: Refcount width must be a power of two and may not exceed 64 bits |
Max Reitz | e21b5f3 | 2018-10-22 14:53:07 +0100 | [diff] [blame] | 248 | {"execute": "job-dismiss", "arguments": {"id": "job0"}} |
| 249 | {"return": {}} |
Kevin Wolf | 39218a7 | 2018-02-07 16:42:44 +0100 | [diff] [blame] | 250 | |
Max Reitz | 8a57a4b | 2019-02-10 15:57:36 +0100 | [diff] [blame] | 251 | {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "qcow2", "file": "node0", "refcount-bits": 7, "size": 67108864}}} |
Max Reitz | e21b5f3 | 2018-10-22 14:53:07 +0100 | [diff] [blame] | 252 | {"return": {}} |
Kevin Wolf | 4de110f | 2018-05-23 18:19:00 +0200 | [diff] [blame] | 253 | Job failed: Refcount width must be a power of two and may not exceed 64 bits |
Max Reitz | e21b5f3 | 2018-10-22 14:53:07 +0100 | [diff] [blame] | 254 | {"execute": "job-dismiss", "arguments": {"id": "job0"}} |
| 255 | {"return": {}} |
Kevin Wolf | 4de110f | 2018-05-23 18:19:00 +0200 | [diff] [blame] | 256 | |