Displaying 3 results from an estimated 3 matches for "test_410_pwrit".
Did you mean:
test_410_pwrite
2019 Aug 10
0
[PATCH libnbd 2/9] generator: Generalize OFlags.
...lated
flags into a submodule, basically renaming them. Note we don't
provide guarantees for non-C APIs.
---
generator/generator | 180 +++++++++++++++++------
ocaml/nbd-c.h | 15 --
ocaml/tests/test_405_pread_structured.ml | 6 +-
ocaml/tests/test_410_pwrite.ml | 3 +-
ocaml/tests/test_460_block_status.ml | 3 +-
ocaml/tests/test_510_aio_pwrite.ml | 3 +-
6 files changed, 142 insertions(+), 68 deletions(-)
diff --git a/generator/generator b/generator/generator
index 78c6ca6..5823686 100755
--- a/generator/generator
+++ b/gen...
2019 Aug 10
1
Re: [PATCH libnbd 2/9] generator: Generalize OFlags.
...ured nbd buf 0_L (f 42);
> assert (buf = expected);
>
> - NBD.pread_structured nbd buf 0_L (f 42) ~flags:[NBD.cmd_flag_df];
> + let flags = let open NBD.CMD_FLAG in [DF] in
> +
> + NBD.pread_structured nbd buf 0_L (f 42) ~flags;
blank line here...
> +++ b/ocaml/tests/test_410_pwrite.ml
> @@ -33,7 +33,8 @@ let () =
> let nbd = NBD.create () in
> NBD.connect_command nbd ["nbdkit"; "-s"; "--exit-with-parent"; "-v";
> "file"; datafile];
> - NBD.pwrite nbd buf1 0_L ~flags:[NBD.cmd_f...
2019 Aug 10
17
[PATCH libnbd 0/9] Add Enum and Flags types.
This largish series adds several new features to the generator.
Enum maps to enumerated types (like enum in C). The only current use
for this is replacing the nbd_set_tls (nbd, 0/1/2) parameter with
LIBNBD_TLS_DISABLE, LIBNBD_TLS_ALLOW, LIBNBD_TLS_REQUIRE (and natural
equivalents in other programming languages).
Flags maps to any uint32_t bitmask. It is basically a non-optional,
generalized