MCPcopy Create free account
hub / github.com/ceph/ceph / get_file_offset

Function get_file_offset

src/librbd/crypto/CryptoObjectDispatch.cc:30–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28
29template <typename I>
30uint64_t get_file_offset(I* image_ctx, uint64_t object_no,
31 uint64_t object_off) {
32 auto off = io::util::raw_to_area_offset(
33 *image_ctx, Striper::get_file_offset(image_ctx->cct, &image_ctx->layout,
34 object_no, object_off));
35 ceph_assert(off.second == io::ImageArea::DATA);
36 return off.first;
37}
38
39template <typename I>
40struct C_AlignedObjectReadRequest : public Context {

Callers 4

handle_readMethod · 0.70
writeMethod · 0.70
file_blockdiffMethod · 0.50
aggregate_snap_setsMethod · 0.50

Calls 1

raw_to_area_offsetFunction · 0.85

Tested by

no test coverage detected