]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: use CEPH_MDS_OP_RMXATTR request to remove xattr
authorYan, Zheng <zyan@redhat.com>
Thu, 21 Apr 2016 04:11:54 +0000 (12:11 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 25 May 2016 23:15:33 +0000 (01:15 +0200)
commitf53b4cd0a1a20bba27707159aa20c52860dda5ff
tree1d0c59cb25abf8882c3d8d084f28cb04bd2125fe
parentb687678d4a0b3a2dea8ef83ef4d1ac609f673c3c
ceph: use CEPH_MDS_OP_RMXATTR request to remove xattr

Setxattr with NULL value and XATTR_REPLACE flag should be equivalent
to removexattr. But current MDS does not support deleting vxattrs through
MDS_OP_SETXATTR request. The workaround is sending MDS_OP_RMXATTR request
if setxattr actually removs xattr.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
fs/ceph/xattr.c