1. 30 6月, 2018 1 次提交
    • P
      tests: iotests: drop some stderr line · cbc4ae2d
      Peter Xu 提交于
      In my Out-Of-Band test, "check -qcow2 060" fail with this:
      
        --- /home/peterx/git/qemu/tests/qemu-iotests/060.out
        +++ /home/peterx/git/qemu/bin/tests/qemu-iotests/060.out.bad
        @@ -427,8 +427,8 @@
        QMP_VERSION
        {"return": {}}
        qcow2: Image is corrupt: L2 table offset 0x2a2a2a00 unaligned (L1
        index: 0); further non-fatal corruption events will be suppressed
        -{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "BLOCK_IMAGE_CORRUPTED", "data": {"device": "", "msg": "L2 table offset 0x2a2a2a0
        0 unaligned (L1 index: 0)", "node-name": "drive", "fatal": false}}
        read failed: Input/output error
        +{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "BLOCK_IMAGE_CORRUPTED", "data": {"device": "", "msg": "L2 table offset 0x2a2a2a0
        0 unaligned (L1 index: 0)", "node-name": "drive", "fatal": false}}
        {"return": ""}
        {"return": {}}
        {"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP},
        "event": "SHUTDOWN", "data": {"guest": false}}
      
      The order of the event and the in/out error line is swapped.  I didn't
      dig up the reason, but AFAIU what we want to verify is the event rather
      than stderr.  Let's drop the stderr line directly for this test.
      Signed-off-by: NPeter Xu <peterx@redhat.com>
      Message-Id: <20180620073223.31964-5-peterx@redhat.com>
      [Commit message touched up]
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      cbc4ae2d
  2. 11 6月, 2018 1 次提交
  3. 23 1月, 2018 1 次提交
  4. 21 11月, 2017 1 次提交
    • A
      block: Close a BlockDriverState completely even when bs->drv is NULL · 50a3efb0
      Alberto Garcia 提交于
      bdrv_close() skips much of its logic when bs->drv is NULL. This is
      fine when we're closing a BlockDriverState that has just been created
      (because e.g the initialization process failed), but it's not enough
      in other cases.
      
      For example, when a valid qcow2 image is found to be corrupted then
      QEMU marks it as such in the file header and then sets bs->drv to
      NULL in order to make the BlockDriverState unusable. When that BDS is
      later closed then many of its data structures are not freed (leaking
      their memory) and none of its children are detached. This results in
      bdrv_close_all() failing to close all BDSs and making this assertion
      fail when QEMU is being shut down:
      
         bdrv_close_all: Assertion `QTAILQ_EMPTY(&all_bdrv_states)' failed.
      
      This patch makes bdrv_close() do the full uninitialization process
      in all cases. This fixes the problem with corrupted images and still
      works fine with freshly created BDSs.
      Signed-off-by: NAlberto Garcia <berto@igalia.com>
      Message-id: 20171106145345.12038-1-berto@igalia.com
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      50a3efb0
  5. 18 11月, 2017 5 次提交
  6. 15 11月, 2017 7 次提交
  7. 15 4月, 2016 1 次提交
  8. 24 1月, 2015 1 次提交
  9. 10 12月, 2014 1 次提交
  10. 05 10月, 2014 1 次提交
  11. 22 9月, 2014 1 次提交
  12. 15 8月, 2014 1 次提交
  13. 28 6月, 2014 1 次提交
  14. 15 5月, 2014 1 次提交
  15. 09 5月, 2014 1 次提交
  16. 13 3月, 2014 1 次提交
  17. 09 2月, 2014 1 次提交
  18. 11 10月, 2013 1 次提交
  19. 12 9月, 2013 1 次提交
    • M
      qemu-iotests: Adjustments due to error propagation · 2c78857b
      Max Reitz 提交于
      When opening/creating images, propagating errors instead of immediately
      emitting them on occurrence results in errors generally being printed on
      a single line rather than being split up into multiple ones. This in
      turn requires adjustments to some test results.
      
      Also, test 060 used a sed to filter out the test image directory and
      format by removing everything from the affected line after a certain
      keyword; this now also removes the error message itself, which can be
      fixed by using _filter_testdir and _filter_imgfmt.
      
      Finally, _make_test_img in common.rc did not filter out the test image
      directory etc. from stderr. This has been fixed through a redirection of
      stderr to stdout (which is already done in _check_test_img and
      _img_info).
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      2c78857b
  20. 02 9月, 2013 1 次提交