1. 18 3月, 2015 3 次提交
  2. 16 2月, 2015 1 次提交
    • M
      nbd: Drop BDS backpointer · f53a829b
      Max Reitz 提交于
      Before this patch, the "opaque" pointer in an NBD BDS points to a
      BDRVNBDState, which contains an NbdClientSession object, which in turn
      contains a pointer to the BDS. This pointer may become invalid due to
      bdrv_swap(), so drop it, and instead pass the BDS directly to the
      nbd-client.c functions which then retrieve the NbdClientSession object
      from there.
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      Reviewed-by: NPaolo Bonzini <pbonzini@redhat.com>
      Message-id: 1423256778-3340-2-git-send-email-mreitz@redhat.com
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      f53a829b
  3. 07 2月, 2015 1 次提交
    • M
      nbd: Improve error messages · 1ce52846
      Max Reitz 提交于
      This patch makes use of the Error object for nbd_receive_negotiate() so
      that errors during negotiation look nicer.
      
      Furthermore, this patch adds an additional error message if the received
      magic was wrong, but would be correct for the other protocol version,
      respectively: So if an export name was specified, but the NBD server
      magic corresponds to an old handshake, this condition is explicitly
      signaled to the user, and vice versa.
      
      As these messages are now part of the "Could not open image" error
      message, additional filtering has to be employed in iotest 083, which
      this patch does as well.
      Signed-off-by: NMax Reitz <mreitz@redhat.com>
      Reviewed-by: NPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      1ce52846
  4. 10 12月, 2014 1 次提交
  5. 30 6月, 2014 2 次提交
  6. 22 2月, 2014 3 次提交
  7. 03 5月, 2013 1 次提交
    • 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
  8. 23 3月, 2013 2 次提交
  9. 19 12月, 2012 1 次提交
  10. 19 9月, 2012 6 次提交
  11. 19 4月, 2012 2 次提交
  12. 22 12月, 2011 4 次提交
  13. 19 9月, 2011 2 次提交
  14. 12 9月, 2011 1 次提交
  15. 09 9月, 2011 1 次提交
  16. 03 9月, 2011 1 次提交
    • S
      Use new macro QEMU_PACKED for packed structures · 541dc0d4
      Stefan Weil 提交于
      Most changes were made using these commands:
      
      git grep -la '__attribute__((packed))'|xargs perl -pi -e 's/__attribute__\(\(packed\)\)/QEMU_PACKED/'
      git grep -la '__attribute__ ((packed))'|xargs perl -pi -e 's/__attribute__ \(\(packed\)\)/QEMU_PACKED/'
      git grep -la '__attribute__((__packed__))'|xargs perl -pi -e 's/__attribute__\(\(__packed__\)\)/QEMU_PACKED/'
      git grep -la '__attribute__ ((__packed__))'|xargs perl -pi -e 's/__attribute__ \(\(__packed__\)\)/QEMU_PACKED/'
      git grep -la '__attribute((packed))'|xargs perl -pi -e 's/__attribute\(\(packed\)\)/QEMU_PACKED/'
      
      Whitespace in linux-user/syscall_defs.h was fixed manually
      to avoid warnings from scripts/checkpatch.pl.
      
      Manual changes were also applied to hw/pc.c.
      
      I did not fix indentation with tabs in block/vvfat.c.
      The patch will show 4 errors with scripts/checkpatch.pl.
      Signed-off-by: NStefan Weil <weil@mail.berlios.de>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      541dc0d4
  17. 07 4月, 2011 1 次提交
    • N
      NBD: Use qemu_socket functions to open TCP and UNIX sockets · c12504ce
      Nick Thomas 提交于
      This commit has the side-effect of making the qemu-nbd binary
      capable of binding to IPv6 addresses. ("-b ::1", for instance).
      block/nbd.c fails to parse IPv6 IP addresses correctly at this
      point, but will work over IPv6 when given a hostname. It still
      works over IPv4 as before.
      
      We move the qemu-sockets object from the 'common' to the 'block'
      list in the Makefile. The common list includes the block list,
      so this is effectively a no-op for the rest of the code.
      
      We also add 32-bit 'magic' attributes to nbd_(request|reply) to
      facilitate calculating maximum request/response sizes later.
      Signed-off-by: NNick Thomas <nick@bytemark.co.uk>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      c12504ce
  18. 04 9月, 2010 1 次提交
  19. 31 8月, 2010 1 次提交
    • L
      nbd: Introduce NBD named exports. · 1d45f8b5
      Laurent Vivier 提交于
      This patch allows to connect Qemu using NBD protocol to an nbd-server
      using named exports.
      
      For instance, if on the host "isoserver", in /etc/nbd-server/config, you have:
      
      [generic]
      [debian-500-ppc-netinst]
              exportname = /ISO/debian-500-powerpc-netinst.iso
      [Fedora-10-ppc-netinst]
              exportname = /ISO/Fedora-10-ppc-netinst.iso
      
      You can connect to it, using:
      
          qemu -cdrom nbd:isoserver:exportname=debian-500-ppc-netinst
          qemu -cdrom nbd:isoserver:exportname=Fedora-10-ppc-netinst
      
      NOTE: you need at least nbd-server 2.9.18
      Signed-off-by: NLaurent Vivier <laurent@vivier.eu>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      1d45f8b5
  20. 14 6月, 2010 1 次提交
  21. 17 7月, 2009 1 次提交
  22. 05 1月, 2009 1 次提交
  23. 10 9月, 2008 1 次提交
  24. 03 7月, 2008 1 次提交