To have more consisten python API, value should be used for secor
size and alignment instead of flags. This patch set replaces flags
with values in public API, expose tuples with supported sector size
and alignment values and add some related tests.
The third version of this patch set fixes mostly typos, formatting,
use constants instead of raw values in tests and fixes other stuff
which doesn't change the logic of original patch.
Vojtech Juranek (4):
tests: add sector and align parameters
Accept values instead of flags for sector and aling parameters.
Expose tuples with supported align and sector values
tests: add tests for invalid align and sector values
python/example.py | 4 +-
python/sanlock.c | 168 +++++++++++++++++++++++++++++++++----------
tests/python_test.py | 55 ++++++++++++--
3 files changed, 182 insertions(+), 45 deletions(-)
--
2.20.1
Show replies by date