On Thu, Nov 21, 2019 at 04:58:12PM +0000, Richard W.M. Jones wrote:
---
plugins/python/nbdkit-python-plugin.pod | 22 +++++++++++--
plugins/python/python.c | 41 +++++++++++++++++++++++++
2 files changed, 61 insertions(+), 2 deletions(-)
diff --git a/plugins/python/nbdkit-python-plugin.pod
b/plugins/python/nbdkit-python-plugin.pod
index 0fd4dcb..2bc4722 100644
--- a/plugins/python/nbdkit-python-plugin.pod
+++ b/plugins/python/nbdkit-python-plugin.pod
@@ -212,6 +212,13 @@ contents will be garbage collected.
def can_trim(h):
# return a boolean
+=item C<can_cache>
+
+(Optional)
+
+ def can_cache(h):
+ # return a boolean
This is wrong because can_cache (like can_fua) returns NONE | EMULATE |
NATIVE.
I'm working on an updated patch series + test which fixes this.
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
Read my programming and virtualization blog:
http://rwmj.wordpress.com
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine. Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/