Re: [Libguestfs] [nbdkit PATCH v3 4/4] python: Support zero callback

2017-01-27 Thread Richard W.M. Jones
Patch 2, 3 & 4 look fine. 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

[Libguestfs] [nbdkit PATCH v3 4/4] python: Support zero callback

2017-01-26 Thread Eric Blake
Add a python language binding for the .zero callback, used for implementing NBD_CMD_WRITE_ZEROES. The caller doesn't have to return anything, but should use nbdkit.set_error(errno.EOPNOTSUPP) to get an automatic fallback to pwrite. Enhance the example to show the use of the fallback mechanism, an