mirror of
https://github.com/trapexit/mergerfs.git
synced 2025-06-13 07:13:35 +08:00
move Path object to separate file
This commit is contained in:
@ -49,14 +49,14 @@ _truncate(const fs::find::Func actionFunc,
|
||||
{
|
||||
int rv;
|
||||
int error;
|
||||
fs::Paths paths;
|
||||
Paths paths;
|
||||
|
||||
rv = actionFunc(srcmounts,fusepath,minfreespace,paths);
|
||||
if(rv == -1)
|
||||
return -errno;
|
||||
|
||||
error = 0;
|
||||
for(fs::Paths::const_iterator
|
||||
for(Paths::const_iterator
|
||||
i = paths.begin(), ei = paths.end(); i != ei; ++i)
|
||||
{
|
||||
rv = ::truncate(i->full.c_str(),size);
|
||||
|
Reference in New Issue
Block a user