search for: 5bda9ff

Displaying 1 result from an estimated 1 matches for "5bda9ff".

2020 Jan 30
2
[PATCH libnbd] python: Add AIO buffer is_zero method.
...PyErr_SetString (PyExc_IndexError, "size out of range"); + return NULL; + } + + if (is_zero (buf->data + offset, size)) + Py_RETURN_TRUE; + else + Py_RETURN_FALSE; +} diff --git a/python/t/580-aio-is-zero.py b/python/t/580-aio-is-zero.py new file mode 100644 index 0000000..5bda9ff --- /dev/null +++ b/python/t/580-aio-is-zero.py @@ -0,0 +1,53 @@ +# libnbd Python bindings +# Copyright (C) 2010-2020 Red Hat Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software...