mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04: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
|
|
@ -57,15 +57,12 @@ _readdir(const vector<string> &srcmounts,
|
|||
set<string> found;
|
||||
struct stat st = {0};
|
||||
|
||||
for(vector<string>::const_iterator
|
||||
iter = srcmounts.begin(), enditer = srcmounts.end();
|
||||
iter != enditer;
|
||||
++iter)
|
||||
for(size_t i = 0, ei = srcmounts.size(); i != ei; i++)
|
||||
{
|
||||
DIR *dh;
|
||||
string basepath;
|
||||
|
||||
basepath = fs::make_path(*iter,dirname);
|
||||
basepath = fs::make_path(srcmounts[i],dirname);
|
||||
dh = ::opendir(basepath.c_str());
|
||||
if(!dh)
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue