[Libguestfs] [libnbd PATCH v2 0/2] opt_list_meta_context

Eric Blake eblake at redhat.com
Fri Oct 2 13:20:11 UTC 2020


In v2: ack'ed preliminary patches have been pushed, and I've added a
lot of testsuite coverage as well as putting the new API to use in
nbdinfo.

Eric Blake (2):
  api: Add nbd_opt_list_meta_context
  info: List available meta-contexts

 lib/internal.h                                |   1 +
 generator/API.ml                              |  84 ++++++++-
 generator/states-newstyle-opt-meta-context.c  |  83 +++++++--
 generator/states-newstyle.c                   |   3 +
 lib/opt.c                                     |  73 ++++++++
 python/t/240-opt-list-meta.py                 |  79 +++++++++
 ocaml/tests/Makefile.am                       |   3 +
 ocaml/tests/test_240_opt_list_meta.ml         |  80 +++++++++
 tests/Makefile.am                             |  10 ++
 tests/opt-list-meta.c                         | 167 ++++++++++++++++++
 .gitignore                                    |   1 +
 TODO                                          |  11 ++
 golang/Makefile.am                            |   1 +
 .../libnbd/libnbd_240_opt_list_meta_test.go   | 146 +++++++++++++++
 info/info-json.sh                             |   2 +
 info/info-list-json.sh                        |   4 +
 info/info-list.sh                             |   2 +
 info/info-text.sh                             |   2 +
 info/nbdinfo.c                                |  89 +++++++++-
 19 files changed, 815 insertions(+), 26 deletions(-)
 create mode 100644 python/t/240-opt-list-meta.py
 create mode 100644 ocaml/tests/test_240_opt_list_meta.ml
 create mode 100644 tests/opt-list-meta.c
 create mode 100644 golang/src/libguestfs.org/libnbd/libnbd_240_opt_list_meta_test.go

-- 
2.28.0




More information about the Libguestfs mailing list