You need to sign in or sign up before continuing.
  1. 15 3月, 2016 1 次提交
  2. 14 3月, 2016 2 次提交
  3. 01 3月, 2016 2 次提交
  4. 22 2月, 2016 5 次提交
    • S
      qemu-iotests: 140: make description slightly more verbose · 43e15ed4
      Sascha Silbe 提交于
      Describe in a little more detail what the test is supposed to achieve.
      Signed-off-by: NSascha Silbe <silbe@linux.vnet.ibm.com>
      Message-id: 1455827853-33477-3-git-send-email-silbe@linux.vnet.ibm.com
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      43e15ed4
    • S
      qemu-iotests: 140: don't use IDE device · 4b84fc70
      Sascha Silbe 提交于
      IDE is only implemented by very few architectures (mostly PC). The
      test doesn't actually need a block device attached to the
      BlockBackend, so just drop it and adjust the reference output
      accordingly.
      
      Fixes: 16dee418 ("iotests: Add test for eject under NBD server")
      Signed-off-by: NSascha Silbe <silbe@linux.vnet.ibm.com>
      Message-id: 1455827853-33477-2-git-send-email-silbe@linux.vnet.ibm.com
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      4b84fc70
    • S
      qemu-iotests: 067: ignore QMP events · f436c941
      Sascha Silbe 提交于
      The relative ordering of "device_del" return value and the
      "DEVICE_DELETED" QMP event depends on the architecture being
      tested. On x86 unplugging virtio disks is asynchronous
      (=qdev_unplug()= → =hotplug_handler_unplug_request()=) while on s390x
      it is synchronous (=qdev_unplug()= → =hotplug_handler_unplug()=). This
      leads to the actual output on s390x consistently differing from the
      reference output (that was probably produced on x86).
      
      The easiest way to address this is to filter out QMP events in
      067. The DEVICE_DELETED event is already getting explicitly tested by
      the Python-based test case 139, so the test coverage should be
      unaffected. Make use of the recently introduced _filter_qmp_events()
      to remove QMP events from the test case output and adjust the
      reference output accordingly.
      
      The tr / sed / tr trick used for filtering was suggested by Max Reitz
      <mreitz@redhat.com>.
      Signed-off-by: NSascha Silbe <silbe@linux.vnet.ibm.com>
      Message-id: 1455886869-139916-2-git-send-email-silbe@linux.vnet.ibm.com
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      f436c941
    • A
      qemu-iotests: Extend iotest 093 to test bursts · a90cade0
      Alberto Garcia 提交于
      This patch adds a new test that checks that the burst settings
      ('iops_max', 'iops_max_length', etc.) of the throttling code work as
      expected.
      Signed-off-by: NAlberto Garcia <berto@igalia.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      a90cade0
    • K
      block: Fix -incoming with snapshot=on · 12d5ee3a
      Kevin Wolf 提交于
      The BDRV_O_INACTIVE flag should only be set for images explicitly opened
      by the user. snapshot=on needs to create a new qcow2 image and write
      some metadata to it. This is not a problem because it can't come from
      the source, so there's no reason to mark it as BDRV_O_INACTIVE, even
      though it is opened while waiting for the migration to complete.
      
      This fixes an assertion failure when -incoming and snapshot=on are
      combined.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      12d5ee3a
  5. 17 2月, 2016 1 次提交
    • D
      nbd: always query export list in fixed new style protocol · 9344e5f5
      Daniel P. Berrange 提交于
      With the new style protocol, the NBD client will currenetly
      send NBD_OPT_EXPORT_NAME as the first (and indeed only)
      option it wants. The problem is that the NBD protocol spec
      does not allow for returning an error message with the
      NBD_OPT_EXPORT_NAME option. So if the server mandates use
      of TLS, the client will simply see an immediate connection
      close after issuing NBD_OPT_EXPORT_NAME which is not user
      friendly.
      
      To improve this situation, if we have the fixed new style
      protocol, we can sent NBD_OPT_LIST as the first option
      to query the list of server exports. We can check for our
      named export in this list and raise an error if it is not
      found, instead of going ahead and sending NBD_OPT_EXPORT_NAME
      with a name that we know will be rejected.
      
      This improves the error reporting both in the case that the
      server required TLS, and in the case that the client requested
      export name does not exist on the server.
      
      If the server does not support NBD_OPT_LIST, we just ignore
      that and carry on with NBD_OPT_EXPORT_NAME as before.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      Message-Id: <1455129674-17255-12-git-send-email-berrange@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      9344e5f5
  6. 16 2月, 2016 1 次提交
  7. 09 2月, 2016 1 次提交
  8. 03 2月, 2016 15 次提交
  9. 20 1月, 2016 4 次提交
  10. 16 1月, 2016 1 次提交
    • F
      nbd: Split nbd.c · 798bfe00
      Fam Zheng 提交于
      We have NBD server code and client code, all mixed in a file. Now split
      them into separate files under nbd/, and update MAINTAINERS.
      
      filter_nbd for iotest 083 is updated to keep the log filtered out.
      Signed-off-by: NFam Zheng <famz@redhat.com>
      Message-Id: <1452760863-25350-3-git-send-email-famz@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      798bfe00
  11. 13 1月, 2016 3 次提交
    • M
      vhdx: Fix "log that needs to be replayed" error message · bf89e874
      Markus Armbruster 提交于
      The arguments of error_setg_errno() should yield a short error string
      without newlines.
      
      Here, we try to append additional help to the error message by
      embedding newlines in the error string.  That's nice, but it's doesn't
      play nicely with the errno part.  tests/qemu-iotests/070.out shows the
      resulting mess:
      
          can't open device TEST_DIR/iotest-dirtylog-10G-4M.vhdx: VHDX image file 'TEST_DIR/iotest-dirtylog-10G-4M.vhdx' opened read-only, but contains a log that needs to be replayed.  To replay the log, execute:
           qemu-img check -r all 'TEST_DIR/iotest-dirtylog-10G-4M.vhdx': Operation not permitted
      
      Switch to error_setg() and error_append_hint().  Result:
      
          can't open device TEST_DIR/iotest-dirtylog-10G-4M.vhdx: VHDX image file 'TEST_DIR/iotest-dirtylog-10G-4M.vhdx' opened read-only, but contains a log that needs to be replayed
          To replay the log, run:
          qemu-img check -r all 'TEST_DIR/iotest-dirtylog-10G-4M.vhdx'
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Message-Id: <1450452927-8346-21-git-send-email-armbru@redhat.com>
      bf89e874
    • M
      vmdk: Clean up "Invalid extent lines" error message · d28d737f
      Markus Armbruster 提交于
      vmdk_parse_extents() reports parse errors like this:
      
          error_setg(errp, "Invalid extent lines:\n%s", p);
      
      where p points to the beginning of the malformed line in the image
      descriptor.  This results in a multi-line error message
      
          Invalid extent lines:
          <first line that doesn't parse>
          <remaining text that may or may not parse, if any>
      
      Error messages should not have newlines embedded.  Since the remaining
      text is not helpful, we can simply report:
      
          Invalid extent line: <first line that doesn't parse>
      
      Cc: Fam Zheng <famz@redhat.com>
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Message-Id: <1450452927-8346-19-git-send-email-armbru@redhat.com>
      Reviewed-by: NFam Zheng <famz@redhat.com>
      d28d737f
    • M
      qemu-io qemu-nbd: Use error_report() etc. instead of fprintf() · b9884681
      Markus Armbruster 提交于
      Just three instances left.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Message-Id: <1450452927-8346-16-git-send-email-armbru@redhat.com>
      b9884681
  12. 08 1月, 2016 4 次提交