Displaying 4 results from an estimated 4 matches for "e552db8".
2019 Aug 10
0
[PATCH libnbd 1/5] python: Change aio_buffer into nbd.Buffer class.
...cookie = h.aio_pread (buf, 0)
while not (h.aio_command_completed (cookie)):
h.poll (-1)
-buf = nbd.aio_buffer_to_bytearray (buf)
+buf = buf.to_bytearray ()
print ("%r" % buf)
diff --git a/python/t/505-aio-pread-callback.py b/python/t/505-aio-pread-callback.py
index 9246616..e552db8 100644
--- a/python/t/505-aio-pread-callback.py
+++ b/python/t/505-aio-pread-callback.py
@@ -43,21 +43,21 @@ def callback (user_data, err):
assert user_data == 42
# First try: succeed in both callbacks
-buf = nbd.aio_buffer (512)
+buf = nbd.Buffer (512)
cookie = h.aio_pread_structured_call...
2019 Aug 10
7
[PATCH libnbd 0/5] WIP: python: Add test for doing asynch copy.
This doesn't yet work. However it does make me more convinced than
ever that we really need to sort out persistent buffer lifetimes in
the library (similar to what we did for closures).
Rich.
2019 Aug 13
0
[PATCH libnbd] api: Rename nbd_aio_*_callback to nbd_aio_*.
...tored in buf. *)
- ignore (NBD.aio_pwrite_callback dst buf offset
+ ignore (NBD.aio_pwrite dst buf offset
~completion:(write_completed buf))
) !writes;
writes := [];
diff --git a/python/t/505-aio-pread-callback.py b/python/t/505-aio-pread-callback.py
index e552db8..8d71c38 100644
--- a/python/t/505-aio-pread-callback.py
+++ b/python/t/505-aio-pread-callback.py
@@ -44,9 +44,9 @@ def callback (user_data, err):
# First try: succeed in both callbacks
buf = nbd.Buffer (512)
-cookie = h.aio_pread_structured_callback (buf, 0,
-...
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.