qemu

FORK: QEMU emulator
git clone https://git.neptards.moe/neptards/qemu.git
Log | Files | Refs | Submodules | LICENSE

153.out (17743B)


      1 QA output created by 153
      2 == readonly=off,force-share=on should be rejected ==
      3 QEMU_PROG: -drive if=none,file=null-co://,readonly=off,force-share=on: force-share=on can only be used with read-only images
      4 
      5 == Creating base image ==
      6 Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=33554432
      7 
      8 == Creating test image ==
      9 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=33554432 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=IMGFMT
     10 
     11 == Launching QEMU, opts: '' ==
     12 
     13 == Launching another QEMU, opts: '' ==
     14 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,if=none,: Failed to get "write" lock
     15 Is another process using the image [TEST_DIR/t.qcow2]?
     16 
     17 == Launching another QEMU, opts: 'read-only=on' ==
     18 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,if=none,read-only=on: Failed to get shared "write" lock
     19 Is another process using the image [TEST_DIR/t.qcow2]?
     20 
     21 == Launching another QEMU, opts: 'read-only=on,force-share=on' ==
     22 
     23 == Running utility commands  ==
     24 
     25 _qemu_io_wrapper -c read 0 512 TEST_DIR/t.qcow2
     26 qemu-io: can't open device TEST_DIR/t.qcow2: Failed to get "write" lock
     27 Is another process using the image [TEST_DIR/t.qcow2]?
     28 
     29 _qemu_io_wrapper -r -c read 0 512 TEST_DIR/t.qcow2
     30 qemu-io: can't open device TEST_DIR/t.qcow2: Failed to get shared "write" lock
     31 Is another process using the image [TEST_DIR/t.qcow2]?
     32 
     33 _qemu_io_wrapper -c open  TEST_DIR/t.qcow2 -c read 0 512
     34 qemu-io: can't open device TEST_DIR/t.qcow2: Failed to get "write" lock
     35 Is another process using the image [TEST_DIR/t.qcow2]?
     36 no file open, try 'help open'
     37 
     38 _qemu_io_wrapper -c open -r  TEST_DIR/t.qcow2 -c read 0 512
     39 qemu-io: can't open device TEST_DIR/t.qcow2: Failed to get shared "write" lock
     40 Is another process using the image [TEST_DIR/t.qcow2]?
     41 no file open, try 'help open'
     42 
     43 _qemu_img_wrapper info TEST_DIR/t.qcow2
     44 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get shared "write" lock
     45 Is another process using the image [TEST_DIR/t.qcow2]?
     46 
     47 _qemu_img_wrapper check TEST_DIR/t.qcow2
     48 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get shared "write" lock
     49 Is another process using the image [TEST_DIR/t.qcow2]?
     50 
     51 _qemu_img_wrapper compare TEST_DIR/t.qcow2 TEST_DIR/t.qcow2
     52 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get shared "write" lock
     53 Is another process using the image [TEST_DIR/t.qcow2]?
     54 
     55 _qemu_img_wrapper map TEST_DIR/t.qcow2
     56 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get shared "write" lock
     57 Is another process using the image [TEST_DIR/t.qcow2]?
     58 
     59 _qemu_img_wrapper amend -o size=32M TEST_DIR/t.qcow2
     60 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
     61 Is another process using the image [TEST_DIR/t.qcow2]?
     62 
     63 _qemu_img_wrapper commit TEST_DIR/t.qcow2
     64 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
     65 Is another process using the image [TEST_DIR/t.qcow2]?
     66 
     67 _qemu_img_wrapper resize TEST_DIR/t.qcow2 32M
     68 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
     69 Is another process using the image [TEST_DIR/t.qcow2]?
     70 
     71 _qemu_img_wrapper rebase TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base -F qcow2
     72 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
     73 Is another process using the image [TEST_DIR/t.qcow2]?
     74 
     75 _qemu_img_wrapper snapshot -l TEST_DIR/t.qcow2
     76 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get shared "write" lock
     77 Is another process using the image [TEST_DIR/t.qcow2]?
     78 
     79 _qemu_img_wrapper convert TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.convert
     80 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get shared "write" lock
     81 Is another process using the image [TEST_DIR/t.qcow2]?
     82 
     83 _qemu_img_wrapper dd if=TEST_DIR/t.qcow2 of=TEST_DIR/t.qcow2.convert bs=512 count=1
     84 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get shared "write" lock
     85 Is another process using the image [TEST_DIR/t.qcow2]?
     86 
     87 _qemu_img_wrapper bench -c 1 TEST_DIR/t.qcow2
     88 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get shared "write" lock
     89 Is another process using the image [TEST_DIR/t.qcow2]?
     90 
     91 _qemu_img_wrapper bench -w -c 1 TEST_DIR/t.qcow2
     92 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
     93 Is another process using the image [TEST_DIR/t.qcow2]?
     94 
     95 _qemu_img_wrapper create -f qcow2 TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base -F qcow2
     96 qemu-img: TEST_DIR/t.qcow2: Failed to get "write" lock
     97 Is another process using the image [TEST_DIR/t.qcow2]?
     98 file format: IMGFMT
     99 backing file format: IMGFMT
    100 
    101 == Running utility commands -U ==
    102 
    103 _qemu_io_wrapper -U -c read 0 512 TEST_DIR/t.qcow2
    104 qemu-io: can't open device TEST_DIR/t.qcow2: force-share=on can only be used with read-only images
    105 
    106 _qemu_io_wrapper -U -r -c read 0 512 TEST_DIR/t.qcow2
    107 
    108 _qemu_io_wrapper -c open -U TEST_DIR/t.qcow2 -c read 0 512
    109 qemu-io: can't open device TEST_DIR/t.qcow2: force-share=on can only be used with read-only images
    110 no file open, try 'help open'
    111 
    112 _qemu_io_wrapper -c open -r -U TEST_DIR/t.qcow2 -c read 0 512
    113 
    114 _qemu_img_wrapper info -U TEST_DIR/t.qcow2
    115 
    116 _qemu_img_wrapper check -U TEST_DIR/t.qcow2
    117 
    118 _qemu_img_wrapper compare -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2
    119 
    120 _qemu_img_wrapper map -U TEST_DIR/t.qcow2
    121 
    122 _qemu_img_wrapper amend -o size=32M -U TEST_DIR/t.qcow2
    123 qemu-img: unrecognized option '-U'
    124 Try 'qemu-img --help' for more information
    125 
    126 _qemu_img_wrapper commit -U TEST_DIR/t.qcow2
    127 qemu-img: unrecognized option '-U'
    128 Try 'qemu-img --help' for more information
    129 
    130 _qemu_img_wrapper resize -U TEST_DIR/t.qcow2 32M
    131 qemu-img: unrecognized option '-U'
    132 Try 'qemu-img --help' for more information
    133 
    134 _qemu_img_wrapper rebase -U TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base -F qcow2
    135 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
    136 Is another process using the image [TEST_DIR/t.qcow2]?
    137 
    138 _qemu_img_wrapper snapshot -l -U TEST_DIR/t.qcow2
    139 
    140 _qemu_img_wrapper convert -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.convert
    141 
    142 _qemu_img_wrapper dd -U if=TEST_DIR/t.qcow2 of=TEST_DIR/t.qcow2.convert bs=512 count=1
    143 
    144 _qemu_img_wrapper bench -U -c 1 TEST_DIR/t.qcow2
    145 
    146 _qemu_img_wrapper bench -U -w -c 1 TEST_DIR/t.qcow2
    147 qemu-img: Could not open 'TEST_DIR/t.qcow2': force-share=on can only be used with read-only images
    148 { 'execute': 'quit' }
    149 
    150 Round done
    151 
    152 == Creating base image ==
    153 Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=33554432
    154 
    155 == Creating test image ==
    156 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=33554432 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=IMGFMT
    157 
    158 == Launching QEMU, opts: 'read-only=on' ==
    159 
    160 == Launching another QEMU, opts: '' ==
    161 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,if=none,: Failed to get "write" lock
    162 Is another process using the image [TEST_DIR/t.qcow2]?
    163 
    164 == Launching another QEMU, opts: 'read-only=on' ==
    165 
    166 == Launching another QEMU, opts: 'read-only=on,force-share=on' ==
    167 
    168 == Running utility commands  ==
    169 
    170 _qemu_io_wrapper -c read 0 512 TEST_DIR/t.qcow2
    171 qemu-io: can't open device TEST_DIR/t.qcow2: Failed to get "write" lock
    172 Is another process using the image [TEST_DIR/t.qcow2]?
    173 
    174 _qemu_io_wrapper -r -c read 0 512 TEST_DIR/t.qcow2
    175 
    176 _qemu_io_wrapper -c open  TEST_DIR/t.qcow2 -c read 0 512
    177 qemu-io: can't open device TEST_DIR/t.qcow2: Failed to get "write" lock
    178 Is another process using the image [TEST_DIR/t.qcow2]?
    179 no file open, try 'help open'
    180 
    181 _qemu_io_wrapper -c open -r  TEST_DIR/t.qcow2 -c read 0 512
    182 
    183 _qemu_img_wrapper info TEST_DIR/t.qcow2
    184 
    185 _qemu_img_wrapper check TEST_DIR/t.qcow2
    186 
    187 _qemu_img_wrapper compare TEST_DIR/t.qcow2 TEST_DIR/t.qcow2
    188 
    189 _qemu_img_wrapper map TEST_DIR/t.qcow2
    190 
    191 _qemu_img_wrapper amend -o size=32M TEST_DIR/t.qcow2
    192 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
    193 Is another process using the image [TEST_DIR/t.qcow2]?
    194 
    195 _qemu_img_wrapper commit TEST_DIR/t.qcow2
    196 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
    197 Is another process using the image [TEST_DIR/t.qcow2]?
    198 
    199 _qemu_img_wrapper resize TEST_DIR/t.qcow2 32M
    200 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
    201 Is another process using the image [TEST_DIR/t.qcow2]?
    202 
    203 _qemu_img_wrapper rebase TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base -F qcow2
    204 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
    205 Is another process using the image [TEST_DIR/t.qcow2]?
    206 
    207 _qemu_img_wrapper snapshot -l TEST_DIR/t.qcow2
    208 
    209 _qemu_img_wrapper convert TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.convert
    210 
    211 _qemu_img_wrapper dd if=TEST_DIR/t.qcow2 of=TEST_DIR/t.qcow2.convert bs=512 count=1
    212 
    213 _qemu_img_wrapper bench -c 1 TEST_DIR/t.qcow2
    214 
    215 _qemu_img_wrapper bench -w -c 1 TEST_DIR/t.qcow2
    216 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
    217 Is another process using the image [TEST_DIR/t.qcow2]?
    218 
    219 _qemu_img_wrapper create -f qcow2 TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base -F qcow2
    220 qemu-img: TEST_DIR/t.qcow2: Failed to get "write" lock
    221 Is another process using the image [TEST_DIR/t.qcow2]?
    222 file format: IMGFMT
    223 backing file format: IMGFMT
    224 
    225 == Running utility commands -U ==
    226 
    227 _qemu_io_wrapper -U -c read 0 512 TEST_DIR/t.qcow2
    228 qemu-io: can't open device TEST_DIR/t.qcow2: force-share=on can only be used with read-only images
    229 
    230 _qemu_io_wrapper -U -r -c read 0 512 TEST_DIR/t.qcow2
    231 
    232 _qemu_io_wrapper -c open -U TEST_DIR/t.qcow2 -c read 0 512
    233 qemu-io: can't open device TEST_DIR/t.qcow2: force-share=on can only be used with read-only images
    234 no file open, try 'help open'
    235 
    236 _qemu_io_wrapper -c open -r -U TEST_DIR/t.qcow2 -c read 0 512
    237 
    238 _qemu_img_wrapper info -U TEST_DIR/t.qcow2
    239 
    240 _qemu_img_wrapper check -U TEST_DIR/t.qcow2
    241 
    242 _qemu_img_wrapper compare -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2
    243 
    244 _qemu_img_wrapper map -U TEST_DIR/t.qcow2
    245 
    246 _qemu_img_wrapper amend -o size=32M -U TEST_DIR/t.qcow2
    247 qemu-img: unrecognized option '-U'
    248 Try 'qemu-img --help' for more information
    249 
    250 _qemu_img_wrapper commit -U TEST_DIR/t.qcow2
    251 qemu-img: unrecognized option '-U'
    252 Try 'qemu-img --help' for more information
    253 
    254 _qemu_img_wrapper resize -U TEST_DIR/t.qcow2 32M
    255 qemu-img: unrecognized option '-U'
    256 Try 'qemu-img --help' for more information
    257 
    258 _qemu_img_wrapper rebase -U TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base -F qcow2
    259 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
    260 Is another process using the image [TEST_DIR/t.qcow2]?
    261 
    262 _qemu_img_wrapper snapshot -l -U TEST_DIR/t.qcow2
    263 
    264 _qemu_img_wrapper convert -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.convert
    265 
    266 _qemu_img_wrapper dd -U if=TEST_DIR/t.qcow2 of=TEST_DIR/t.qcow2.convert bs=512 count=1
    267 
    268 _qemu_img_wrapper bench -U -c 1 TEST_DIR/t.qcow2
    269 
    270 _qemu_img_wrapper bench -U -w -c 1 TEST_DIR/t.qcow2
    271 qemu-img: Could not open 'TEST_DIR/t.qcow2': force-share=on can only be used with read-only images
    272 { 'execute': 'quit' }
    273 
    274 Round done
    275 
    276 == Creating base image ==
    277 Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=33554432
    278 
    279 == Creating test image ==
    280 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=33554432 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=IMGFMT
    281 
    282 == Launching QEMU, opts: 'read-only=on,force-share=on' ==
    283 
    284 == Launching another QEMU, opts: '' ==
    285 
    286 == Launching another QEMU, opts: 'read-only=on' ==
    287 
    288 == Launching another QEMU, opts: 'read-only=on,force-share=on' ==
    289 
    290 == Running utility commands  ==
    291 
    292 _qemu_io_wrapper -c read 0 512 TEST_DIR/t.qcow2
    293 
    294 _qemu_io_wrapper -r -c read 0 512 TEST_DIR/t.qcow2
    295 
    296 _qemu_io_wrapper -c open  TEST_DIR/t.qcow2 -c read 0 512
    297 
    298 _qemu_io_wrapper -c open -r  TEST_DIR/t.qcow2 -c read 0 512
    299 
    300 _qemu_img_wrapper info TEST_DIR/t.qcow2
    301 
    302 _qemu_img_wrapper check TEST_DIR/t.qcow2
    303 
    304 _qemu_img_wrapper compare TEST_DIR/t.qcow2 TEST_DIR/t.qcow2
    305 
    306 _qemu_img_wrapper map TEST_DIR/t.qcow2
    307 
    308 _qemu_img_wrapper amend -o size=32M TEST_DIR/t.qcow2
    309 
    310 _qemu_img_wrapper commit TEST_DIR/t.qcow2
    311 
    312 _qemu_img_wrapper resize TEST_DIR/t.qcow2 32M
    313 
    314 _qemu_img_wrapper rebase TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base -F qcow2
    315 
    316 _qemu_img_wrapper snapshot -l TEST_DIR/t.qcow2
    317 
    318 _qemu_img_wrapper convert TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.convert
    319 
    320 _qemu_img_wrapper dd if=TEST_DIR/t.qcow2 of=TEST_DIR/t.qcow2.convert bs=512 count=1
    321 
    322 _qemu_img_wrapper bench -c 1 TEST_DIR/t.qcow2
    323 
    324 _qemu_img_wrapper bench -w -c 1 TEST_DIR/t.qcow2
    325 
    326 _qemu_img_wrapper create -f qcow2 TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base -F qcow2
    327 file format: IMGFMT
    328 backing file format: IMGFMT
    329 
    330 == Running utility commands -U ==
    331 
    332 _qemu_io_wrapper -U -c read 0 512 TEST_DIR/t.qcow2
    333 qemu-io: can't open device TEST_DIR/t.qcow2: force-share=on can only be used with read-only images
    334 
    335 _qemu_io_wrapper -U -r -c read 0 512 TEST_DIR/t.qcow2
    336 
    337 _qemu_io_wrapper -c open -U TEST_DIR/t.qcow2 -c read 0 512
    338 qemu-io: can't open device TEST_DIR/t.qcow2: force-share=on can only be used with read-only images
    339 no file open, try 'help open'
    340 
    341 _qemu_io_wrapper -c open -r -U TEST_DIR/t.qcow2 -c read 0 512
    342 
    343 _qemu_img_wrapper info -U TEST_DIR/t.qcow2
    344 
    345 _qemu_img_wrapper check -U TEST_DIR/t.qcow2
    346 
    347 _qemu_img_wrapper compare -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2
    348 
    349 _qemu_img_wrapper map -U TEST_DIR/t.qcow2
    350 
    351 _qemu_img_wrapper amend -o size=32M -U TEST_DIR/t.qcow2
    352 qemu-img: unrecognized option '-U'
    353 Try 'qemu-img --help' for more information
    354 
    355 _qemu_img_wrapper commit -U TEST_DIR/t.qcow2
    356 qemu-img: unrecognized option '-U'
    357 Try 'qemu-img --help' for more information
    358 
    359 _qemu_img_wrapper resize -U TEST_DIR/t.qcow2 32M
    360 qemu-img: unrecognized option '-U'
    361 Try 'qemu-img --help' for more information
    362 
    363 _qemu_img_wrapper rebase -U TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base -F qcow2
    364 
    365 _qemu_img_wrapper snapshot -l -U TEST_DIR/t.qcow2
    366 
    367 _qemu_img_wrapper convert -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.convert
    368 
    369 _qemu_img_wrapper dd -U if=TEST_DIR/t.qcow2 of=TEST_DIR/t.qcow2.convert bs=512 count=1
    370 
    371 _qemu_img_wrapper bench -U -c 1 TEST_DIR/t.qcow2
    372 
    373 _qemu_img_wrapper bench -U -w -c 1 TEST_DIR/t.qcow2
    374 qemu-img: Could not open 'TEST_DIR/t.qcow2': force-share=on can only be used with read-only images
    375 { 'execute': 'quit' }
    376 
    377 Round done
    378 
    379 == Two devices with the same image (read-only=off - read-only=off) ==
    380 QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2,read-only=off: Failed to get "write" lock
    381 Is another process using the image [TEST_DIR/t.qcow2]?
    382 
    383 == Two devices with the same image (read-only=off - read-only=on) ==
    384 QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2,read-only=on: Failed to get shared "write" lock
    385 Is another process using the image [TEST_DIR/t.qcow2]?
    386 
    387 == Two devices with the same image (read-only=off - read-only=on,force-share=on) ==
    388 
    389 == Two devices with the same image (read-only=on - read-only=off) ==
    390 QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2,read-only=off: Failed to get "write" lock
    391 Is another process using the image [TEST_DIR/t.qcow2]?
    392 
    393 == Two devices with the same image (read-only=on - read-only=on) ==
    394 
    395 == Two devices with the same image (read-only=on - read-only=on,force-share=on) ==
    396 
    397 == Two devices with the same image (read-only=on,force-share=on - read-only=off) ==
    398 
    399 == Two devices with the same image (read-only=on,force-share=on - read-only=on) ==
    400 
    401 == Two devices with the same image (read-only=on,force-share=on - read-only=on,force-share=on) ==
    402 
    403 == Creating TEST_DIR/t.qcow2.[abc] ==
    404 Formatting 'TEST_DIR/t.IMGFMT.a', fmt=IMGFMT size=33554432 backing_file=TEST_DIR/t.IMGFMT backing_fmt=IMGFMT
    405 Formatting 'TEST_DIR/t.IMGFMT.b', fmt=IMGFMT size=33554432 backing_file=TEST_DIR/t.IMGFMT backing_fmt=IMGFMT
    406 Formatting 'TEST_DIR/t.IMGFMT.c', fmt=IMGFMT size=33554432 backing_file=TEST_DIR/t.IMGFMT.b backing_fmt=IMGFMT
    407 
    408 == Two devices sharing the same file in backing chain ==
    409 
    410 == Backing image also as an active device ==
    411 QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2: Failed to get "write" lock
    412 Is another process using the image [TEST_DIR/t.qcow2]?
    413 
    414 == Backing image also as an active device (ro) ==
    415 
    416 == Symbolic link ==
    417 QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2: Failed to get "write" lock
    418 Is another process using the image [TEST_DIR/t.qcow2]?
    419 
    420 == Active commit to intermediate layer should work when base in use ==
    421 { 'execute': 'qmp_capabilities' }
    422 {"return": {}}
    423 
    424 _qemu_img_wrapper commit -b TEST_DIR/t.qcow2.b TEST_DIR/t.qcow2.c
    425 { 'execute': 'qmp_capabilities' }
    426 {"return": {}}
    427 Adding drive
    428 { 'execute': 'human-monitor-command',
    429        'arguments': { 'command-line': 'drive_add 0 if=none,id=d0,file=TEST_DIR/t.IMGFMT' } }
    430 {"return": "OKrn"}
    431 
    432 _qemu_io_wrapper TEST_DIR/t.qcow2 -c write 0 512
    433 qemu-io: can't open device TEST_DIR/t.qcow2: Failed to get "write" lock
    434 Is another process using the image [TEST_DIR/t.qcow2]?
    435 Creating overlay with qemu-img when the guest is running should be allowed
    436 
    437 _qemu_img_wrapper create -f qcow2 -b TEST_DIR/t.qcow2 -F qcow2 TEST_DIR/t.qcow2.overlay
    438 == Closing an image should unlock it ==
    439 { 'execute': 'human-monitor-command',
    440        'arguments': { 'command-line': 'drive_del d0' } }
    441 {"return": ""}
    442 
    443 _qemu_io_wrapper TEST_DIR/t.qcow2 -c write 0 512
    444 Adding two and closing one
    445 { 'execute': 'human-monitor-command',
    446            'arguments': { 'command-line': 'drive_add 0 if=none,id=d0,file=TEST_DIR/t.IMGFMT,readonly=on' } }
    447 {"return": "OKrn"}
    448 { 'execute': 'human-monitor-command',
    449            'arguments': { 'command-line': 'drive_add 0 if=none,id=d1,file=TEST_DIR/t.IMGFMT,readonly=on' } }
    450 {"return": "OKrn"}
    451 
    452 _qemu_img_wrapper info TEST_DIR/t.qcow2
    453 { 'execute': 'human-monitor-command',
    454        'arguments': { 'command-line': 'drive_del d0' } }
    455 {"return": ""}
    456 
    457 _qemu_io_wrapper TEST_DIR/t.qcow2 -c write 0 512
    458 qemu-io: can't open device TEST_DIR/t.qcow2: Failed to get "write" lock
    459 Is another process using the image [TEST_DIR/t.qcow2]?
    460 Closing the other
    461 { 'execute': 'human-monitor-command',
    462        'arguments': { 'command-line': 'drive_del d1' } }
    463 {"return": ""}
    464 
    465 _qemu_io_wrapper TEST_DIR/t.qcow2 -c write 0 512
    466 
    467 == Detecting -U and force-share conflicts ==
    468 
    469 No conflict:
    470 image: null-co://
    471 file format: null-co
    472 virtual size: 1 GiB (1073741824 bytes)
    473 disk size: 0 B
    474 
    475 Conflict:
    476 qemu-img: --force-share/-U conflicts with image options
    477 
    478 No conflict:
    479 
    480 Conflict:
    481 qemu-io: -U conflicts with image options
    482 *** done