]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: remove xattr when null value is given to setxattr() 1216/head
authorYan, Zheng <zheng.z.yan@intel.com>
Tue, 11 Feb 2014 05:32:23 +0000 (13:32 +0800)
committerYan, Zheng <zheng.z.yan@intel.com>
Thu, 13 Feb 2014 04:20:41 +0000 (12:20 +0800)
commitd012119736a89ed96cd9ebb83929d3cc738c426e
tree6eb87d26e12e31b9842f75d90951b5cdcc49b782
parent9035227e9d909a2101e03fbffd6bdd4c3233ebb1
mds: remove xattr when null value is given to setxattr()

setxattr() should remove xattr if parameter 'value' is NULL. To
distinguish it from the zero-length value case, introduce a new
flag CEPH_XATTR_REMOVE for the setxattr request.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
src/client/Client.cc
src/include/ceph_fs.h
src/mds/Server.cc