]>
git.proxmox.com Git - ceph.git/blob - ceph/src/crimson/os/seastore/extentmap_manager.cc
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
3 #include <experimental/iterator>
6 #include "crimson/os/seastore/transaction_manager.h"
7 #include "crimson/os/seastore/extentmap_manager.h"
8 #include "crimson/os/seastore/extentmap_manager/btree/btree_extentmap_manager.h"
9 namespace crimson::os::seastore::extentmap_manager
{
11 ExtentMapManagerRef
create_extentmap_manager(TransactionManager
&trans_manager
) {
12 return ExtentMapManagerRef(new BtreeExtentMapManager(trans_manager
));
17 namespace crimson::os::seastore
{
19 std::ostream
&operator<<(std::ostream
&out
, const extent_mapping_t
&rhs
)
21 return out
<< "extent_mapping_t (" << rhs
.logical_offset
<< "~" << rhs
.length
22 << "->" << rhs
.laddr
<< ")";
25 std::ostream
&operator<<(std::ostream
&out
, const extent_map_list_t
&rhs
)
28 std::copy(std::begin(rhs
), std::end(rhs
), std::experimental::make_ostream_joiner(out
, ", "));