Hi team,
This set of patches export the RADOS advisory locking functionality to the C/C++
API.
They have been refactored to incorporate Josh suggestions from his review:
* Always set tag to "" for exclusive lock
* Add duration argument to lock_{exclusive, shared}
* Add lock flags to librados.h
* Return -EINVAL on client parsing error
* Remove unneeded std::string convertions
* Typos/style fixes
Kind Regards,
Filippos
Filippos Giannakos (2):
Add RADOS lock mechanism to the librados C/C++ API.
Add RADOS API lock tests
src/Makefile.am | 11 +-
src/include/rados/librados.h | 102 +++++++++++++-
src/include/rados/librados.hpp | 29 ++++
src/librados/librados.cc | 180 ++++++++++++++++++++++++
src/test/librados/lock.cc | 301 ++++++++++++++++++++++++++++++++++++++++
5 files changed, 621 insertions(+), 2 deletions(-)
create mode 100644 src/test/librados/lock.cc
--
1.7.10.4
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html