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:
@@ -49,6 +49,7 @@ namespace crucible {
|
||||
/// @}
|
||||
|
||||
/// @{ Inode items
|
||||
uint64_t inode_flags() const;
|
||||
uint64_t inode_size() const;
|
||||
/// @}
|
||||
|
||||
|
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user