]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
client: add a C accessor for the ceph_mount_info default_perms
authorJeff Layton <jlayton@redhat.com>
Mon, 24 Oct 2016 14:02:58 +0000 (10:02 -0400)
committerJeff Layton <jlayton@redhat.com>
Tue, 25 Oct 2016 17:05:17 +0000 (13:05 -0400)
Signed-off-by: Jeff Layton <jlayton@redhat.com>
src/include/cephfs/libcephfs.h
src/libcephfs.cc

index f333937423e37e54eaa9851010e48f6849f56282..f1974bfcf790a95b8a0407245ebe4e4ae0c25741 100644 (file)
@@ -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.
  *
index 8b33968346c90e671d19bfd7ad83f166eda49f9d..6b3dca649c07c9f3a516f339a64cb9d21fd69069 100644 (file)
@@ -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)
 {