[Libguestfs] [RFC libnbd PATCH 0/4] Add CMD_FLAG_DF support

Eric Blake eblake at redhat.com
Tue May 28 02:00:57 UTC 2019


RFC because this is an API break, but we haven't declared stable API
yet. If we like it, I'm working on using libnbd to implement the
nbdkit-nbd plugin; knowing whether it is API version 0.1 or 0.2 will
be useful. I also dabbled with allowing optional parameters in python,
although my OCaml is weak enough that there may be cleaner ways to
approach that.

Eric Blake (4):
  api: Add flags parameter to pread, trim, cache, disconnect
  api: Rearrange flags argument to block_status
  python: Let flags parameter be optional
  api: Add DF flag support for pread

 docs/libnbd.pod                      |   6 +-
 examples/batched-read-write.c        |   4 +-
 examples/simple-fetch-first-sector.c |   2 +-
 examples/simple-reads-and-writes.c   |   2 +-
 examples/threaded-reads-and-writes.c |   2 +-
 generator/generator                  | 160 ++++++++++++++++++++-------
 interop/dirty-bitmap.c               |   6 +-
 interop/interop.c                    |   2 +-
 lib/disconnect.c                     |  10 +-
 lib/flags.c                          |  11 ++
 lib/rw.c                             |  51 ++++++---
 python/t/460-block-status.py         |   8 +-
 tests/aio-parallel-load.c            |   2 +-
 tests/aio-parallel.c                 |   2 +-
 tests/connect-tls.c                  |   2 +-
 tests/errors.c                       |   2 +-
 tests/meta-base-allocation.c         |  10 +-
 tests/oldstyle.c                     |   2 +-
 tests/synch-parallel.c               |   2 +-
 19 files changed, 203 insertions(+), 83 deletions(-)

-- 
2.20.1




More information about the Libguestfs mailing list