More cleanups patches based on my last cleanups series.
The path legnth validation fix is a very old issue, but it can be nice
to deliver in 3.8.1. More fixes are needed for truncating silently
lockspace path, lockspace name and resource name.
These are only the new patches since v1. I will combine all pathes in
v3.
v1 was here:
https://lists.fedorahosted.org/archives/list/sanlock-devel@lists.fedoraho...
The changes are also availale in:
https://github.com/nirs/sanlock/tree/cleanups-v2
Based on commit 50a6590db428769e653282f11eb3051c31938a92 (python: Unify
resource variables names).
Nir Soffer (8):
python: Use Py_BuildValue to create event dicts
python: Use Py_CLEAR
python: Streamline initexception
python: Extract create_resource() helper
python: Replace memset() with initializer
python: Add missing arg parsing tests
python: Add failing tests for long disk path
python: Fail with ValueError if disk path is too long
python/sanlock.c | 191 ++++++++++++++++---------------------------
tests/constants.py | 4 +
tests/python_test.py | 98 ++++++++++++++++++++++
3 files changed, 172 insertions(+), 121 deletions(-)
--
2.17.2