[Libguestfs] [libnbd PATCH 0/2] NBD_OPT_INFO support

Eric Blake eblake at redhat.com
Wed Aug 19 01:53:16 UTC 2020


This replaces 13/13 of my v2 series; and now that it has pretty good
testsuite coverage and demonstrable performance improvement to
nbdinfo, I'm going ahead and pushing this now.  We may still want to
add further nbd_opt_* commands for other fine-grained tuning of
negotiation, but for now, I think things have stabilized on this end,
and I can return to polishing .list_exports on the nbdkit end.

Eric Blake (2):
  api: add nbd_opt_info, nbd_aio_opt_info
  info: Use nbd_opt_info for fewer handles during --list

 docs/libnbd.pod                               |   4 +
 info/nbdinfo.pod                              |   2 +
 generator/API.ml                              | 116 ++++++---
 generator/states-newstyle-opt-go.c            |  26 +-
 generator/states-newstyle.c                   |   1 +
 lib/flags.c                                   |  12 +
 lib/opt.c                                     |  38 +++
 python/t/230-opt-info.py                      |  82 +++++++
 ocaml/tests/Makefile.am                       |   3 +
 ocaml/tests/test_230_opt_info.ml              | 108 +++++++++
 tests/Makefile.am                             |  11 +
 tests/newstyle-limited.c                      |   8 +
 tests/opt-info.c                              | 196 +++++++++++++++
 tests/opt-info.sh                             |  45 ++++
 .gitignore                                    |   1 +
 TODO                                          |  13 -
 .../libnbd/libnbd_230_opt_info_test.go        | 225 ++++++++++++++++++
 info/nbdinfo.c                                |  56 +++--
 18 files changed, 872 insertions(+), 75 deletions(-)
 create mode 100644 python/t/230-opt-info.py
 create mode 100644 ocaml/tests/test_230_opt_info.ml
 create mode 100644 tests/opt-info.c
 create mode 100755 tests/opt-info.sh
 create mode 100644 golang/src/libguestfs.org/libnbd/libnbd_230_opt_info_test.go

-- 
2.28.0




More information about the Libguestfs mailing list