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