1. 09 Mar, 2022 3 commits
  2. 24 Apr, 2017 2 commits
    • Wouter Verhelst's avatar
      Changelog entry · 6679e5e5
      Wouter Verhelst authored
      6679e5e5
    • Wouter Verhelst's avatar
      Regenerate certificate · 53230df1
      Wouter Verhelst authored
      
      
      Although the configuration file specified a validity of 3650 days (i.e.,
      almost 10 years), the actual certificate in this directory was generated
      with a certificate validity of 1 year. It expired on april 19th, 2017
      (i.e., 5 days ago), causing the test suite to fail from now on.
      
      Fix by regenerating the certificate (not the keys) of the certificate
      with the actual configuration in this directory.
      
      Signed-off-by: Wouter Verhelst's avatarWouter Verhelst <w@uter.be>
      53230df1
  3. 22 Mar, 2017 1 commit
  4. 21 Mar, 2017 9 commits
  5. 21 Feb, 2017 3 commits
  6. 23 Jan, 2017 4 commits
    • Wouter Verhelst's avatar
      Use AM_CONDITIONAL rather than AC_SUBST · dce8c776
      Wouter Verhelst authored
      
      
      AC_SUBST'ing the nbd-client program worked when we didn't need to
      compile the client twice. Now that we do, this makes us try to compile
      the minimal (i.e., non-TLS) client even if we're on a system where the
      client can't be compiled. This is obviously wrong.
      
      Fix it by using AM_CONDITIONAL a second time, and nesting the whole
      GnuTLS conditional below that.
      
      Signed-off-by: Wouter Verhelst's avatarWouter Verhelst <w@uter.be>
      dce8c776
    • Wouter Verhelst's avatar
      Don't seek() in files without holding a lock. · a43a2d80
      Wouter Verhelst authored
      
      
      The introduction of multithread handling of requests failed to consider
      what happens with copyonwrite enabled. We would seek, then read (or
      write), a file.
      
      If we have copyonwrite enabled, this fails badly in that two threads can
      race against eachother for the current file pointer. Instead, we should
      use pread() or pwrite() to read from offset without relying on the
      current file offset, as explained in #43.
      
      Remove the myseek() function to ensure we don't make use of it anymore,
      and fix up all callers.
      
      The only exception where we can still use lseek() safely is in the
      open_treefile() function, since there we hold a mutex and hence we can't
      race against other threads.
      
      TODO: test whether this fixes the problem.
      
      Signed-off-by: Wouter Verhelst's avatarWouter Verhelst <w@uter.be>
      a43a2d80
    • Wouter Verhelst's avatar
      Use AM_CONDITIONAL rather than AC_SUBST · 4ba8130f
      Wouter Verhelst authored
      
      
      AC_SUBST'ing the nbd-client program worked when we didn't need to
      compile the client twice. Now that we do, this makes us try to compile
      the minimal (i.e., non-TLS) client even if we're on a system where the
      client can't be compiled. This is obviously wrong.
      
      Fix it by using AM_CONDITIONAL a second time, and nesting the whole
      GnuTLS conditional below that.
      
      Signed-off-by: Wouter Verhelst's avatarWouter Verhelst <w@uter.be>
      4ba8130f
    • Wouter Verhelst's avatar
      Don't seek() in files without holding a lock. · e83dd396
      Wouter Verhelst authored
      
      
      The introduction of multithread handling of requests failed to consider
      what happens with copyonwrite enabled. We would seek, then read (or
      write), a file.
      
      If we have copyonwrite enabled, this fails badly in that two threads can
      race against eachother for the current file pointer. Instead, we should
      use pread() or pwrite() to read from offset without relying on the
      current file offset, as explained in #43.
      
      Remove the myseek() function to ensure we don't make use of it anymore,
      and fix up all callers.
      
      The only exception where we can still use lseek() safely is in the
      open_treefile() function, since there we hold a mutex and hence we can't
      race against other threads.
      
      TODO: test whether this fixes the problem.
      
      Signed-off-by: Wouter Verhelst's avatarWouter Verhelst <w@uter.be>
      e83dd396
  7. 22 Jan, 2017 1 commit
  8. 17 Jan, 2017 1 commit
  9. 20 Dec, 2016 14 commits
  10. 19 Dec, 2016 2 commits