Kevin Wolf | a9b4339 | 2013-09-18 16:47:41 +0200 | [diff] [blame] | 1 | QA output created by 067 |
Fam Zheng | 7486458 | 2014-12-09 15:38:03 +0800 | [diff] [blame] | 2 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 |
Kevin Wolf | a9b4339 | 2013-09-18 16:47:41 +0200 | [diff] [blame] | 3 | |
| 4 | === -drive/-device and device_del === |
| 5 | |
Bo Tu | 2711fd3 | 2015-07-03 15:28:47 +0800 | [diff] [blame] | 6 | Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,if=none,id=disk -device virtio-blk,drive=disk,id=virtio0 |
Max Reitz | 2389eea | 2014-11-17 13:31:06 +0100 | [diff] [blame] | 7 | { |
| 8 | QMP_VERSION |
| 9 | } |
| 10 | { |
| 11 | "return": { |
| 12 | } |
| 13 | } |
| 14 | { |
| 15 | "return": [ |
| 16 | { |
| 17 | "io-status": "ok", |
| 18 | "device": "disk", |
| 19 | "locked": false, |
| 20 | "removable": false, |
| 21 | "inserted": { |
| 22 | "iops_rd": 0, |
| 23 | "detect_zeroes": "off", |
| 24 | "image": { |
| 25 | "virtual-size": 134217728, |
| 26 | "filename": "TEST_DIR/t.qcow2", |
| 27 | "cluster-size": 65536, |
| 28 | "format": "qcow2", |
| 29 | "actual-size": SIZE, |
| 30 | "format-specific": { |
| 31 | "type": "qcow2", |
| 32 | "data": { |
| 33 | "compat": "1.1", |
| 34 | "lazy-refcounts": false, |
Max Reitz | 0709c5a | 2015-02-10 15:28:44 -0500 | [diff] [blame] | 35 | "refcount-bits": 16, |
Max Reitz | 2389eea | 2014-11-17 13:31:06 +0100 | [diff] [blame] | 36 | "corrupt": false |
| 37 | } |
| 38 | }, |
| 39 | "dirty-flag": false |
| 40 | }, |
| 41 | "iops_wr": 0, |
| 42 | "ro": false, |
Jeff Cody | 15489c7 | 2015-10-12 19:36:50 -0400 | [diff] [blame] | 43 | "node-name": "NODE_NAME", |
Max Reitz | 2389eea | 2014-11-17 13:31:06 +0100 | [diff] [blame] | 44 | "backing_file_depth": 0, |
| 45 | "drv": "qcow2", |
| 46 | "iops": 0, |
| 47 | "bps_wr": 0, |
Francesco Romani | e246211 | 2015-01-12 14:11:13 +0100 | [diff] [blame] | 48 | "write_threshold": 0, |
Max Reitz | 2389eea | 2014-11-17 13:31:06 +0100 | [diff] [blame] | 49 | "encrypted": false, |
| 50 | "bps": 0, |
| 51 | "bps_rd": 0, |
Kevin Wolf | 9e193c5 | 2014-05-22 13:28:45 +0200 | [diff] [blame] | 52 | "cache": { |
| 53 | "no-flush": false, |
| 54 | "direct": false, |
| 55 | "writeback": true |
| 56 | }, |
Max Reitz | 2389eea | 2014-11-17 13:31:06 +0100 | [diff] [blame] | 57 | "file": "TEST_DIR/t.qcow2", |
| 58 | "encryption_key_missing": false |
| 59 | }, |
| 60 | "type": "unknown" |
Max Reitz | 2389eea | 2014-11-17 13:31:06 +0100 | [diff] [blame] | 61 | } |
| 62 | ] |
| 63 | } |
| 64 | { |
| 65 | "return": { |
| 66 | } |
| 67 | } |
| 68 | { |
| 69 | "return": { |
| 70 | } |
| 71 | } |
| 72 | { |
| 73 | "timestamp": { |
| 74 | "seconds": TIMESTAMP, |
| 75 | "microseconds": TIMESTAMP |
| 76 | }, |
| 77 | "event": "DEVICE_DELETED", |
| 78 | "data": { |
| 79 | "path": "/machine/peripheral/virtio0/virtio-backend" |
| 80 | } |
| 81 | } |
| 82 | { |
| 83 | "timestamp": { |
| 84 | "seconds": TIMESTAMP, |
| 85 | "microseconds": TIMESTAMP |
| 86 | }, |
| 87 | "event": "DEVICE_DELETED", |
| 88 | "data": { |
| 89 | "device": "virtio0", |
| 90 | "path": "/machine/peripheral/virtio0" |
| 91 | } |
| 92 | } |
| 93 | { |
| 94 | "timestamp": { |
| 95 | "seconds": TIMESTAMP, |
| 96 | "microseconds": TIMESTAMP |
| 97 | }, |
| 98 | "event": "RESET" |
| 99 | } |
| 100 | { |
| 101 | "return": [ |
Max Reitz | 2389eea | 2014-11-17 13:31:06 +0100 | [diff] [blame] | 102 | ] |
| 103 | } |
| 104 | { |
| 105 | "return": { |
| 106 | } |
| 107 | } |
| 108 | { |
| 109 | "timestamp": { |
| 110 | "seconds": TIMESTAMP, |
| 111 | "microseconds": TIMESTAMP |
| 112 | }, |
| 113 | "event": "SHUTDOWN" |
| 114 | } |
Kevin Wolf | a9b4339 | 2013-09-18 16:47:41 +0200 | [diff] [blame] | 115 | |
| 116 | |
| 117 | === -drive/device_add and device_del === |
| 118 | |
| 119 | Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,if=none,id=disk |
Max Reitz | 2389eea | 2014-11-17 13:31:06 +0100 | [diff] [blame] | 120 | { |
| 121 | QMP_VERSION |
| 122 | } |
| 123 | { |
| 124 | "return": { |
| 125 | } |
| 126 | } |
| 127 | { |
| 128 | "return": [ |
| 129 | { |
| 130 | "device": "disk", |
| 131 | "locked": false, |
| 132 | "removable": true, |
| 133 | "inserted": { |
| 134 | "iops_rd": 0, |
| 135 | "detect_zeroes": "off", |
| 136 | "image": { |
| 137 | "virtual-size": 134217728, |
| 138 | "filename": "TEST_DIR/t.qcow2", |
| 139 | "cluster-size": 65536, |
| 140 | "format": "qcow2", |
| 141 | "actual-size": SIZE, |
| 142 | "format-specific": { |
| 143 | "type": "qcow2", |
| 144 | "data": { |
| 145 | "compat": "1.1", |
| 146 | "lazy-refcounts": false, |
Max Reitz | 0709c5a | 2015-02-10 15:28:44 -0500 | [diff] [blame] | 147 | "refcount-bits": 16, |
Max Reitz | 2389eea | 2014-11-17 13:31:06 +0100 | [diff] [blame] | 148 | "corrupt": false |
| 149 | } |
| 150 | }, |
| 151 | "dirty-flag": false |
| 152 | }, |
| 153 | "iops_wr": 0, |
| 154 | "ro": false, |
Jeff Cody | 15489c7 | 2015-10-12 19:36:50 -0400 | [diff] [blame] | 155 | "node-name": "NODE_NAME", |
Max Reitz | 2389eea | 2014-11-17 13:31:06 +0100 | [diff] [blame] | 156 | "backing_file_depth": 0, |
| 157 | "drv": "qcow2", |
| 158 | "iops": 0, |
| 159 | "bps_wr": 0, |
Francesco Romani | e246211 | 2015-01-12 14:11:13 +0100 | [diff] [blame] | 160 | "write_threshold": 0, |
Max Reitz | 2389eea | 2014-11-17 13:31:06 +0100 | [diff] [blame] | 161 | "encrypted": false, |
| 162 | "bps": 0, |
| 163 | "bps_rd": 0, |
Kevin Wolf | 9e193c5 | 2014-05-22 13:28:45 +0200 | [diff] [blame] | 164 | "cache": { |
| 165 | "no-flush": false, |
| 166 | "direct": false, |
| 167 | "writeback": true |
| 168 | }, |
Max Reitz | 2389eea | 2014-11-17 13:31:06 +0100 | [diff] [blame] | 169 | "file": "TEST_DIR/t.qcow2", |
| 170 | "encryption_key_missing": false |
| 171 | }, |
Max Reitz | 2389eea | 2014-11-17 13:31:06 +0100 | [diff] [blame] | 172 | "type": "unknown" |
Max Reitz | 2389eea | 2014-11-17 13:31:06 +0100 | [diff] [blame] | 173 | } |
| 174 | ] |
| 175 | } |
| 176 | { |
| 177 | "return": { |
| 178 | } |
| 179 | } |
| 180 | { |
| 181 | "return": { |
| 182 | } |
| 183 | } |
| 184 | { |
| 185 | "return": { |
| 186 | } |
| 187 | } |
| 188 | { |
| 189 | "timestamp": { |
| 190 | "seconds": TIMESTAMP, |
| 191 | "microseconds": TIMESTAMP |
| 192 | }, |
| 193 | "event": "DEVICE_DELETED", |
| 194 | "data": { |
| 195 | "path": "/machine/peripheral/virtio0/virtio-backend" |
| 196 | } |
| 197 | } |
| 198 | { |
| 199 | "timestamp": { |
| 200 | "seconds": TIMESTAMP, |
| 201 | "microseconds": TIMESTAMP |
| 202 | }, |
| 203 | "event": "DEVICE_DELETED", |
| 204 | "data": { |
| 205 | "device": "virtio0", |
| 206 | "path": "/machine/peripheral/virtio0" |
| 207 | } |
| 208 | } |
| 209 | { |
| 210 | "timestamp": { |
| 211 | "seconds": TIMESTAMP, |
| 212 | "microseconds": TIMESTAMP |
| 213 | }, |
| 214 | "event": "RESET" |
| 215 | } |
| 216 | { |
| 217 | "return": [ |
Max Reitz | 2389eea | 2014-11-17 13:31:06 +0100 | [diff] [blame] | 218 | ] |
| 219 | } |
| 220 | { |
| 221 | "return": { |
| 222 | } |
| 223 | } |
| 224 | { |
| 225 | "timestamp": { |
| 226 | "seconds": TIMESTAMP, |
| 227 | "microseconds": TIMESTAMP |
| 228 | }, |
| 229 | "event": "SHUTDOWN" |
| 230 | } |
Kevin Wolf | a9b4339 | 2013-09-18 16:47:41 +0200 | [diff] [blame] | 231 | |
| 232 | |
| 233 | === drive_add/device_add and device_del === |
| 234 | |
| 235 | Testing: |
Max Reitz | 2389eea | 2014-11-17 13:31:06 +0100 | [diff] [blame] | 236 | { |
| 237 | QMP_VERSION |
| 238 | } |
| 239 | { |
| 240 | "return": { |
| 241 | } |
| 242 | } |
| 243 | { |
| 244 | "return": "OK\r\n" |
| 245 | } |
| 246 | { |
| 247 | "return": [ |
| 248 | { |
Max Reitz | 2389eea | 2014-11-17 13:31:06 +0100 | [diff] [blame] | 249 | "device": "disk", |
| 250 | "locked": false, |
| 251 | "removable": true, |
| 252 | "inserted": { |
| 253 | "iops_rd": 0, |
| 254 | "detect_zeroes": "off", |
| 255 | "image": { |
| 256 | "virtual-size": 134217728, |
| 257 | "filename": "TEST_DIR/t.qcow2", |
| 258 | "cluster-size": 65536, |
| 259 | "format": "qcow2", |
| 260 | "actual-size": SIZE, |
| 261 | "format-specific": { |
| 262 | "type": "qcow2", |
| 263 | "data": { |
| 264 | "compat": "1.1", |
| 265 | "lazy-refcounts": false, |
Max Reitz | 0709c5a | 2015-02-10 15:28:44 -0500 | [diff] [blame] | 266 | "refcount-bits": 16, |
Max Reitz | 2389eea | 2014-11-17 13:31:06 +0100 | [diff] [blame] | 267 | "corrupt": false |
| 268 | } |
| 269 | }, |
| 270 | "dirty-flag": false |
| 271 | }, |
| 272 | "iops_wr": 0, |
| 273 | "ro": false, |
Jeff Cody | 15489c7 | 2015-10-12 19:36:50 -0400 | [diff] [blame] | 274 | "node-name": "NODE_NAME", |
Max Reitz | 2389eea | 2014-11-17 13:31:06 +0100 | [diff] [blame] | 275 | "backing_file_depth": 0, |
| 276 | "drv": "qcow2", |
| 277 | "iops": 0, |
| 278 | "bps_wr": 0, |
Francesco Romani | e246211 | 2015-01-12 14:11:13 +0100 | [diff] [blame] | 279 | "write_threshold": 0, |
Max Reitz | 2389eea | 2014-11-17 13:31:06 +0100 | [diff] [blame] | 280 | "encrypted": false, |
| 281 | "bps": 0, |
| 282 | "bps_rd": 0, |
Kevin Wolf | 9e193c5 | 2014-05-22 13:28:45 +0200 | [diff] [blame] | 283 | "cache": { |
| 284 | "no-flush": false, |
| 285 | "direct": false, |
| 286 | "writeback": true |
| 287 | }, |
Max Reitz | 2389eea | 2014-11-17 13:31:06 +0100 | [diff] [blame] | 288 | "file": "TEST_DIR/t.qcow2", |
| 289 | "encryption_key_missing": false |
| 290 | }, |
Max Reitz | 2389eea | 2014-11-17 13:31:06 +0100 | [diff] [blame] | 291 | "type": "unknown" |
| 292 | } |
| 293 | ] |
| 294 | } |
| 295 | { |
| 296 | "return": { |
| 297 | } |
| 298 | } |
| 299 | { |
| 300 | "return": { |
| 301 | } |
| 302 | } |
| 303 | { |
| 304 | "return": { |
| 305 | } |
| 306 | } |
| 307 | { |
| 308 | "timestamp": { |
| 309 | "seconds": TIMESTAMP, |
| 310 | "microseconds": TIMESTAMP |
| 311 | }, |
| 312 | "event": "DEVICE_DELETED", |
| 313 | "data": { |
| 314 | "path": "/machine/peripheral/virtio0/virtio-backend" |
| 315 | } |
| 316 | } |
| 317 | { |
| 318 | "timestamp": { |
| 319 | "seconds": TIMESTAMP, |
| 320 | "microseconds": TIMESTAMP |
| 321 | }, |
| 322 | "event": "DEVICE_DELETED", |
| 323 | "data": { |
| 324 | "device": "virtio0", |
| 325 | "path": "/machine/peripheral/virtio0" |
| 326 | } |
| 327 | } |
| 328 | { |
| 329 | "timestamp": { |
| 330 | "seconds": TIMESTAMP, |
| 331 | "microseconds": TIMESTAMP |
| 332 | }, |
| 333 | "event": "RESET" |
| 334 | } |
| 335 | { |
| 336 | "return": [ |
Max Reitz | 2389eea | 2014-11-17 13:31:06 +0100 | [diff] [blame] | 337 | ] |
| 338 | } |
| 339 | { |
| 340 | "return": { |
| 341 | } |
| 342 | } |
| 343 | { |
| 344 | "timestamp": { |
| 345 | "seconds": TIMESTAMP, |
| 346 | "microseconds": TIMESTAMP |
| 347 | }, |
| 348 | "event": "SHUTDOWN" |
| 349 | } |
Kevin Wolf | a9b4339 | 2013-09-18 16:47:41 +0200 | [diff] [blame] | 350 | |
| 351 | |
| 352 | === blockdev_add/device_add and device_del === |
| 353 | |
| 354 | Testing: |
Max Reitz | 2389eea | 2014-11-17 13:31:06 +0100 | [diff] [blame] | 355 | { |
| 356 | QMP_VERSION |
| 357 | } |
| 358 | { |
| 359 | "return": { |
| 360 | } |
| 361 | } |
| 362 | { |
| 363 | "return": { |
| 364 | } |
| 365 | } |
| 366 | { |
| 367 | "return": [ |
| 368 | { |
Max Reitz | 2389eea | 2014-11-17 13:31:06 +0100 | [diff] [blame] | 369 | "device": "disk", |
| 370 | "locked": false, |
| 371 | "removable": true, |
| 372 | "inserted": { |
| 373 | "iops_rd": 0, |
| 374 | "detect_zeroes": "off", |
| 375 | "image": { |
| 376 | "virtual-size": 134217728, |
| 377 | "filename": "TEST_DIR/t.qcow2", |
| 378 | "cluster-size": 65536, |
| 379 | "format": "qcow2", |
| 380 | "actual-size": SIZE, |
| 381 | "format-specific": { |
| 382 | "type": "qcow2", |
| 383 | "data": { |
| 384 | "compat": "1.1", |
| 385 | "lazy-refcounts": false, |
Max Reitz | 0709c5a | 2015-02-10 15:28:44 -0500 | [diff] [blame] | 386 | "refcount-bits": 16, |
Max Reitz | 2389eea | 2014-11-17 13:31:06 +0100 | [diff] [blame] | 387 | "corrupt": false |
| 388 | } |
| 389 | }, |
| 390 | "dirty-flag": false |
| 391 | }, |
| 392 | "iops_wr": 0, |
| 393 | "ro": false, |
Jeff Cody | 15489c7 | 2015-10-12 19:36:50 -0400 | [diff] [blame] | 394 | "node-name": "NODE_NAME", |
Max Reitz | 2389eea | 2014-11-17 13:31:06 +0100 | [diff] [blame] | 395 | "backing_file_depth": 0, |
| 396 | "drv": "qcow2", |
| 397 | "iops": 0, |
| 398 | "bps_wr": 0, |
Francesco Romani | e246211 | 2015-01-12 14:11:13 +0100 | [diff] [blame] | 399 | "write_threshold": 0, |
Max Reitz | 2389eea | 2014-11-17 13:31:06 +0100 | [diff] [blame] | 400 | "encrypted": false, |
| 401 | "bps": 0, |
| 402 | "bps_rd": 0, |
Kevin Wolf | 9e193c5 | 2014-05-22 13:28:45 +0200 | [diff] [blame] | 403 | "cache": { |
| 404 | "no-flush": false, |
| 405 | "direct": false, |
| 406 | "writeback": true |
| 407 | }, |
Max Reitz | 2389eea | 2014-11-17 13:31:06 +0100 | [diff] [blame] | 408 | "file": "TEST_DIR/t.qcow2", |
| 409 | "encryption_key_missing": false |
| 410 | }, |
Max Reitz | 2389eea | 2014-11-17 13:31:06 +0100 | [diff] [blame] | 411 | "type": "unknown" |
| 412 | } |
| 413 | ] |
| 414 | } |
| 415 | { |
| 416 | "return": { |
| 417 | } |
| 418 | } |
| 419 | { |
| 420 | "return": { |
| 421 | } |
| 422 | } |
| 423 | { |
| 424 | "return": { |
| 425 | } |
| 426 | } |
| 427 | { |
| 428 | "timestamp": { |
| 429 | "seconds": TIMESTAMP, |
| 430 | "microseconds": TIMESTAMP |
| 431 | }, |
| 432 | "event": "DEVICE_DELETED", |
| 433 | "data": { |
| 434 | "path": "/machine/peripheral/virtio0/virtio-backend" |
| 435 | } |
| 436 | } |
| 437 | { |
| 438 | "timestamp": { |
| 439 | "seconds": TIMESTAMP, |
| 440 | "microseconds": TIMESTAMP |
| 441 | }, |
| 442 | "event": "DEVICE_DELETED", |
| 443 | "data": { |
| 444 | "device": "virtio0", |
| 445 | "path": "/machine/peripheral/virtio0" |
| 446 | } |
| 447 | } |
| 448 | { |
| 449 | "timestamp": { |
| 450 | "seconds": TIMESTAMP, |
| 451 | "microseconds": TIMESTAMP |
| 452 | }, |
| 453 | "event": "RESET" |
| 454 | } |
| 455 | { |
| 456 | "return": [ |
| 457 | { |
| 458 | "io-status": "ok", |
Max Reitz | 2389eea | 2014-11-17 13:31:06 +0100 | [diff] [blame] | 459 | "device": "disk", |
| 460 | "locked": false, |
| 461 | "removable": true, |
| 462 | "inserted": { |
| 463 | "iops_rd": 0, |
| 464 | "detect_zeroes": "off", |
| 465 | "image": { |
| 466 | "virtual-size": 134217728, |
| 467 | "filename": "TEST_DIR/t.qcow2", |
| 468 | "cluster-size": 65536, |
| 469 | "format": "qcow2", |
| 470 | "actual-size": SIZE, |
| 471 | "format-specific": { |
| 472 | "type": "qcow2", |
| 473 | "data": { |
| 474 | "compat": "1.1", |
| 475 | "lazy-refcounts": false, |
Max Reitz | 0709c5a | 2015-02-10 15:28:44 -0500 | [diff] [blame] | 476 | "refcount-bits": 16, |
Max Reitz | 2389eea | 2014-11-17 13:31:06 +0100 | [diff] [blame] | 477 | "corrupt": false |
| 478 | } |
| 479 | }, |
| 480 | "dirty-flag": false |
| 481 | }, |
| 482 | "iops_wr": 0, |
| 483 | "ro": false, |
Jeff Cody | 15489c7 | 2015-10-12 19:36:50 -0400 | [diff] [blame] | 484 | "node-name": "NODE_NAME", |
Max Reitz | 2389eea | 2014-11-17 13:31:06 +0100 | [diff] [blame] | 485 | "backing_file_depth": 0, |
| 486 | "drv": "qcow2", |
| 487 | "iops": 0, |
| 488 | "bps_wr": 0, |
Francesco Romani | e246211 | 2015-01-12 14:11:13 +0100 | [diff] [blame] | 489 | "write_threshold": 0, |
Max Reitz | 2389eea | 2014-11-17 13:31:06 +0100 | [diff] [blame] | 490 | "encrypted": false, |
| 491 | "bps": 0, |
| 492 | "bps_rd": 0, |
Kevin Wolf | 9e193c5 | 2014-05-22 13:28:45 +0200 | [diff] [blame] | 493 | "cache": { |
| 494 | "no-flush": false, |
| 495 | "direct": false, |
| 496 | "writeback": true |
| 497 | }, |
Max Reitz | 2389eea | 2014-11-17 13:31:06 +0100 | [diff] [blame] | 498 | "file": "TEST_DIR/t.qcow2", |
| 499 | "encryption_key_missing": false |
| 500 | }, |
Max Reitz | 2389eea | 2014-11-17 13:31:06 +0100 | [diff] [blame] | 501 | "type": "unknown" |
| 502 | } |
| 503 | ] |
| 504 | } |
| 505 | { |
| 506 | "return": { |
| 507 | } |
| 508 | } |
| 509 | { |
| 510 | "timestamp": { |
| 511 | "seconds": TIMESTAMP, |
| 512 | "microseconds": TIMESTAMP |
| 513 | }, |
| 514 | "event": "SHUTDOWN" |
| 515 | } |
Kevin Wolf | a9b4339 | 2013-09-18 16:47:41 +0200 | [diff] [blame] | 516 | |
| 517 | *** done |