[PATCH] libceph: Assign different global_id for each ceph_auth_client.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "Yan, Zheng" <zheng.z.yan@xxxxxxxxx>

The global_id for ceph_auth_client is always zero. It prevents the
kernel from creating more than one ceph_clients that are connected
to the same cluster. (ceph_debugfs_client_init() fails to create
debugfs directory)

Without this patch, I can't using rbd and cephfs on the same machine.

Signed-off-by: Yan, Zheng <zheng.z.yan@xxxxxxxxx>
---
 net/ceph/auth.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/net/ceph/auth.c b/net/ceph/auth.c
index b4bf4ac..2b00d3a 100644
--- a/net/ceph/auth.c
+++ b/net/ceph/auth.c
@@ -12,6 +12,8 @@
 #include "auth_x.h"
 
 
+static u64 auth_global_id;
+
 /*
  * get protocol handler
  */
@@ -54,6 +56,7 @@ struct ceph_auth_client *ceph_auth_init(const char *name, const struct ceph_cryp
 		ac->name = CEPH_AUTH_NAME_DEFAULT;
 	dout("auth_init name %s\n", ac->name);
 	ac->key = key;
+	ac->global_id = ++auth_global_id;
 	return ac;
 
 out:
-- 
1.7.11.2

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux