search for: _block_desc_is_multiple_of_bs_entry

Displaying 1 result from an estimated 1 matches for "_block_desc_is_multiple_of_bs_entry".

2023 Aug 04
2
[libnbd PATCH v4 01/25] block_status: Add some sanity checking of server lengths
...r *name = h->meta_contexts.ptr[i].name; > - > - /* Need to byte-swap the entries returned, but apart from that > - * we don't validate them. Yes, our 32-bit public API foolishly > - * tracks the number of uint32_t instead of block descriptors; > - * see _block_desc_is_multiple_of_bs_entry above. > - */ > - for (i = 0; i < h->bs_count * 2; ++i) > - h->bs_entries[i] = be32toh (h->bs_entries[i]); > - > - /* Call the caller's extent function. */ > - if (CALL_CALLBACK (cmd->cb.fn.extent, name, cmd->offset, > -...