mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-20 06:56:27 -05:00
Remove 'all' policy and simplify logic
This commit is contained in:
parent
1f61a662ad
commit
b411c63df1
26 changed files with 178 additions and 285 deletions
|
|
@ -75,13 +75,13 @@ _listxattr(const fs::SearchFunc searchFunc,
|
|||
{
|
||||
#ifndef WITHOUT_XATTR
|
||||
int rv;
|
||||
fs::PathVector paths;
|
||||
fs::Path path;
|
||||
|
||||
rv = searchFunc(srcmounts,fusepath,paths);
|
||||
rv = searchFunc(srcmounts,fusepath,path);
|
||||
if(rv == -1)
|
||||
return -errno;
|
||||
|
||||
rv = ::llistxattr(paths[0].full.c_str(),list,size);
|
||||
rv = ::llistxattr(path.full.c_str(),list,size);
|
||||
|
||||
return ((rv == -1) ? -errno : rv);
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue