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:
+5
-3
@@ -93,19 +93,21 @@ _ioctl_dir_base(Policy::Func::Search searchFunc,
|
||||
{
|
||||
int fd;
|
||||
int rv;
|
||||
Paths path;
|
||||
vector<string> path;
|
||||
|
||||
rv = searchFunc(srcmounts,fusepath,minfreespace,path);
|
||||
if(rv == -1)
|
||||
return -errno;
|
||||
|
||||
fd = ::open(path[0].full.c_str(),flags);
|
||||
fs::path::append(path[0],fusepath);
|
||||
|
||||
fd = ::open(path[0].c_str(),flags);
|
||||
if(fd == -1)
|
||||
return -errno;
|
||||
|
||||
rv = _ioctl(fd,cmd,arg,flags,data);
|
||||
|
||||
close(fd);
|
||||
::close(fd);
|
||||
|
||||
return rv;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user