ceph: remove xattr when null value is given to setxattr()
authorYan, Zheng <zheng.z.yan@intel.com>
Tue, 11 Feb 2014 05:04:19 +0000 (13:04 +0800)
committerSage Weil <sage@inktank.com>
Mon, 17 Feb 2014 20:37:09 +0000 (12:37 -0800)
commitbcdfeb2eb4e42b811950b9cd226109291051732a
treee84702e81ccca42d63e4e6ad8eece9e60bf5b8cd
parentfbc0b970ddfab4b35dad27ebaae712af680bdc7e
ceph: remove xattr when null value is given to setxattr()

For the setxattr request, introduce a new flag CEPH_XATTR_REMOVE
to distinguish null value case from the zero-length value case.

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