diff options
author | Ilya Dryomov | 2016-08-18 18:38:43 +0200 |
---|---|---|
committer | Ilya Dryomov | 2016-08-24 23:49:16 +0200 |
commit | 005a07bf0a92e7f0e73fc9a6c9acc992c5dbd00c (patch) | |
tree | 4b8eb1b877b4d2c50934bef8e2df402d0893dcfc /net/ceph/ceph_common.c | |
parent | ca7909e8bbb4ddc549fa1e8afa695f147bb6358c (diff) |
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>
Diffstat (limited to 'net/ceph/ceph_common.c')
-rw-r--r-- | net/ceph/ceph_common.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/ceph/ceph_common.c b/net/ceph/ceph_common.c index 8a7921767308..464e88599b9d 100644 --- a/net/ceph/ceph_common.c +++ b/net/ceph/ceph_common.c @@ -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; |