1. 09 Mar, 2022 4 commits
  2. 17 Feb, 2019 2 commits
  3. 15 Feb, 2019 2 commits
  4. 14 Feb, 2019 2 commits
  5. 13 Feb, 2019 2 commits
  6. 12 Feb, 2019 2 commits
  7. 16 Dec, 2018 2 commits
  8. 28 Nov, 2018 1 commit
    • Wouter Verhelst's avatar
      Change blocksize to 512 · 128fd556
      Wouter Verhelst authored
      1024 bytes was originally chosen as fitting nicely inside an ethernet
      frame. That didn't really make much sense, but the issue was masked by
      the kernel actually ignoring block sizes due to a bug.
      
      Now that the kernel bug is fixed, the result is that partitions are
      parsed incorrectly, resulting in confusing behaviour.
      
      Fix by defaulting to 512. For the rare case where 1024 bytes still makes
      sense, the -b parameter still exists.
      128fd556
  9. 27 Nov, 2018 1 commit
    • Wouter Verhelst's avatar
      Squashed commit of the following: · 8689a6a7
      Wouter Verhelst authored
      
      
      Closes: gh-90
      
      commit 2e7b8e0d649267d2824de0f1d0c02fa23125219b
      Author: Austin S. Hemmelgarn <ahferroin7@gmail.com>
      Date:   Mon Nov 26 10:32:02 2018 -0500
      
          Simplify listening socket creation logic.
      
          As suggested by @yoe.
      
      commit 73518c1a931e3a309d5233d562cc53c683bcdc88
      Author: Austin S. Hemmelgarn <ahferroin7@gmail.com>
      Date:   Thu Nov 15 09:25:22 2018 -0500
      
          nbd-server: Add an option to listen on both UDS and TCP/SDP
      
          This adds a configuration parameter `duallisten` for nbd-server.  When
          true and a unix socket is specified, this will cause nbd-server to also
          listen on any TCP/SDP sockets it would have listened on if the unix
          socket had not been specified.
      
      commit 3dd8449db6ef6198813230026879c0df0c087e7e
      Author: Austin S. Hemmelgarn <ahferroin7@gmail.com>
      Date:   Fri Nov 9 10:08:55 2018 -0500
      
          Don't listen on TCP if we are using a UNIX socket.
      
          Currently, `nbd-server` will open a listening TCP socket even if it's
          been asked to use a UNIX domain socket.  This is inconsistent with
          typical behavior of applications which can use UNIX sockets, and may
          present a security risk on some systems.
      
          This commit modifies this behavior so that use of a UNIX socket and
          other types of socket is mutually exclusive.  You can only listen on a
          regular (TCP or SDP) socket or a UNIX socket, but not both, with the
          prescense of the `unixsock` option taking precendence over any other
          listener configuration.
      
          This has a small potential to break some existing installations, though
          they are arguably depending on broken behavior to begin with.
      
          The manual page is also updated to reflect this change.
      
      Signed-off-by: default avatarAustin S. Hemmelgarn <ahferroin7@gmail.com>
      8689a6a7
  10. 23 Nov, 2018 1 commit
    • Wouter Verhelst's avatar
      Copy editing · 7e23b47b
      Wouter Verhelst authored
      - Remove incorrect -netlink parameter from options (no such option
        exists)
      - Move the "TLS support" section to a more appropriate place
      7e23b47b
  11. 14 Nov, 2018 1 commit
    • Axel Wagner's avatar
      Pass SERVER* to send_export_info explicitly · 58110cfc
      Axel Wagner authored
      When the client sends a NBD_OPT_INFO request, commit_client is not
      called. So client->server does not get set, causing nbd-server to
      segfault. Passing the SERVER* explicitly allows us to send the export
      info without committing first.
      58110cfc
  12. 05 Oct, 2018 1 commit
  13. 03 Oct, 2018 4 commits
  14. 18 Sep, 2018 1 commit
  15. 10 Sep, 2018 2 commits
  16. 09 Sep, 2018 1 commit
  17. 07 Sep, 2018 11 commits