From: Jeff Layton Date: Mon, 24 Oct 2016 14:02:58 +0000 (-0400) Subject: client: add a C accessor for the ceph_mount_info default_perms X-Git-Tag: v11.1.0~383^2~25 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=266300d9e181b09d605ca0017532b6e86ff1263b;p=ceph.git client: add a C accessor for the ceph_mount_info default_perms Signed-off-by: Jeff Layton --- diff --git a/src/include/cephfs/libcephfs.h b/src/include/cephfs/libcephfs.h index f333937423e3..f1974bfcf790 100644 --- a/src/include/cephfs/libcephfs.h +++ b/src/include/cephfs/libcephfs.h @@ -231,6 +231,8 @@ int ceph_init(struct ceph_mount_info *cmount); int ceph_mount(struct ceph_mount_info *cmount, const char *root); +struct UserPerm *ceph_mount_perms(struct ceph_mount_info *cmount); + /** * Execute a management command remotely on an MDS. * diff --git a/src/libcephfs.cc b/src/libcephfs.cc index 8b33968346c9..6b3dca649c07 100644 --- a/src/libcephfs.cc +++ b/src/libcephfs.cc @@ -452,6 +452,11 @@ extern "C" int ceph_is_mounted(struct ceph_mount_info *cmount) return cmount->is_mounted() ? 1 : 0; } +extern "C" struct UserPerm *ceph_mount_perms(struct ceph_mount_info *cmount) +{ + return &cmount->default_perms; +} + extern "C" int ceph_statfs(struct ceph_mount_info *cmount, const char *path, struct statvfs *stbuf) {