search for: b695aaf

Displaying 2 results from an estimated 2 matches for "b695aaf".

Did you mean: 86a5aaf
2018 Apr 05
5
[nbdkit PATCH 0/3] Test zero callback of python plugin
I'm planning on tweaking the language callbacks to support fua; first up is the python bindings. I want to move from: def zero(h, count, offset, may_trim): to a nicer: def zero(h, count, offset, may_trim=False, fua=False): where the C code passes keywords for the flags (we can add new flags as needed), perhaps by using introspection to learn whether the plugin has a mandatory may_trim
2018 Apr 05
0
[nbdkit PATCH 2/3] tests: Add coverage of zero in language bindings
...for write zeroes, and that the fallback to pwrite due to test.py lacking a zero callback works. Signed-off-by: Eric Blake <eblake@redhat.com> --- tests/test-lang-plugins.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/test-lang-plugins.c b/tests/test-lang-plugins.c index b695aaf..17e757b 100644 --- a/tests/test-lang-plugins.c +++ b/tests/test-lang-plugins.c @@ -122,6 +122,13 @@ main (int argc, char *argv[]) exit (EXIT_FAILURE); #endif + /* Run fallocate(1) on the device to test zero path. */ + if (guestfs_umount (g, "/") == 01) + exit (EXIT_FAILURE);...