mirror of https://github.com/trapexit/mergerfs.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
596 B
29 lines
596 B
#pragma once
|
|
|
|
#include "branch2.hpp"
|
|
|
|
#include "toml.hpp"
|
|
|
|
#include <vector>
|
|
|
|
class BranchTier
|
|
{
|
|
public:
|
|
BranchTier();
|
|
BranchTier(toml::value const &);
|
|
|
|
public:
|
|
void copy_enabled_rw(BranchTier &);
|
|
|
|
public:
|
|
uint64_t min_free_space;
|
|
|
|
public:
|
|
std::vector<Branch2>::iterator begin() { return _branches.begin(); }
|
|
std::vector<Branch2>::iterator end() { return _branches.end(); }
|
|
std::vector<Branch2>::const_iterator begin() const { return _branches.begin(); }
|
|
std::vector<Branch2>::const_iterator end() const { return _branches.end(); }
|
|
|
|
private:
|
|
std::vector<Branch2> _branches;
|
|
};
|