summaryrefslogtreecommitdiffstats
path: root/fs/ceph/mds_client.c
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2010-01-27 14:28:10 -0800
committerSage Weil <sage@newdream.net>2010-01-29 12:41:09 -0800
commitac8839d7b264d0fa478fca7c4f9b6bb833540a80 (patch)
treec5dd4fbc61c2f96845c9198a6eb9840074ebcb8c /fs/ceph/mds_client.c
parent361be8601d78e488b5249032cc4e779b81d7928e (diff)
downloadtalos-op-linux-ac8839d7b264d0fa478fca7c4f9b6bb833540a80.tar.gz
talos-op-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) *
OpenPOWER on IntegriCloud