From 90cd306e99d9b01781cbdc7275b3a0a40a69eb58 Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Wed, 22 Jan 2020 14:12:47 -0500 Subject: [PATCH] rados: fix incorrect doc comment for ListXattrs function Signed-off-by: John Mulligan --- rados/ioctx.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/rados/ioctx.go b/rados/ioctx.go index 75ae6ef..9e230a3 100644 --- a/rados/ioctx.go +++ b/rados/ioctx.go @@ -322,9 +322,8 @@ func (ioctx *IOContext) SetXattr(object string, name string, data []byte) error return getRadosError(int(ret)) } -// function that lists all the xattrs for an object, since xattrs are -// a k-v pair, this function returns a map of k-v pairs on -// success, error code on failure +// ListXattrs lists all the xattrs for an object. The xattrs are returned as a +// mapping of string keys and byte-slice values. func (ioctx *IOContext) ListXattrs(oid string) (map[string][]byte, error) { c_oid := C.CString(oid) defer C.free(unsafe.Pointer(c_oid))