Classes | |
| struct | LocalBmbtRec |
Functions | |
| uint32_t | ibt_maxrecs (uint32_t blocksize, uint32_t header_size, uint32_t level) |
| uint64_t | ag_block_to_disk_offset (const VolumeContext &vol, uint32_t agno, uint32_t agbno) |
| bool | walk_ibt_block (DiskReader &reader, const VolumeContext &vol, uint32_t agno, uint32_t agbno, uint32_t expected_level, uint32_t magic_v4, uint32_t magic_v5, const char *tree_label, const InobtRecordCallback &on_record, std::set< uint32_t > &visited, size_t &nodes_visited, std::vector< std::string > &logs, std::string &error, bool &callback_stopped) |
| void | decode_bmbt_record_local (const unsigned char *buf16, LocalBmbtRec &r) |
| uint64_t | fsb_to_byte_offset_local (uint64_t fsb, const VolumeContext &vol) |
| void | push_extent (std::vector< Extent > &out, const LocalBmbtRec &r) |
| bool | walk_bmbt_block (DiskReader &reader, const VolumeContext &vol, uint64_t child_fsb, uint32_t expected_level, bool is_v5, std::vector< Extent > &out, std::vector< std::string > &logs, uint32_t max_extents, std::set< uint64_t > &visited, size_t &nodes_visited) |
Variables | |
| constexpr uint32_t | IBT_REC_SIZE = 16 |
| constexpr uint32_t | IBT_KEY_SIZE = 4 |
| constexpr uint32_t | IBT_PTR_SIZE = 4 |
| constexpr size_t | MAX_NODES_PER_AG = 1'000'000 |
| uint64_t xfs::anonymous_namespace{xfs_btree.cpp}::ag_block_to_disk_offset | ( | const VolumeContext & | vol, |
| uint32_t | agno, | ||
| uint32_t | agbno ) |
Definition at line 59 of file xfs_btree.cpp.
References ag_block_to_disk_offset(), xfs::Superblock::agblocks, xfs::Superblock::blocksize, xfs::VolumeContext::sb, and xfs::VolumeContext::volume_offset.
Referenced by ag_block_to_disk_offset(), and walk_ibt_block().
| void xfs::anonymous_namespace{xfs_btree.cpp}::decode_bmbt_record_local | ( | const unsigned char * | buf16, |
| LocalBmbtRec & | r ) |
Definition at line 517 of file xfs_btree.cpp.
References xfs::be64(), and decode_bmbt_record_local().
Referenced by decode_bmbt_record_local(), and walk_bmbt_block().
| uint64_t xfs::anonymous_namespace{xfs_btree.cpp}::fsb_to_byte_offset_local | ( | uint64_t | fsb, |
| const VolumeContext & | vol ) |
Definition at line 528 of file xfs_btree.cpp.
References xfs::Superblock::agblklog, xfs::Superblock::agblocks, xfs::Superblock::blocksize, fsb_to_byte_offset_local(), xfs::VolumeContext::sb, and xfs::VolumeContext::volume_offset.
Referenced by fsb_to_byte_offset_local(), and walk_bmbt_block().
| uint32_t xfs::anonymous_namespace{xfs_btree.cpp}::ibt_maxrecs | ( | uint32_t | blocksize, |
| uint32_t | header_size, | ||
| uint32_t | level ) |
Definition at line 52 of file xfs_btree.cpp.
References IBT_KEY_SIZE, ibt_maxrecs(), IBT_PTR_SIZE, and IBT_REC_SIZE.
Referenced by ibt_maxrecs(), and walk_ibt_block().
| void xfs::anonymous_namespace{xfs_btree.cpp}::push_extent | ( | std::vector< Extent > & | out, |
| const LocalBmbtRec & | r ) |
Definition at line 565 of file xfs_btree.cpp.
References xfs::Extent::length_blocks, xfs::Extent::logical_off_blocks, xfs::Extent::physical_block, push_extent(), and xfs::Extent::unwritten.
Referenced by push_extent(), and walk_bmbt_block().
| bool xfs::anonymous_namespace{xfs_btree.cpp}::walk_bmbt_block | ( | DiskReader & | reader, |
| const VolumeContext & | vol, | ||
| uint64_t | child_fsb, | ||
| uint32_t | expected_level, | ||
| bool | is_v5, | ||
| std::vector< Extent > & | out, | ||
| std::vector< std::string > & | logs, | ||
| uint32_t | max_extents, | ||
| std::set< uint64_t > & | visited, | ||
| size_t & | nodes_visited ) |
Definition at line 577 of file xfs_btree.cpp.
References xfs::be64(), xfs::Superblock::blocksize, xfs::BMBT_KEY_SIZE_LONG, xfs::BMBT_PTR_SIZE_LONG, xfs::BMBT_REC_SIZE, xfs::btree_long_header_size(), decode_bmbt_record_local(), fsb_to_byte_offset_local(), xfs::BtreeLongHeader::is_v5_header, xfs::BtreeLongHeader::level, xfs::NULLFSBLOCK, xfs::BtreeLongHeader::numrecs, xfs::parse_btree_long_header(), push_extent(), DiskReader::read_at(), xfs::VolumeContext::sb, walk_bmbt_block(), xfs::XFS_BMBT_MAGIC_V4, and xfs::XFS_BMBT_MAGIC_V5.
Referenced by walk_bmbt_block().
| bool xfs::anonymous_namespace{xfs_btree.cpp}::walk_ibt_block | ( | DiskReader & | reader, |
| const VolumeContext & | vol, | ||
| uint32_t | agno, | ||
| uint32_t | agbno, | ||
| uint32_t | expected_level, | ||
| uint32_t | magic_v4, | ||
| uint32_t | magic_v5, | ||
| const char * | tree_label, | ||
| const InobtRecordCallback & | on_record, | ||
| std::set< uint32_t > & | visited, | ||
| size_t & | nodes_visited, | ||
| std::vector< std::string > & | logs, | ||
| std::string & | error, | ||
| bool & | callback_stopped ) |
Definition at line 134 of file xfs_btree.cpp.
References ag_block_to_disk_offset(), xfs::Superblock::agblocks, xfs::be32(), xfs::Superblock::blocksize, xfs::btree_header_size(), xfs::Superblock::features_incompat, IBT_KEY_SIZE, ibt_maxrecs(), IBT_PTR_SIZE, IBT_REC_SIZE, xfs::Superblock::is_v5(), xfs::BtreeNodeHeader::is_v5_header, xfs::BtreeNodeHeader::level, MAX_NODES_PER_AG, xfs::NULLAGBLOCK, xfs::BtreeNodeHeader::numrecs, xfs::parse_btree_header(), xfs::parse_inobt_record(), DiskReader::read_at(), xfs::VolumeContext::sb, walk_ibt_block(), and xfs::XFS_SB_FEAT_INCOMPAT_SPINODES.
Referenced by walk_ibt_block().
|
constexpr |
Definition at line 46 of file xfs_btree.cpp.
Referenced by ibt_maxrecs(), and walk_ibt_block().
|
constexpr |
Definition at line 47 of file xfs_btree.cpp.
Referenced by ibt_maxrecs(), and walk_ibt_block().
|
constexpr |
Definition at line 45 of file xfs_btree.cpp.
Referenced by ibt_maxrecs(), and walk_ibt_block().
|
constexpr |
Definition at line 68 of file xfs_btree.cpp.
Referenced by walk_ibt_block().