1b1f6a8e1SKevin WolfQA output created by 273 2b1f6a8e1SKevin WolfFormatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864 3b66ff2c2SEric BlakeFormatting 'TEST_DIR/t.IMGFMT.mid', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=IMGFMT 4b66ff2c2SEric BlakeFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t.IMGFMT.mid backing_fmt=IMGFMT 5b1f6a8e1SKevin WolfTesting: -blockdev file,node-name=base,filename=TEST_DIR/t.IMGFMT.base -blockdev file,node-name=midf,filename=TEST_DIR/t.IMGFMT.mid -blockdev {"driver":"IMGFMT","node-name":"mid","file":"midf","backing":null} -blockdev file,node-name=topf,filename=TEST_DIR/t.IMGFMT -blockdev {"driver":"IMGFMT","file":"topf","node-name":"top","backing":null} 6b1f6a8e1SKevin Wolf{ 7b1f6a8e1SKevin Wolf QMP_VERSION 8b1f6a8e1SKevin Wolf} 9b1f6a8e1SKevin Wolf{ 10b1f6a8e1SKevin Wolf "return": { 11b1f6a8e1SKevin Wolf } 12b1f6a8e1SKevin Wolf} 13b1f6a8e1SKevin Wolf{ 14b1f6a8e1SKevin Wolf "return": { 15b1f6a8e1SKevin Wolf } 16b1f6a8e1SKevin Wolf} 17b1f6a8e1SKevin Wolf{ 18b1f6a8e1SKevin Wolf "return": { 19b1f6a8e1SKevin Wolf } 20b1f6a8e1SKevin Wolf} 21b1f6a8e1SKevin Wolf{ 22b1f6a8e1SKevin Wolf "return": [ 23b1f6a8e1SKevin Wolf { 24b1f6a8e1SKevin Wolf "iops_rd": 0, 25b1f6a8e1SKevin Wolf "detect_zeroes": "off", 26*aec81049SKevin Wolf "active": true, 27b1f6a8e1SKevin Wolf "image": { 28b1f6a8e1SKevin Wolf "backing-image": { 29b1f6a8e1SKevin Wolf "backing-image": { 30b1f6a8e1SKevin Wolf "virtual-size": 197120, 31b1f6a8e1SKevin Wolf "filename": "TEST_DIR/t.IMGFMT.base", 32b1f6a8e1SKevin Wolf "format": "file", 33b1f6a8e1SKevin Wolf "actual-size": SIZE, 34b1f6a8e1SKevin Wolf "dirty-flag": false 35b1f6a8e1SKevin Wolf }, 360b877d09SMax Reitz "backing-filename-format": "IMGFMT", 37b1f6a8e1SKevin Wolf "virtual-size": 67108864, 38b1f6a8e1SKevin Wolf "filename": "TEST_DIR/t.IMGFMT.mid", 39b1f6a8e1SKevin Wolf "cluster-size": 65536, 40b1f6a8e1SKevin Wolf "format": "IMGFMT", 41b1f6a8e1SKevin Wolf "actual-size": SIZE, 42b1f6a8e1SKevin Wolf "full-backing-filename": "TEST_DIR/t.IMGFMT.base", 43b1f6a8e1SKevin Wolf "backing-filename": "TEST_DIR/t.IMGFMT.base", 44b1f6a8e1SKevin Wolf "dirty-flag": false 45b1f6a8e1SKevin Wolf }, 46b1f6a8e1SKevin Wolf "backing-filename-format": "IMGFMT", 47b1f6a8e1SKevin Wolf "virtual-size": 67108864, 48b1f6a8e1SKevin Wolf "filename": "TEST_DIR/t.IMGFMT", 49b1f6a8e1SKevin Wolf "cluster-size": 65536, 50b1f6a8e1SKevin Wolf "format": "IMGFMT", 51b1f6a8e1SKevin Wolf "actual-size": SIZE, 52b1f6a8e1SKevin Wolf "full-backing-filename": "TEST_DIR/t.IMGFMT.mid", 53b1f6a8e1SKevin Wolf "backing-filename": "TEST_DIR/t.IMGFMT.mid", 54b1f6a8e1SKevin Wolf "dirty-flag": false 55b1f6a8e1SKevin Wolf }, 56b1f6a8e1SKevin Wolf "iops_wr": 0, 57b1f6a8e1SKevin Wolf "ro": false, 58b1f6a8e1SKevin Wolf "node-name": "top", 59b1f6a8e1SKevin Wolf "backing_file_depth": 2, 60b1f6a8e1SKevin Wolf "drv": "IMGFMT", 61b1f6a8e1SKevin Wolf "iops": 0, 62b1f6a8e1SKevin Wolf "bps_wr": 0, 63b1f6a8e1SKevin Wolf "write_threshold": 0, 64b1f6a8e1SKevin Wolf "backing_file": "TEST_DIR/t.IMGFMT.mid", 65b1f6a8e1SKevin Wolf "encrypted": false, 66b1f6a8e1SKevin Wolf "bps": 0, 67b1f6a8e1SKevin Wolf "bps_rd": 0, 68b1f6a8e1SKevin Wolf "cache": { 69b1f6a8e1SKevin Wolf "no-flush": false, 70b1f6a8e1SKevin Wolf "direct": false, 71b1f6a8e1SKevin Wolf "writeback": true 72b1f6a8e1SKevin Wolf }, 73ad1324e0SDaniel P. Berrangé "file": "TEST_DIR/t.IMGFMT" 74b1f6a8e1SKevin Wolf }, 75b1f6a8e1SKevin Wolf { 76b1f6a8e1SKevin Wolf "iops_rd": 0, 77b1f6a8e1SKevin Wolf "detect_zeroes": "off", 78*aec81049SKevin Wolf "active": true, 79b1f6a8e1SKevin Wolf "image": { 80b1f6a8e1SKevin Wolf "virtual-size": 197120, 81b1f6a8e1SKevin Wolf "filename": "TEST_DIR/t.IMGFMT", 82b1f6a8e1SKevin Wolf "format": "file", 83b1f6a8e1SKevin Wolf "actual-size": SIZE, 84b1f6a8e1SKevin Wolf "dirty-flag": false 85b1f6a8e1SKevin Wolf }, 86b1f6a8e1SKevin Wolf "iops_wr": 0, 87b1f6a8e1SKevin Wolf "ro": false, 88b1f6a8e1SKevin Wolf "node-name": "topf", 89b1f6a8e1SKevin Wolf "backing_file_depth": 0, 90b1f6a8e1SKevin Wolf "drv": "file", 91b1f6a8e1SKevin Wolf "iops": 0, 92b1f6a8e1SKevin Wolf "bps_wr": 0, 93b1f6a8e1SKevin Wolf "write_threshold": 0, 94b1f6a8e1SKevin Wolf "encrypted": false, 95b1f6a8e1SKevin Wolf "bps": 0, 96b1f6a8e1SKevin Wolf "bps_rd": 0, 97b1f6a8e1SKevin Wolf "cache": { 98b1f6a8e1SKevin Wolf "no-flush": false, 99b1f6a8e1SKevin Wolf "direct": false, 100b1f6a8e1SKevin Wolf "writeback": true 101b1f6a8e1SKevin Wolf }, 102ad1324e0SDaniel P. Berrangé "file": "TEST_DIR/t.IMGFMT" 103b1f6a8e1SKevin Wolf }, 104b1f6a8e1SKevin Wolf { 105b1f6a8e1SKevin Wolf "iops_rd": 0, 106b1f6a8e1SKevin Wolf "detect_zeroes": "off", 107*aec81049SKevin Wolf "active": true, 108b1f6a8e1SKevin Wolf "image": { 109b1f6a8e1SKevin Wolf "backing-image": { 110b1f6a8e1SKevin Wolf "virtual-size": 197120, 111b1f6a8e1SKevin Wolf "filename": "TEST_DIR/t.IMGFMT.base", 112b1f6a8e1SKevin Wolf "format": "file", 113b1f6a8e1SKevin Wolf "actual-size": SIZE, 114b1f6a8e1SKevin Wolf "dirty-flag": false 115b1f6a8e1SKevin Wolf }, 1160b877d09SMax Reitz "backing-filename-format": "IMGFMT", 117b1f6a8e1SKevin Wolf "virtual-size": 67108864, 118b1f6a8e1SKevin Wolf "filename": "TEST_DIR/t.IMGFMT.mid", 119b1f6a8e1SKevin Wolf "cluster-size": 65536, 120b1f6a8e1SKevin Wolf "format": "IMGFMT", 121b1f6a8e1SKevin Wolf "actual-size": SIZE, 122b1f6a8e1SKevin Wolf "full-backing-filename": "TEST_DIR/t.IMGFMT.base", 123b1f6a8e1SKevin Wolf "backing-filename": "TEST_DIR/t.IMGFMT.base", 124b1f6a8e1SKevin Wolf "dirty-flag": false 125b1f6a8e1SKevin Wolf }, 126b1f6a8e1SKevin Wolf "iops_wr": 0, 127b1f6a8e1SKevin Wolf "ro": true, 128b1f6a8e1SKevin Wolf "node-name": "mid", 129b1f6a8e1SKevin Wolf "backing_file_depth": 1, 130b1f6a8e1SKevin Wolf "drv": "IMGFMT", 131b1f6a8e1SKevin Wolf "iops": 0, 132b1f6a8e1SKevin Wolf "bps_wr": 0, 133b1f6a8e1SKevin Wolf "write_threshold": 0, 134b1f6a8e1SKevin Wolf "backing_file": "TEST_DIR/t.IMGFMT.base", 135b1f6a8e1SKevin Wolf "encrypted": false, 136b1f6a8e1SKevin Wolf "bps": 0, 137b1f6a8e1SKevin Wolf "bps_rd": 0, 138b1f6a8e1SKevin Wolf "cache": { 139b1f6a8e1SKevin Wolf "no-flush": false, 140b1f6a8e1SKevin Wolf "direct": false, 141b1f6a8e1SKevin Wolf "writeback": true 142b1f6a8e1SKevin Wolf }, 143ad1324e0SDaniel P. Berrangé "file": "TEST_DIR/t.IMGFMT.mid" 144b1f6a8e1SKevin Wolf }, 145b1f6a8e1SKevin Wolf { 146b1f6a8e1SKevin Wolf "iops_rd": 0, 147b1f6a8e1SKevin Wolf "detect_zeroes": "off", 148*aec81049SKevin Wolf "active": true, 149b1f6a8e1SKevin Wolf "image": { 150b1f6a8e1SKevin Wolf "virtual-size": 197120, 151b1f6a8e1SKevin Wolf "filename": "TEST_DIR/t.IMGFMT.mid", 152b1f6a8e1SKevin Wolf "format": "file", 153b1f6a8e1SKevin Wolf "actual-size": SIZE, 154b1f6a8e1SKevin Wolf "dirty-flag": false 155b1f6a8e1SKevin Wolf }, 156b1f6a8e1SKevin Wolf "iops_wr": 0, 157b1f6a8e1SKevin Wolf "ro": false, 158b1f6a8e1SKevin Wolf "node-name": "midf", 159b1f6a8e1SKevin Wolf "backing_file_depth": 0, 160b1f6a8e1SKevin Wolf "drv": "file", 161b1f6a8e1SKevin Wolf "iops": 0, 162b1f6a8e1SKevin Wolf "bps_wr": 0, 163b1f6a8e1SKevin Wolf "write_threshold": 0, 164b1f6a8e1SKevin Wolf "encrypted": false, 165b1f6a8e1SKevin Wolf "bps": 0, 166b1f6a8e1SKevin Wolf "bps_rd": 0, 167b1f6a8e1SKevin Wolf "cache": { 168b1f6a8e1SKevin Wolf "no-flush": false, 169b1f6a8e1SKevin Wolf "direct": false, 170b1f6a8e1SKevin Wolf "writeback": true 171b1f6a8e1SKevin Wolf }, 172ad1324e0SDaniel P. Berrangé "file": "TEST_DIR/t.IMGFMT.mid" 173b1f6a8e1SKevin Wolf }, 174b1f6a8e1SKevin Wolf { 175b1f6a8e1SKevin Wolf "iops_rd": 0, 176b1f6a8e1SKevin Wolf "detect_zeroes": "off", 177*aec81049SKevin Wolf "active": true, 178b1f6a8e1SKevin Wolf "image": { 179b1f6a8e1SKevin Wolf "virtual-size": 197120, 180b1f6a8e1SKevin Wolf "filename": "TEST_DIR/t.IMGFMT.base", 181b1f6a8e1SKevin Wolf "format": "file", 182b1f6a8e1SKevin Wolf "actual-size": SIZE, 183b1f6a8e1SKevin Wolf "dirty-flag": false 184b1f6a8e1SKevin Wolf }, 185b1f6a8e1SKevin Wolf "iops_wr": 0, 186b1f6a8e1SKevin Wolf "ro": true, 187b1f6a8e1SKevin Wolf "node-name": "base", 188b1f6a8e1SKevin Wolf "backing_file_depth": 0, 189b1f6a8e1SKevin Wolf "drv": "file", 190b1f6a8e1SKevin Wolf "iops": 0, 191b1f6a8e1SKevin Wolf "bps_wr": 0, 192b1f6a8e1SKevin Wolf "write_threshold": 0, 193b1f6a8e1SKevin Wolf "encrypted": false, 194b1f6a8e1SKevin Wolf "bps": 0, 195b1f6a8e1SKevin Wolf "bps_rd": 0, 196b1f6a8e1SKevin Wolf "cache": { 197b1f6a8e1SKevin Wolf "no-flush": false, 198b1f6a8e1SKevin Wolf "direct": false, 199b1f6a8e1SKevin Wolf "writeback": true 200b1f6a8e1SKevin Wolf }, 201ad1324e0SDaniel P. Berrangé "file": "TEST_DIR/t.IMGFMT.base" 202b1f6a8e1SKevin Wolf } 203b1f6a8e1SKevin Wolf ] 204b1f6a8e1SKevin Wolf} 205b1f6a8e1SKevin Wolf{ 206b1f6a8e1SKevin Wolf "return": { 207b1f6a8e1SKevin Wolf "edges": [ 208b1f6a8e1SKevin Wolf { 209b1f6a8e1SKevin Wolf "name": "file", 210b1f6a8e1SKevin Wolf "parent": 5, 211b1f6a8e1SKevin Wolf "shared-perm": [ 212b1f6a8e1SKevin Wolf "write-unchanged", 213b1f6a8e1SKevin Wolf "consistent-read" 214b1f6a8e1SKevin Wolf ], 215b1f6a8e1SKevin Wolf "perm": [ 216b1f6a8e1SKevin Wolf "resize", 217b1f6a8e1SKevin Wolf "write", 218b1f6a8e1SKevin Wolf "consistent-read" 219b1f6a8e1SKevin Wolf ], 220b1f6a8e1SKevin Wolf "child": 4 221b1f6a8e1SKevin Wolf }, 222b1f6a8e1SKevin Wolf { 223b1f6a8e1SKevin Wolf "name": "backing", 224b1f6a8e1SKevin Wolf "parent": 5, 225b1f6a8e1SKevin Wolf "shared-perm": [ 226b1f6a8e1SKevin Wolf "resize", 227b1f6a8e1SKevin Wolf "write-unchanged", 228b1f6a8e1SKevin Wolf "write", 229b1f6a8e1SKevin Wolf "consistent-read" 230b1f6a8e1SKevin Wolf ], 231b1f6a8e1SKevin Wolf "perm": [ 232b1f6a8e1SKevin Wolf ], 233b1f6a8e1SKevin Wolf "child": 3 234b1f6a8e1SKevin Wolf }, 235b1f6a8e1SKevin Wolf { 236b1f6a8e1SKevin Wolf "name": "file", 237b1f6a8e1SKevin Wolf "parent": 3, 238b1f6a8e1SKevin Wolf "shared-perm": [ 239b1f6a8e1SKevin Wolf "write-unchanged", 240b1f6a8e1SKevin Wolf "consistent-read" 241b1f6a8e1SKevin Wolf ], 242b1f6a8e1SKevin Wolf "perm": [ 243b1f6a8e1SKevin Wolf "consistent-read" 244b1f6a8e1SKevin Wolf ], 245b1f6a8e1SKevin Wolf "child": 2 246b1f6a8e1SKevin Wolf }, 247b1f6a8e1SKevin Wolf { 248b1f6a8e1SKevin Wolf "name": "backing", 249b1f6a8e1SKevin Wolf "parent": 3, 250b1f6a8e1SKevin Wolf "shared-perm": [ 251b1f6a8e1SKevin Wolf "resize", 252b1f6a8e1SKevin Wolf "write-unchanged", 253b1f6a8e1SKevin Wolf "write", 254b1f6a8e1SKevin Wolf "consistent-read" 255b1f6a8e1SKevin Wolf ], 256b1f6a8e1SKevin Wolf "perm": [ 257b1f6a8e1SKevin Wolf ], 258b1f6a8e1SKevin Wolf "child": 1 259b1f6a8e1SKevin Wolf } 260b1f6a8e1SKevin Wolf ], 261b1f6a8e1SKevin Wolf "nodes": [ 262b1f6a8e1SKevin Wolf { 263b1f6a8e1SKevin Wolf "name": "top", 264b1f6a8e1SKevin Wolf "type": "block-driver", 265b1f6a8e1SKevin Wolf "id": 5 266b1f6a8e1SKevin Wolf }, 267b1f6a8e1SKevin Wolf { 268b1f6a8e1SKevin Wolf "name": "topf", 269b1f6a8e1SKevin Wolf "type": "block-driver", 270b1f6a8e1SKevin Wolf "id": 4 271b1f6a8e1SKevin Wolf }, 272b1f6a8e1SKevin Wolf { 273b1f6a8e1SKevin Wolf "name": "mid", 274b1f6a8e1SKevin Wolf "type": "block-driver", 275b1f6a8e1SKevin Wolf "id": 3 276b1f6a8e1SKevin Wolf }, 277b1f6a8e1SKevin Wolf { 278b1f6a8e1SKevin Wolf "name": "midf", 279b1f6a8e1SKevin Wolf "type": "block-driver", 280b1f6a8e1SKevin Wolf "id": 2 281b1f6a8e1SKevin Wolf }, 282b1f6a8e1SKevin Wolf { 283b1f6a8e1SKevin Wolf "name": "base", 284b1f6a8e1SKevin Wolf "type": "block-driver", 285b1f6a8e1SKevin Wolf "id": 1 286b1f6a8e1SKevin Wolf } 287b1f6a8e1SKevin Wolf ] 288b1f6a8e1SKevin Wolf } 289b1f6a8e1SKevin Wolf} 290b1f6a8e1SKevin Wolf{ 291b1f6a8e1SKevin Wolf "timestamp": { 292b1f6a8e1SKevin Wolf "seconds": TIMESTAMP, 293b1f6a8e1SKevin Wolf "microseconds": TIMESTAMP 294b1f6a8e1SKevin Wolf }, 295b1f6a8e1SKevin Wolf "event": "SHUTDOWN", 296b1f6a8e1SKevin Wolf "data": { 297b1f6a8e1SKevin Wolf "guest": false, 298b1f6a8e1SKevin Wolf "reason": "host-qmp-quit" 299b1f6a8e1SKevin Wolf } 300b1f6a8e1SKevin Wolf} 301effd60c8SStefan Hajnoczi{ 302effd60c8SStefan Hajnoczi "return": { 303effd60c8SStefan Hajnoczi } 304effd60c8SStefan Hajnoczi} 305b1f6a8e1SKevin Wolf 306b1f6a8e1SKevin Wolf*** done 307