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
|
|
@ -55,10 +55,9 @@ _unlink(Policy::Func::Action actionFunc,
|
|||
return -errno;
|
||||
|
||||
error = 0;
|
||||
for(Paths::const_iterator
|
||||
i = paths.begin(), ei = paths.end(); i != ei; ++i)
|
||||
for(size_t i = 0, ei = paths.size(); i != ei; i++)
|
||||
{
|
||||
rv = ::unlink(i->full.c_str());
|
||||
rv = ::unlink(paths[i].full.c_str());
|
||||
if(rv == -1)
|
||||
error = errno;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue