]> git.baikalelectronics.ru Git - kernel.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)
commitaad18933d8ce9ca37b24ecea1e1b639923329769
tree7384c28c58c3ac3bb88533ed4e45f9bdfa6bd0a6
parent7dcf105bbab9661355c930efbf0a6e2bb748c98b
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