mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-26 09:56:28 -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
|
|
@ -57,12 +57,11 @@ _symlink(Policy::Func::Create createFunc,
|
|||
return -errno;
|
||||
|
||||
error = 0;
|
||||
for(Paths::iterator
|
||||
i = newpathdirs.begin(), ei = newpathdirs.end(); i != ei; ++i)
|
||||
for(size_t i = 0, ei = newpathdirs.size(); i != ei; i++)
|
||||
{
|
||||
i->full = fs::make_path(i->base,newpath);
|
||||
newpathdirs[i].full = fs::make_path(newpathdirs[i].base,newpath);
|
||||
|
||||
rv = symlink(oldpath.c_str(),i->full.c_str());
|
||||
rv = symlink(oldpath.c_str(),newpathdirs[i].full.c_str());
|
||||
if(rv == -1)
|
||||
error = errno;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue