1QA output created by 232 2Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 3 4=== -drive with read-write image: read-only/auto-read-only combinations === 5 6NODE_NAME: TEST_DIR/t.IMGFMT (file, read-only) 7NODE_NAME: TEST_DIR/t.IMGFMT (file, read-only) 8NODE_NAME: TEST_DIR/t.IMGFMT (file, read-only) 9 10NODE_NAME: TEST_DIR/t.IMGFMT (file) 11NODE_NAME: TEST_DIR/t.IMGFMT (file) 12NODE_NAME: TEST_DIR/t.IMGFMT (file) 13 14NODE_NAME: TEST_DIR/t.IMGFMT (file) 15NODE_NAME: TEST_DIR/t.IMGFMT (file) 16NODE_NAME: TEST_DIR/t.IMGFMT (file) 17 18=== -drive with read-only image: read-only/auto-read-only combinations === 19 20NODE_NAME: TEST_DIR/t.IMGFMT (file, read-only) 21NODE_NAME: TEST_DIR/t.IMGFMT (file, read-only) 22NODE_NAME: TEST_DIR/t.IMGFMT (file, read-only) 23 24QEMU_PROG: -drive driver=file,file=TEST_DIR/t.IMGFMT,if=none,read-only=off,auto-read-only=off: Could not open 'TEST_DIR/t.IMGFMT': Permission denied 25NODE_NAME: TEST_DIR/t.IMGFMT (file) 26NODE_NAME: TEST_DIR/t.IMGFMT (file) 27 28QEMU_PROG: -drive driver=file,file=TEST_DIR/t.IMGFMT,if=none,auto-read-only=off: Could not open 'TEST_DIR/t.IMGFMT': Permission denied 29NODE_NAME: TEST_DIR/t.IMGFMT (file) 30NODE_NAME: TEST_DIR/t.IMGFMT (file) 31 32=== -blockdev with read-write image: read-only/auto-read-only combinations === 33 34node0: TEST_DIR/t.IMGFMT (file, read-only) 35node0: TEST_DIR/t.IMGFMT (file, read-only) 36node0: TEST_DIR/t.IMGFMT (file, read-only) 37 38node0: TEST_DIR/t.IMGFMT (file) 39node0: TEST_DIR/t.IMGFMT (file) 40node0: TEST_DIR/t.IMGFMT (file) 41 42node0: TEST_DIR/t.IMGFMT (file) 43node0: TEST_DIR/t.IMGFMT (file) 44node0: TEST_DIR/t.IMGFMT (file) 45 46=== -blockdev with read-only image: read-only/auto-read-only combinations === 47 48node0: TEST_DIR/t.IMGFMT (file, read-only) 49node0: TEST_DIR/t.IMGFMT (file, read-only) 50node0: TEST_DIR/t.IMGFMT (file, read-only) 51 52QEMU_PROG: -blockdev driver=file,filename=TEST_DIR/t.IMGFMT,node-name=node0,read-only=off,auto-read-only=off: Could not open 'TEST_DIR/t.IMGFMT': Permission denied 53node0: TEST_DIR/t.IMGFMT (file) 54QEMU_PROG: -blockdev driver=file,filename=TEST_DIR/t.IMGFMT,node-name=node0,read-only=off: Could not open 'TEST_DIR/t.IMGFMT': Permission denied 55 56QEMU_PROG: -blockdev driver=file,filename=TEST_DIR/t.IMGFMT,node-name=node0,auto-read-only=off: Could not open 'TEST_DIR/t.IMGFMT': Permission denied 57node0: TEST_DIR/t.IMGFMT (file) 58QEMU_PROG: -blockdev driver=file,filename=TEST_DIR/t.IMGFMT,node-name=node0: Could not open 'TEST_DIR/t.IMGFMT': Permission denied 59 60=== Try commit to backing file with auto-read-only === 61 62Formatting 'TEST_DIR/t.IMGFMT.0', fmt=IMGFMT size=134217728 63Formatting 'TEST_DIR/t.IMGFMT.1', fmt=IMGFMT size=134217728 64Formatting 'TEST_DIR/t.IMGFMT.2', fmt=IMGFMT size=134217728 65Formatting 'TEST_DIR/t.IMGFMT.3', fmt=IMGFMT size=134217728 66Formatting 'TEST_DIR/t.IMGFMT.4', fmt=IMGFMT size=134217728 67QMP_VERSION 68{"return": {}} 69{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "created", "id": "job0"}} 70{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "running", "id": "job0"}} 71{"return": {}} 72{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "waiting", "id": "job0"}} 73{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "pending", "id": "job0"}} 74{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "BLOCK_JOB_COMPLETED", "data": {"device": "job0", "len": 134217728, "offset": 134217728, "speed": 0, "type": "commit"}} 75{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "concluded", "id": "job0"}} 76{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "null", "id": "job0"}} 77{"return": {}} 78{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false, "reason": "host-qmp-quit"}} 79*** done 80