mirror of
https://github.com/trapexit/mergerfs.git
synced 2025-06-17 09:52:34 +08:00
create different policies based on category of use
This commit is contained in:
@ -57,10 +57,9 @@ _truncate(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 = ::truncate(i->full.c_str(),size);
|
||||
rv = ::truncate(paths[i].full.c_str(),size);
|
||||
if(rv == -1)
|
||||
error = errno;
|
||||
}
|
||||
|
Reference in New Issue
Block a user