mirror of
https://github.com/trapexit/mergerfs.git
synced 2025-06-21 04:41:25 +08:00
create different policies based on category of use
This commit is contained in:
@ -91,10 +91,9 @@ _rename(Policy::Func::Search searchFunc,
|
||||
return -errno;
|
||||
|
||||
error = 0;
|
||||
for(Paths::const_iterator
|
||||
i = oldpaths.begin(), ei = oldpaths.end(); i != ei; ++i)
|
||||
for(size_t i = 0, ei = oldpaths.size(); i != ei; i++)
|
||||
{
|
||||
rv = _single_rename(searchFunc,srcmounts,minfreespace,*i,newpath);
|
||||
rv = _single_rename(searchFunc,srcmounts,minfreespace,oldpaths[i],newpath);
|
||||
if(rv == -1)
|
||||
error = errno;
|
||||
}
|
||||
|
Reference in New Issue
Block a user