1. 10 12月, 2014 2 次提交
  2. 14 10月, 2014 1 次提交
  3. 29 8月, 2014 3 次提交
  4. 30 6月, 2014 2 次提交
  5. 27 6月, 2014 1 次提交
    • H
      nbd: Don't validate from and len in NBD_CMD_DISC. · 8c5d1abb
      Hani Benhabiles 提交于
      These values aren't used in this case.
      
      Currently, the from field in the request sent by the nbd kernel module leading
      to a false error message when ending the connection with the client.
      
      $ qemu-nbd some.img -v
      // After nbd-client -d /dev/nbd0
      nbd.c:nbd_trip():L1031: From: 18446744073709551104, Len: 0, Size: 20971520,
      Offset: 0
      nbd.c:nbd_trip():L1032: requested operation past EOF--bad client?
      nbd.c:nbd_receive_request():L638: read failed
      Signed-off-by: NHani Benhabiles <kroosec@gmail.com>
      Cc: qemu-stable@nongnu.org
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      8c5d1abb
  6. 24 5月, 2014 1 次提交
  7. 22 2月, 2014 3 次提交
  8. 16 12月, 2013 1 次提交
  9. 06 9月, 2013 1 次提交
  10. 23 8月, 2013 1 次提交
  11. 03 5月, 2013 2 次提交
    • S
      nbd: support large NBD requests · 2d821488
      Stefan Hajnoczi 提交于
      The Linux nbd driver recently increased the maximum supported request
      size up to 32 MB:
      
        commit 078be02b80359a541928c899c2631f39628f56df
        Author: Michal Belczyk <belczyk@bsd.krakow.pl>
        Date:   Tue Apr 30 15:28:28 2013 -0700
      
            nbd: increase default and max request sizes
      
            Raise the default max request size for nbd to 128KB (from 127KB) to get it
            4KB aligned.  This patch also allows the max request size to be increased
            (via /sys/block/nbd<x>/queue/max_sectors_kb) to 32MB.
      
      QEMU's 1 MB buffers are too small to handle these requests.
      
      This patch allocates data buffers dynamically and allows up to 32 MB per
      request.
      Reported-by: NNick Thomas <nick@bytemark.co.uk>
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      2d821488
    • S
      nbd: use g_slice_new() instead of a freelist · e1adb27a
      Stefan Hajnoczi 提交于
      Use GLib's efficient slice allocator instead of open-coding the request
      freelist.  This patch simplifies the NBDRequest code.
      
      Now we qemu_blockalign() the req->data buffer each time but the next
      patch switches from a fixed size buffer to a dynamic size anyway.
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      e1adb27a
  12. 02 4月, 2013 1 次提交
  13. 23 3月, 2013 2 次提交
  14. 19 12月, 2012 2 次提交
  15. 28 11月, 2012 1 次提交
  16. 13 11月, 2012 1 次提交
  17. 23 10月, 2012 2 次提交
  18. 26 9月, 2012 1 次提交
  19. 19 9月, 2012 10 次提交
  20. 18 9月, 2012 1 次提交
  21. 14 8月, 2012 1 次提交