1
0
mirror of https://github.com/Zygo/bees.git synced 2025-08-01 13:23:28 +02:00

btrfs-tree: add support for inode flags

Signed-off-by: Zygo Blaxell <bees@furryterror.org>
This commit is contained in:
Zygo Blaxell
2025-07-09 01:00:31 -04:00
parent e852e3998a
commit c658831852
2 changed files with 8 additions and 0 deletions

View File

@@ -49,6 +49,7 @@ namespace crucible {
/// @}
/// @{ Inode items
uint64_t inode_flags() const;
uint64_t inode_size() const;
/// @}

View File

@@ -157,6 +157,13 @@ namespace crucible {
return btrfs_get_member(&btrfs_inode_item::size, m_data);
}
uint64_t
BtrfsTreeItem::inode_flags() const
{
THROW_CHECK1(invalid_argument, btrfs_search_type_ntoa(m_type), m_type == BTRFS_INODE_ITEM_KEY);
return btrfs_get_member(&btrfs_inode_item::flags, m_data);
}
uint64_t
BtrfsTreeItem::file_extent_logical_bytes() const
{