Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188567
b: refs/heads/master
c: e251e28
h: refs/heads/master
i:
  188565: 391daa3
  188563: 7c7c3e8
  188559: 60fcd69
v: v3
  • Loading branch information
Sage Weil committed Oct 7, 2009
1 parent 6f82d00 commit ab5cf8f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b28813a61d6ffe05ad353a86965607bb7a7fd60f
refs/heads/master: e251e288082d5e89604eee1fef0c31bed1fe8f02
10 changes: 5 additions & 5 deletions trunk/fs/ceph/mdsmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,28 +85,28 @@ struct ceph_mdsmap *ceph_mdsmap_decode(void **p, void *end)
void *pexport_targets = NULL;

ceph_decode_need(p, end, sizeof(addr) + 1 + sizeof(u32), bad);
*p += sizeof(addr); /* skip addr key */
ceph_decode_copy(p, &addr, sizeof(addr));
ceph_decode_8(p, infoversion);
ceph_decode_32(p, namelen); /* skip mds name */
*p += namelen;

ceph_decode_need(p, end,
5*sizeof(u32) + sizeof(u64) +
4*sizeof(u32) + sizeof(u64) +
sizeof(addr) + sizeof(struct ceph_timespec),
bad);
ceph_decode_32(p, mds);
ceph_decode_32(p, inc);
ceph_decode_32(p, state);
ceph_decode_64(p, state_seq);
ceph_decode_copy(p, &addr, sizeof(addr));
*p += sizeof(addr);
*p += sizeof(struct ceph_timespec);
*p += sizeof(u32);
ceph_decode_32_safe(p, end, namelen, bad);
*p += sizeof(namelen);
*p += namelen;
if (infoversion >= 2) {
ceph_decode_32_safe(p, end, num_export_targets, bad);
pexport_targets = *p;
*p += sizeof(num_export_targets * sizeof(u32));
*p += num_export_targets * sizeof(u32);
} else {
num_export_targets = 0;
}
Expand Down

0 comments on commit ab5cf8f

Please sign in to comment.