mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
revert removal of 'all' policy and relevant behavior. closes #54
This commit is contained in:
parent
a359c88173
commit
c022741ffb
28 changed files with 454 additions and 225 deletions
|
|
@ -190,7 +190,7 @@ _getxattr_user_mergerfs(const fs::Path &path,
|
|||
|
||||
static
|
||||
int
|
||||
_getxattr(const fs::SearchFunc searchFunc,
|
||||
_getxattr(const fs::find::Func searchFunc,
|
||||
const vector<string> &srcmounts,
|
||||
const string &fusepath,
|
||||
const char *attrname,
|
||||
|
|
@ -199,17 +199,17 @@ _getxattr(const fs::SearchFunc searchFunc,
|
|||
{
|
||||
#ifndef WITHOUT_XATTR
|
||||
int rv;
|
||||
fs::Path path;
|
||||
fs::Paths path;
|
||||
|
||||
rv = searchFunc(srcmounts,fusepath,path);
|
||||
rv = searchFunc(srcmounts,fusepath,path,1);
|
||||
if(rv == -1)
|
||||
return -errno;
|
||||
|
||||
if(!strncmp("user.mergerfs.",attrname,sizeof("user.mergerfs.")-1))
|
||||
rv = _getxattr_user_mergerfs(path,srcmounts,fusepath,attrname,buf,count);
|
||||
rv = _getxattr_user_mergerfs(path[0],srcmounts,fusepath,attrname,buf,count);
|
||||
|
||||
if(rv == -1 && errno == ENOATTR)
|
||||
rv = ::lgetxattr(path.full.c_str(),attrname,buf,count);
|
||||
rv = ::lgetxattr(path[0].full.c_str(),attrname,buf,count);
|
||||
|
||||
return ((rv == -1) ? -errno : rv);
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue