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)
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

diff --cc fs/ceph/xattr.c
Simple merge