mirror of
https://github.com/Zygo/bees.git
synced 2025-05-18 05:45:45 +02:00
btrfs-tree: accessors for TreeFetcher classes' type and tree values
Sometimes we have a generic TreeFetcher and we need to know which tree it came from. Signed-off-by: Zygo Blaxell <bees@furryterror.org>
This commit is contained in:
parent
f25b4c81ba
commit
72958a5e47
@ -110,7 +110,9 @@ namespace crucible {
|
|||||||
virtual ~BtrfsTreeFetcher() = default;
|
virtual ~BtrfsTreeFetcher() = default;
|
||||||
BtrfsTreeFetcher(Fd new_fd);
|
BtrfsTreeFetcher(Fd new_fd);
|
||||||
void type(uint8_t type);
|
void type(uint8_t type);
|
||||||
|
uint8_t type();
|
||||||
void tree(uint64_t tree);
|
void tree(uint64_t tree);
|
||||||
|
uint64_t tree();
|
||||||
void transid(uint64_t min_transid, uint64_t max_transid = numeric_limits<uint64_t>::max());
|
void transid(uint64_t min_transid, uint64_t max_transid = numeric_limits<uint64_t>::max());
|
||||||
/// Block size (sectorsize) of filesystem
|
/// Block size (sectorsize) of filesystem
|
||||||
uint64_t block_size() const;
|
uint64_t block_size() const;
|
||||||
|
@ -283,12 +283,24 @@ namespace crucible {
|
|||||||
m_type = type;
|
m_type = type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint8_t
|
||||||
|
BtrfsTreeFetcher::type()
|
||||||
|
{
|
||||||
|
return m_type;
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
BtrfsTreeFetcher::tree(uint64_t tree)
|
BtrfsTreeFetcher::tree(uint64_t tree)
|
||||||
{
|
{
|
||||||
m_tree = tree;
|
m_tree = tree;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint64_t
|
||||||
|
BtrfsTreeFetcher::tree()
|
||||||
|
{
|
||||||
|
return m_tree;
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
BtrfsTreeFetcher::transid(uint64_t min_transid, uint64_t max_transid)
|
BtrfsTreeFetcher::transid(uint64_t min_transid, uint64_t max_transid)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user