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