1. 04 6月, 2014 1 次提交
  2. 26 4月, 2014 1 次提交
  3. 22 2月, 2014 2 次提交
    • P
      nbd: correctly propagate errors · 77e8b9ca
      Paolo Bonzini 提交于
      Before:
          $ ./qemu-io-old
          qemu-io-old> open -r -o file.driver=nbd
          one of path and host must be specified.
          qemu-io-old: can't open device (null): Could not open image: Invalid argument
          $ ./qemu-io-old
          qemu-io-old> open -r -o file.driver=nbd,file.host=foo,file.path=bar
          path and host may not be used at the same time.
          qemu-io-old: can't open device (null): Could not open image: Invalid argument
      
      After:
          $ ./qemu-io
          qemu-io> open -r -o file.driver=nbd
          qemu-io: can't open device (null): one of path and host must be specified.
          $ ./qemu-io
          qemu-io> open -r -o file.driver=nbd,file.host=foo,file.path=bar
          qemu-io: can't open device (null): path and host may not be used at the same time.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      Reviewed-by: NFam Zheng <famz@redhat.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      77e8b9ca
    • P
      nbd: produce a better error if neither host nor port is passed · a69d9af4
      Paolo Bonzini 提交于
      Before:
          $ qemu-io-old
          qemu-io-old> open -r -o file.driver=nbd
          qemu-io-old: can't open device (null): Could not open image: Invalid argument
          $ ./qemu-io-old
          qemu-io-old> open -r -o file.driver=nbd,file.host=foo,file.path=bar
          path and host may not be used at the same time.
          qemu-io-old: can't open device (null): Could not open image: Invalid argument
      
      After:
          $ ./qemu-io
          qemu-io> open -r -o file.driver=nbd
          one of path and host must be specified.
          qemu-io: can't open device (null): Could not open image: Invalid argument
          $ ./qemu-io
          qemu-io> open -r -o file.driver=nbd,file.host=foo,file.path=bar
          path and host may not be used at the same time.
          qemu-io: can't open device (null): Could not open image: Invalid argument
      
      Next patch will fix the error propagation.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      Reviewed-by: NFam Zheng <famz@redhat.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      a69d9af4
  4. 18 2月, 2014 1 次提交
  5. 07 1月, 2014 1 次提交
  6. 16 12月, 2013 2 次提交
  7. 12 9月, 2013 1 次提交
  8. 19 8月, 2013 2 次提交
  9. 18 6月, 2013 1 次提交
  10. 12 5月, 2013 1 次提交
  11. 22 4月, 2013 1 次提交
  12. 15 4月, 2013 3 次提交
  13. 02 4月, 2013 1 次提交
  14. 23 3月, 2013 6 次提交
  15. 19 12月, 2012 2 次提交
  16. 12 11月, 2012 2 次提交
  17. 12 6月, 2012 1 次提交
    • M
      cleanup qemu_co_sendv(), qemu_co_recvv() and friends · 2fc8ae1d
      Michael Tokarev 提交于
      The same as for non-coroutine versions in previous
      patches: rename arguments to be more obvious, change
      type of arguments from int to size_t where appropriate,
      and use common code for send and receive paths (with
      one extra argument) since these are exactly the same.
      Use common iov_send_recv() directly.
      
      qemu_co_sendv(), qemu_co_recvv(), and qemu_co_recv()
      are now trivial #define's merely adding one extra arg.
      
      qemu_co_sendv() and qemu_co_recvv() callers are
      converted to different argument order and extra
      `iov_cnt' argument.
      Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
      2fc8ae1d
  18. 26 4月, 2012 1 次提交
  19. 19 4月, 2012 5 次提交
  20. 22 12月, 2011 5 次提交