mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
stop auto calculating and storing fullpath in policies
This commit is contained in:
parent
0c60701b29
commit
b2cd79154a
37 changed files with 278 additions and 259 deletions
|
|
@ -51,7 +51,7 @@ _removexattr(Policy::Func::Action actionFunc,
|
|||
#ifndef WITHOUT_XATTR
|
||||
int rv;
|
||||
int error;
|
||||
Paths paths;
|
||||
vector<string> paths;
|
||||
|
||||
rv = actionFunc(srcmounts,fusepath,minfreespace,paths);
|
||||
if(rv == -1)
|
||||
|
|
@ -60,7 +60,9 @@ _removexattr(Policy::Func::Action actionFunc,
|
|||
error = 0;
|
||||
for(size_t i = 0, ei = paths.size(); i != ei; i++)
|
||||
{
|
||||
rv = ::lremovexattr(paths[i].full.c_str(),attrname);
|
||||
fs::path::append(paths[i],fusepath);
|
||||
|
||||
rv = ::lremovexattr(paths[i].c_str(),attrname);
|
||||
if(rv == -1)
|
||||
error = errno;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue