Displaying 12 results from an estimated 12 matches for "test_590_aio_copy".
2019 Aug 13
0
[PATCH libnbd 6/6] lib: Make all completion callbacks into OClosures.
...on callback. For the Python and OCaml
APIs the parameter changes to be an optional parameter.
---
generator/generator | 36 +++++++++----------
ocaml/examples/asynch_copy.ml | 5 +--
.../test_505_aio_pread_structured_callback.ml | 12 ++++---
ocaml/tests/test_590_aio_copy.ml | 5 +--
4 files changed, 30 insertions(+), 28 deletions(-)
diff --git a/generator/generator b/generator/generator
index 3add9a4..7f20950 100755
--- a/generator/generator
+++ b/generator/generator
@@ -1836,9 +1836,8 @@ C<nbd_pread>.";
"aio_pread_callback"...
2019 Aug 13
0
[PATCH libnbd v2 2/3] lib: Make all completion callbacks into OClosures.
...on callback. For the Python and OCaml
APIs the parameter changes to be an optional parameter.
---
generator/generator | 36 +++++++++----------
ocaml/examples/asynch_copy.ml | 5 +--
.../test_505_aio_pread_structured_callback.ml | 12 ++++---
ocaml/tests/test_590_aio_copy.ml | 5 +--
4 files changed, 30 insertions(+), 28 deletions(-)
diff --git a/generator/generator b/generator/generator
index 8f15786..6ccfc5f 100755
--- a/generator/generator
+++ b/generator/generator
@@ -1836,9 +1836,8 @@ C<nbd_pread>.";
"aio_pread_callback"...
2019 Aug 12
0
[PATCH libnbd 3/7] ocaml: Remove NBD.Buffer.free function, use a free callback instead.
...a2475c56.
---
generator/generator | 43 +++++++++++++++++++++-----------
ocaml/buffer.c | 22 ----------------
ocaml/examples/asynch_copy.ml | 4 +--
ocaml/libnbd-ocaml.pod | 22 ----------------
ocaml/nbd-c.h | 8 ++++++
ocaml/tests/test_590_aio_copy.ml | 4 +--
6 files changed, 39 insertions(+), 64 deletions(-)
diff --git a/generator/generator b/generator/generator
index d6b9352..92ce170 100755
--- a/generator/generator
+++ b/generator/generator
@@ -4961,10 +4961,6 @@ module Buffer : sig
(** Allocate an uninitialized buffer. The paramete...
2019 Aug 14
0
[PATCH libnbd 2/2] ocaml: Remove NBD.Buffer.free function, use the completion callback instead.
...everts part of commit fef1c281a65d061127bf178e5f8cfca0a2475c56.
---
generator/generator | 59 +++++++++++++++++++++-----------
ocaml/buffer.c | 22 ------------
ocaml/examples/asynch_copy.ml | 4 +--
ocaml/libnbd-ocaml.pod | 22 ------------
ocaml/tests/test_590_aio_copy.ml | 4 +--
5 files changed, 41 insertions(+), 70 deletions(-)
diff --git a/generator/generator b/generator/generator
index a31821d..704c57e 100755
--- a/generator/generator
+++ b/generator/generator
@@ -4742,10 +4742,6 @@ module Buffer : sig
(** Allocate an uninitialized buffer. The paramete...
2019 Aug 14
4
[PATCH libnbd 0/2] Use free callback to dereference NBD.Buffer.
In this patch series we use the newly introduced free callback
on the completion function to dererence the OCaml NBD.Buffer.
I will make the same kind of change for Python later in a
separate series.
The completion function is always called at the C level, even
if the OCaml program didn't use the optional argument. That's
because the free callback doesn't run otherwise.
There is a
2019 Aug 13
7
[PATCH libnbd v2 0/3] Implement OClosures.
v1 was here:
https://www.redhat.com/archives/libguestfs/2019-August/msg00168.html
I pushed uncontroversial patches 1-4
v2:
- The implementation of OClosure (new patch 1) in Python is fixed.
- Patch 2 (old patch 5) is unchanged.
- I added a new API for removing debug callbacks. I think this
approach has some advantages over using OClosure.
- I didn't yet do any work on changing the
2019 Aug 13
2
[PATCH libnbd] api: Rename nbd_aio_*_callback to nbd_aio_*.
This applies on top of the OClosure v2 series posted a few
minutes ago.
Rich.
2019 Aug 13
0
[PATCH libnbd] api: Rename nbd_aio_*_callback to nbd_aio_*.
...eads-and-writes.c | 4 +-
generator/generator | 184 ++++--------------
lib/rw.c | 139 ++++---------
ocaml/examples/asynch_copy.ml | 4 +-
.../test_505_aio_pread_structured_callback.ml | 8 +-
ocaml/tests/test_590_aio_copy.ml | 4 +-
python/t/505-aio-pread-callback.py | 24 +--
python/t/510-aio-pwrite.py | 2 +-
tests/aio-parallel-load.c | 4 +-
tests/aio-parallel.c | 4 +-
tests/closure-lifetimes.c |...
2019 Aug 15
13
[PATCH libnbd v2 00/10] Callbacks and OCaml and Python persistent buffers.
This is a combination of these two earlier series:
https://www.redhat.com/archives/libguestfs/2019-August/msg00235.html
https://www.redhat.com/archives/libguestfs/2019-August/msg00240.html
plus changes to allow .callback = NULL / .free != NULL, and to reduce
the complexity of freeing callbacks.
Although it's rather long there's nothing complex here. We might
consider squashing some
2019 Aug 13
12
[PATCH 0/6] Implement OClosure.
Patches 1-4 are basically uncontroversial, straightforward refactoring
and IMHO we should just push them. Possibly 1-3 should be squashed
together, but I posted them separately so they are easier to review.
Patches 5 and 6 together implement OClosure. Patch 5 adds the feature
and is simple to understand.
Patch 6 changes the Closure completion callbacks into OClosure, but
because it doesn't
2019 Aug 12
14
[PATCH libnbd 0/7] Add free callbacks and remove valid_flag.
As proposed here:
https://www.redhat.com/archives/libguestfs/2019-August/msg00130.html
I didn't actually read Eric's replies to that yet because I've been
concentrating on writing these patches all day. Anyway here they are
and I'll look at what Eric said about the proposal next.
Rich.
2019 Aug 13
1
Re: [PATCH libnbd] api: Rename nbd_aio_*_callback to nbd_aio_*.
...f, offset) ->
> (* Note the size of the write is implicitly stored in buf. *)
> - ignore (NBD.aio_pwrite_callback dst buf offset
> + ignore (NBD.aio_pwrite dst buf offset
> ~completion:(write_completed buf))
and here
> +++ b/ocaml/tests/test_590_aio_copy.ml
> @@ -71,7 +71,7 @@ let asynch_copy src dst =
> if !soff < size && NBD.aio_in_flight src < max_reads_in_flight then (
> let bs = min bs (size -^ !soff) in
> let buf = NBD.Buffer.alloc (Int64.to_int bs) in
> - ignore (NBD.aio_pread_callback src...