From 7ceeb9f802418751c2945097767c5abb97ef3e29 Mon Sep 17 00:00:00 2001 From: Sebastien Ponce Date: Wed, 26 Mar 2014 12:34:41 +0100 Subject: [PATCH] Completed librados documentation of rados_write_op_cmpxattr and rados_read_op_cmpxattr concerning their error reporting Signed-off-by: Sebastien Ponce --- src/include/rados/librados.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/include/rados/librados.h b/src/include/rados/librados.h index 3e6829273ca63..fd87f98aca3ea 100644 --- a/src/include/rados/librados.h +++ b/src/include/rados/librados.h @@ -1876,7 +1876,9 @@ void rados_write_op_set_flags(rados_write_op_t write_op, int flags); void rados_write_op_assert_exists(rados_write_op_t write_op); /** - * Ensure that given xattr satisfies comparison + * Ensure that given xattr satisfies comparison. + * If the comparison is not satisfied, the return code of the + * operation will be -ECANCELED * @param write_op operation to add this action to * @param name name of the xattr to look up * @param comparison_operator currently undocumented, look for @@ -2116,6 +2118,8 @@ void rados_read_op_assert_exists(rados_read_op_t read_op); /** * Ensure that the an xattr satisfies a comparison + * If the comparison is not satisfied, the return code of the + * operation will be -ECANCELED * @param read_op operation to add this action to * @param name name of the xattr to look up * @param comparison_operator currently undocumented, look for -- 2.39.5