mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-20 06:56:27 -05:00
create different policies based on category of use
This commit is contained in:
parent
51b6d3f647
commit
0c60701b29
23 changed files with 589 additions and 290 deletions
|
|
@ -82,11 +82,11 @@ _statfs(const vector<string> &srcmounts,
|
|||
vector<string>::const_iterator iter;
|
||||
vector<string>::const_iterator enditer;
|
||||
|
||||
for(iter = srcmounts.begin(), enditer = srcmounts.end(); iter != enditer; ++iter)
|
||||
for(size_t i = 0, ei = srcmounts.size(); i != ei; i++)
|
||||
{
|
||||
int rv;
|
||||
struct statvfs fsstat;
|
||||
rv = ::statvfs(iter->c_str(),&fsstat);
|
||||
rv = ::statvfs(srcmounts[i].c_str(),&fsstat);
|
||||
if(rv != 0)
|
||||
continue;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue