Displaying 5 results from an estimated 5 matches for "d76eeea".
2019 Aug 13
1
Re: [PATCH libnbd v2 3/3] api: Add nbd_clear_debug_callback.
...the debug callback.
> ---
> generator/generator | 11 +++++++++++
> lib/debug.c | 17 ++++++++++++++---
> lib/handle.c | 4 +---
> 3 files changed, 26 insertions(+), 6 deletions(-)
>
> diff --git a/generator/generator b/generator/generator
> index 6ccfc5f..d76eeea 100755
> --- a/generator/generator
> +++ b/generator/generator
> @@ -1013,6 +1013,17 @@ a handle then messages are printed on C<stderr>.
>
> The callback should not call C<nbd_*> APIs on the same handle since it can
> be called while holding the handle lock and wil...
2019 Aug 13
0
[PATCH libnbd v2 3/3] api: Add nbd_clear_debug_callback.
...other places when we want
to clear/free the debug callback.
---
generator/generator | 11 +++++++++++
lib/debug.c | 17 ++++++++++++++---
lib/handle.c | 4 +---
3 files changed, 26 insertions(+), 6 deletions(-)
diff --git a/generator/generator b/generator/generator
index 6ccfc5f..d76eeea 100755
--- a/generator/generator
+++ b/generator/generator
@@ -1013,6 +1013,17 @@ a handle then messages are printed on C<stderr>.
The callback should not call C<nbd_*> APIs on the same handle since it can
be called while holding the handle lock and will cause a deadlock.";
+};...
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
0
[PATCH libnbd] api: Rename nbd_aio_*_callback to nbd_aio_*.
...cookie = nbd_aio_pread (nbd, buf, size, offset, 0);
+ cookie = nbd_aio_pread (nbd, buf, size, offset, NULL, NULL, 0);
if (cookie == -1) {
fprintf (stderr, "%s\n", nbd_get_error ());
goto error;
diff --git a/generator/generator b/generator/generator
index d76eeea..b713b43 100755
--- a/generator/generator
+++ b/generator/generator
@@ -1829,108 +1829,60 @@ on the connection.";
};
"aio_pread", {
- default_call with
- args = [ BytesPersistOut ("buf", "count"); UInt64 "offset" ];
- optargs = [ OFlags...
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.