]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osdc/Striper: add get_file_offset function 36095/head
authorOr Ozeri <oro@il.ibm.com>
Tue, 14 Jul 2020 11:28:12 +0000 (14:28 +0300)
committerOr Ozeri <oro@il.ibm.com>
Tue, 14 Jul 2020 11:28:12 +0000 (14:28 +0300)
commit8dd3e83742302be169a484e76d02be781b2cbb6e
tree3b4bf846f268762397612f8bf14005db551d6105
parent0e6004cc6e68d061411c8a1e776cb2ba7f479169
osdc/Striper: add get_file_offset function

This commit adds a get_file_offset translating (object_no, object_off) -> file_offset.
This is useful for encryption object dispatch layer in librbd
to comply with disk-encryption standards that require the file offset as input.

Signed-off-by: Or Ozeri <oro@il.ibm.com>
src/osdc/Striper.cc
src/osdc/Striper.h
src/test/test_striper.cc