search for: 0b31ebc

Displaying 3 results from an estimated 3 matches for "0b31ebc".

2019 Nov 25
0
[PATCH nbdkit 1/2] python: For v2 API, avoid copy by passing a buffer to pread.
...offset+count] - + end = offset + len(buf) + buf[:] = disk[offset:end] + # or if reading from a file you can use: + #f.readinto(buf) def pwrite(h, buf, offset, flags): global disk diff --git a/plugins/python/nbdkit-python-plugin.pod b/plugins/python/nbdkit-python-plugin.pod index 0b31ebc..4065ec7 100644 --- a/plugins/python/nbdkit-python-plugin.pod +++ b/plugins/python/nbdkit-python-plugin.pod @@ -38,7 +38,7 @@ C<__main__> module): # see below def get_size(h): # see below - def pread(h, count, offset, flags): + def pread(h, buf, offset, flags): # see below No...
2019 Nov 25
3
[PATCH nbdkit 0/2] python: Implement pread passing buffer for v2 API.
As suggested by Nir, here: https://www.redhat.com/archives/libguestfs/2019-November/thread.html#00220
2019 Nov 25
7
[PATCH nbdkit v2 0/7] Implement nbdkit API v2 for Python plugins.
v3 was here: https://www.redhat.com/archives/libguestfs/2019-November/msg00209.html In v4: - Rebase on top of current master. Includes various fixes and updates required because of Nir's patches that went into master. - Fix api_version() -> API_VERSION in patch 2 noted previously on the mailing list. Rich.