| D | mon_client.c | 1 // SPDX-License-Identifier: GPL-2.0 24 * of cmon daemons use a modified version of the Paxos part-time parliament 42 struct ceph_monmap *ceph_monmap_decode(void *p, void *end) in ceph_monmap_decode() argument 45 int i, err = -EINVAL; in ceph_monmap_decode() 50 ceph_decode_32_safe(&p, end, len, bad); in ceph_monmap_decode() 51 ceph_decode_need(&p, end, len, bad); in ceph_monmap_decode() 53 dout("monmap_decode %p %p len %d\n", p, end, (int)(end-p)); in ceph_monmap_decode() 56 ceph_decode_need(&p, end, sizeof(fsid) + 2*sizeof(u32), bad); in ceph_monmap_decode() 61 ceph_decode_need(&p, end, num_mon*sizeof(m->mon_inst[0]), bad); in ceph_monmap_decode() 67 return ERR_PTR(-ENOMEM); in ceph_monmap_decode() [all …]
|