22 #define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_LIB 44 dest->hd_bits = (uint64_t)
src->ot_version << 48 |
45 (uint64_t)
src->ot_type << 32 |
46 (uint64_t)
src->ot_size;
53 .ot_version =
src->hd_bits >> 48,
54 .ot_type =
src->hd_bits >> 32 & 0x0000ffff,
55 .ot_size =
src->hd_bits & 0xffffffff
69 uint32_t *footer_offset)
78 return M0_ERR_INFO(-EPROTO,
"format header magic mismatch for" 79 " the buffer %p, expected %"PRIx64 90 *footer_offset =
tag.ot_footer_offset;
98 uint32_t footer_offset;
108 " addr %p - no valid header found",
buffer);
137 "Contact Seagate support.", iem);
141 if (
footer->ft_checksum != checksum) {
143 "Contact Seagate support.", iem);
152 uint32_t footer_offset;
159 "Contact Seagate support.", iem);
167 #undef M0_TRACE_SUBSYSTEM
static uint64_t tag(uint8_t code, uint64_t id)
#define M0_LOG(level,...)
#define M0_ERR_INFO(rc, fmt,...)
return M0_ERR(-EOPNOTSUPP)
M0_INTERNAL uint64_t m0_hash_fnc_fnv1(const void *buffer, m0_bcount_t len)
#define M0_MOTR_IEM_DESC(_sev_id, _mod_id, _evt_id, _desc,...)
#define M0_ASSERT_INFO(cond, fmt,...)
struct m0_pdclust_src_addr src
int const char void * buffer