#define TMP_NAME_SIZE 16
char name[TMP_NAME_SIZE];
- snprintf(name, TMP_NAME_SIZE, "client%d", client->whoami);
+ snprintf(name, TMP_NAME_SIZE, "client%lld", client->whoami);
client->debugfs_dir = debugfs_create_dir(name, ceph_debugfs_dir);
if (!client->debugfs_dir)
client->msgr->inst.name.num = cpu_to_le32(cnum);
client->msgr->inst.name.type = CEPH_ENTITY_TYPE_CLIENT;
memcpy(&client->msgr->inst.addr, &addr, sizeof(addr));
- pr_info("ceph client%d %u.%u.%u.%u:%u fsid %llx.%llx\n", client->whoami,
- IPQUADPORT(addr.ipaddr),
+ pr_info("ceph client%lld %u.%u.%u.%u:%u fsid %llx.%llx\n",
+ client->whoami, IPQUADPORT(addr.ipaddr),
le64_to_cpu(__ceph_fsid_major(&client->monc.monmap->fsid)),
le64_to_cpu(__ceph_fsid_minor(&client->monc.monmap->fsid)));
* mounting the same ceph filesystem/cluster.
*/
struct ceph_client {
- int whoami; /* my client number */
+ __s64 whoami; /* my client number */
struct dentry *debugfs_fsid, *debugfs_monmap;
struct dentry *debugfs_mdsmap, *debugfs_osdmap;
struct dentry *debugfs_dir, *debugfs_dentry_lru;