mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-24 07:31:41 +00:00
rbd: add 'client_addr' sysfs rbd device attribute
Export client addr/nonce, so userspace can check if a image is being blacklisted. Signed-off-by: Mike Christie <mchristi@redhat.com> [idryomov@gmail.com: ceph_client_addr(), endianess fix] Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
This commit is contained in:
parent
ca7909e8bb
commit
005a07bf0a
4 changed files with 26 additions and 0 deletions
|
@ -566,6 +566,12 @@ int ceph_print_client_options(struct seq_file *m, struct ceph_client *client)
|
|||
}
|
||||
EXPORT_SYMBOL(ceph_print_client_options);
|
||||
|
||||
struct ceph_entity_addr *ceph_client_addr(struct ceph_client *client)
|
||||
{
|
||||
return &client->msgr.inst.addr;
|
||||
}
|
||||
EXPORT_SYMBOL(ceph_client_addr);
|
||||
|
||||
u64 ceph_client_gid(struct ceph_client *client)
|
||||
{
|
||||
return client->monc.auth->global_id;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue