]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ceph: fix listxattr handling for vxattrs
authorSage Weil <sage@inktank.com>
Mon, 21 Jan 2013 06:02:39 +0000 (22:02 -0800)
committerSage Weil <sage@inktank.com>
Thu, 14 Feb 2013 02:26:06 +0000 (18:26 -0800)
commitb65917dd2700b7d12e25e2e0bbfd58eb3c932158
tree7384c28c58c3ac3bb88533ed4e45f9bdfa6bd0a6
parent0bee82fb4b8d49541fe474ed460d2b917f329568
ceph: fix listxattr handling for vxattrs

Only include vxattrs in the result if they are not hidden and exist
(as determined by the exists_cb callback).

Note that the buffer size we return when 0 is passed in always includes
vxattrs that *might* exist, forming an upper bound.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Sam Lang <sam.lang@inktank.com>
fs/ceph/xattr.c