summaryrefslogtreecommitdiffstats
path: root/fs/ceph/mds_client.c
diff options
context:
space:
mode:
authorSage Weil2010-01-27 23:28:10 +0100
committerSage Weil2010-01-29 21:41:09 +0100
commitac8839d7b264d0fa478fca7c4f9b6bb833540a80 (patch)
treec5dd4fbc61c2f96845c9198a6eb9840074ebcb8c /fs/ceph/mds_client.c
parentceph: precede encoded ceph_pg_pool struct with version (diff)
downloadkernel-qcow2-linux-ac8839d7b264d0fa478fca7c4f9b6bb833540a80.tar.gz
kernel-qcow2-linux-ac8839d7b264d0fa478fca7c4f9b6bb833540a80.tar.xz
kernel-qcow2-linux-ac8839d7b264d0fa478fca7c4f9b6bb833540a80.zip
ceph: include type in ceph_entity_addr, filepath
Include a type/version in ceph_entity_addr and filepath. Include extra byte in filepath encoding as necessary. Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/mds_client.c')
-rw-r--r--fs/ceph/mds_client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c
index 93998a0678c4..4e3e8b229e67 100644
--- a/fs/ceph/mds_client.c
+++ b/fs/ceph/mds_client.c
@@ -1325,7 +1325,7 @@ static struct ceph_msg *create_request_message(struct ceph_mds_client *mdsc,
}
len = sizeof(*head) +
- pathlen1 + pathlen2 + 2*(sizeof(u32) + sizeof(u64));
+ pathlen1 + pathlen2 + 2*(1 + sizeof(u32) + sizeof(u64));
/* calculate (max) length for cap releases */
len += sizeof(struct ceph_mds_request_release) *