[Libguestfs] [nbdkit PATCH 0/3] Fix some NBDKIT_EMULATE_ bugs

Eric Blake eblake at redhat.com
Fri Jun 10 15:55:24 UTC 2022


Rich pointed out an assertion failure in the luks filter caused by a
bug in backend.c's handling of NBDKIT_EMULATE_ZERO for .can_zero;
while fixing it, I found a different bug in NBDKIT_EMULATE_CACHE.

Eric Blake (3):
  server: Fix NBDKIT_ZERO_EMULATE from filters
  server: Fix NBDKIT_CACHE_EMULATE
  tests: Add regression test for NBDKIT_EMULATE_CACHE fix

 docs/nbdkit-filter.pod   |  8 ++--
 docs/nbdkit-plugin.pod   |  3 +-
 tests/Makefile.am        |  2 +
 server/backend.c         | 38 +++++++++++++++++-
 filters/nozero/nozero.c  | 39 ++----------------
 tests/test-eval-cache.sh | 85 ++++++++++++++++++++++++++++++++++++++++
 tests/test-nozero.sh     | 78 ++++++++++++++++--------------------
 7 files changed, 167 insertions(+), 86 deletions(-)
 create mode 100755 tests/test-eval-cache.sh

-- 
2.36.1



More information about the Libguestfs mailing list