mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
branches: add per branch minfreespace w/ original value as default
example: /mnt/disk0=RW,1G:/mnt/disk1=RW,2G
This commit is contained in:
parent
98c49b8001
commit
fc3453932a
68 changed files with 3005 additions and 813 deletions
|
|
@ -28,12 +28,11 @@ int
|
|||
Policy::Func::rand(const Category type_,
|
||||
const Branches &branches_,
|
||||
const char *fusepath_,
|
||||
const uint64_t minfreespace_,
|
||||
vector<string> *paths_)
|
||||
{
|
||||
int rv;
|
||||
|
||||
rv = Policy::Func::all(type_,branches_,fusepath_,minfreespace_,paths_);
|
||||
rv = Policy::Func::all(type_,branches_,fusepath_,paths_);
|
||||
if(rv == 0)
|
||||
{
|
||||
std::random_shuffle(paths_->begin(),paths_->end());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue