]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: fix ceph_set_acl()
authorYan, Zheng <zheng.z.yan@intel.com>
Tue, 11 Feb 2014 05:08:51 +0000 (13:08 +0800)
committerSage Weil <sage@inktank.com>
Mon, 17 Feb 2014 20:37:11 +0000 (12:37 -0800)
commit9eb524246e0ef58c1354e0ea93c60a5e9af7845f
treecf836380fbeb42b5407aeaf42de47b81860cadde
parent40cffd14638253868c92c4e0d7a8c0a0496cf3a2
ceph: fix ceph_set_acl()

If acl is equivalent to file mode permission bits, ceph_set_acl()
needs to remove any existing acl xattr. Use __ceph_setxattr() to
handle both setting and removing acl xattr cases, it doesn't return
-ENODATA when there is no acl xattr.

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