mirror of
https://github.com/trapexit/mergerfs.git
synced 2024-04-21 12:31:43 +00:00
stop auto calculating and storing fullpath in policies
This commit is contained in:
+4
-2
@@ -49,13 +49,15 @@ _readlink(Policy::Func::Search searchFunc,
|
||||
const size_t size)
|
||||
{
|
||||
int rv;
|
||||
Paths path;
|
||||
vector<string> path;
|
||||
|
||||
rv = searchFunc(srcmounts,fusepath,minfreespace,path);
|
||||
if(rv == -1)
|
||||
return -errno;
|
||||
|
||||
rv = ::readlink(path[0].full.c_str(),buf,size);
|
||||
fs::path::append(path[0],fusepath);
|
||||
|
||||
rv = ::readlink(path[0].c_str(),buf,size);
|
||||
if(rv == -1)
|
||||
return -errno;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user