ceph: include the initial ACL in create/mkdir/mknod MDS requests
authorYan, Zheng <zyan@redhat.com>
Tue, 16 Sep 2014 12:35:17 +0000 (20:35 +0800)
committerSage Weil <sage@redhat.com>
Tue, 14 Oct 2014 19:56:49 +0000 (12:56 -0700)
commitb1ee94aa593abd03634bc3887b8e189840e42c12
tree59f8d66fcc03a21a2f5364cd1b1d418705e45bdc
parent25e6bae356502cde283f1804111b44e6fad20fc2
ceph: include the initial ACL in create/mkdir/mknod MDS requests

Current code set new file/directory's initial ACL in a non-atomic
manner.
Client first sends request to MDS to create new file/directory, then set
the initial ACL after the new file/directory is successfully created.

The fix is include the initial ACL in create/mkdir/mknod MDS requests.
So MDS can handle creating file/directory and setting the initial ACL in
one request.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
fs/ceph/acl.c
fs/ceph/dir.c
fs/ceph/file.c
fs/ceph/super.h