ceph: properly handle XATTR_CREATE and XATTR_REPLACE
authorYan, Zheng <zheng.z.yan@intel.com>
Tue, 11 Feb 2014 05:01:19 +0000 (13:01 +0800)
committerSage Weil <sage@inktank.com>
Mon, 17 Feb 2014 20:37:05 +0000 (12:37 -0800)
return -EEXIST if XATTR_CREATE is set and xattr alread exists.
return -ENODATA if XATTR_REPLACE is set but xattr does not exist.

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

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