In v2:
- now based on my proposal to add LIBNBD_SHUTDOWN_IMMEDIATE
- four flags instead of two: STRICT_FLAGS is new (patch 4),
and STRICT_BOUNDS is separate from STRICT_ZERO_SIZE (patch 5)
- various refactorings for more shared code and less duplication
Eric Blake (5):
api: Add xxx_MASK constant for each Flags type
generator: Refactor filtering of accepted OFlags
api: Add nbd_set_strict_mode
api: Add STRICT_FLAGS to set_strict_mode
api: Add STRICT_BOUNDS/ZERO_SIZE to nbd_set_strict_mode
docs/libnbd.pod | 7 +
lib/internal.h | 6 +-
generator/API.ml | 291 ++++++++++++++----
generator/API.mli | 4 +-
generator/C.ml | 38 ++-
generator/GoLang.ml | 18 +-
generator/OCaml.ml | 15 +-
generator/Python.ml | 15 +-
lib/disconnect.c | 13 +-
lib/handle.c | 21 +-
lib/rw.c | 232 ++++++--------
python/t/110-defaults.py | 3 +-
python/t/120-set-non-defaults.py | 5 +-
ocaml/tests/test_110_defaults.ml | 3 +-
ocaml/tests/test_120_set_non_defaults.ml | 3 +-
tests/errors.c | 72 ++++-
.../libnbd/libnbd_110_defaults_test.go | 2 +-
.../libnbd_120_set_non_defaults_test.go | 4 +-
18 files changed, 488 insertions(+), 264 deletions(-)
--
2.28.0