Skip to content

Commit 484344d

Browse files
committed
crimson/os/seastore: support OP_CLONERANGE2
Signed-off-by: Xuehan Xu <[email protected]>
1 parent 77a6edf commit 484344d

File tree

7 files changed

+487
-80
lines changed

7 files changed

+487
-80
lines changed

src/crimson/os/seastore/lba_mapping.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,10 @@ class LBAMapping {
148148
return direct_cursor->get_laddr();
149149
}
150150

151+
laddr_t get_end() const {
152+
return (get_key() + get_length()).checked_to_laddr();
153+
}
154+
151155
// An lba pin may be indirect, see comments in lba/btree_lba_manager.h
152156
laddr_t get_intermediate_key() const {
153157
assert(is_indirect());

0 commit comments

Comments
 (0)