ceph: check buffer size in ceph_vxattrcb_layout()
authorYan, Zheng <zheng.z.yan@intel.com>
Mon, 24 Mar 2014 05:00:54 +0000 (13:00 +0800)
committerSage Weil <sage@inktank.com>
Sat, 5 Apr 2014 04:07:19 +0000 (21:07 -0700)
commit1e5c6649ff0a2049511bafa297277234011a5c58
tree3ca17fdb82efe6d3b80158bcc08af58e9fc5c1af
parent00bd8edb861eb41d274938cfc0338999d9c593a3
ceph: check buffer size in ceph_vxattrcb_layout()

If buffer size is zero, return the size of layout vxattr. If buffer
size is not zero, check if it is large enough for layout vxattr.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
fs/ceph/xattr.c