]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
client: add new ceph_mount_perms_set function
authorJeff Layton <jlayton@redhat.com>
Fri, 26 Jan 2018 20:04:04 +0000 (15:04 -0500)
committerJeff Layton <jlayton@redhat.com>
Mon, 5 Mar 2018 14:15:15 +0000 (09:15 -0500)
commit80e2f32b7db1de9277ce591f908b4cbb728eb539
tree8f83dd0e370f7f84b06c8cd88785b71de6b7724d
parent1178d05fe24f97f1a6e14b3c24b552a543b56472
client: add new ceph_mount_perms_set function

Allow programs to craft a UserPerm structure to use as the default
perms on the mount. The UserPerm is copied, so the caller can delete
the model UserPerm once the call is complete.

Note that we do not currently allow setting this once ceph_mount has
been called, as there are potential races that could occur while copying
it. We could eventually allow that, but we'd have to ensure that the
default_perms remain valid for accessors operating during and after the
copy.

Tracker: http://tracker.ceph.com/issues/22802
Signed-off-by: Jeff Layton <jlayton@redhat.com>
src/include/cephfs/libcephfs.h
src/libcephfs.cc
src/test/libcephfs/access.cc