mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
libcephfs: move ceph_mount_perms near the other UserPerm functions
...in the header. Also, add a doc comment. Signed-off-by: Jeff Layton <jlayton@redhat.com>
This commit is contained in:
parent
64bcf92e87
commit
eb518d7577
@ -152,6 +152,18 @@ UserPerm *ceph_userperm_new(uid_t uid, gid_t gid, int ngids, gid_t *gidlist);
|
||||
*/
|
||||
void ceph_userperm_destroy(UserPerm *perm);
|
||||
|
||||
/**
|
||||
* Get a pointer to the default UserPerm object for the mount.
|
||||
*
|
||||
* @param cmount the mount info handle
|
||||
*
|
||||
* Every cmount has a default set of credentials. This returns a pointer to
|
||||
* that object.
|
||||
*
|
||||
* Unlike with ceph_userperm_new, this object should not be freed.
|
||||
*/
|
||||
struct UserPerm *ceph_mount_perms(struct ceph_mount_info *cmount);
|
||||
|
||||
/**
|
||||
* @defgroup libcephfs_h_init Setup and Teardown
|
||||
* These are the first and last functions that should be called
|
||||
@ -230,9 +242,6 @@ 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.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user