From c31ab04b572ef5b5cf622b33b92c9e17c7070662 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 22 May 2012 20:47:21 -0700 Subject: [PATCH] doc: librados: fix getxattr return code Fixes: #2391 Signed-off-by: Sage Weil --- src/include/rados/librados.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/rados/librados.h b/src/include/rados/librados.h index 61bdf6d157e8e..543a19c9923b7 100644 --- a/src/include/rados/librados.h +++ b/src/include/rados/librados.h @@ -937,7 +937,7 @@ int rados_trunc(rados_ioctx_t io, const char *oid, uint64_t size); * @param name which extended attribute to read * @param buf where to store the result * @param len size of buf in bytes - * @returns 0 on success, negative error code on failure + * @returns length of xattr value on success, negative error code on failure */ int rados_getxattr(rados_ioctx_t io, const char *o, const char *name, char *buf, size_t len); -- 2.39.5