mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
add ability to turn on/off xattr support at runtime
This commit is contained in:
parent
6ee44e451c
commit
65f482e483
9 changed files with 138 additions and 18 deletions
|
|
@ -51,8 +51,9 @@ _listxattr_controlfile(char *list,
|
|||
("user.mergerfs.symlinkify_timeout")
|
||||
("user.mergerfs.nullrw")
|
||||
("user.mergerfs.ignorepponrename")
|
||||
("user.mergerfs.security_capability")
|
||||
("user.mergerfs.link_cow")
|
||||
("user.mergerfs.security_capability")
|
||||
("user.mergerfs.xattr")
|
||||
("user.mergerfs.policies")
|
||||
("user.mergerfs.version")
|
||||
("user.mergerfs.pid");
|
||||
|
|
@ -115,6 +116,16 @@ namespace mergerfs
|
|||
if(fusepath == config.controlfile)
|
||||
return _listxattr_controlfile(list,size);
|
||||
|
||||
switch(config.xattr)
|
||||
{
|
||||
case 0:
|
||||
break;
|
||||
case ENOATTR:
|
||||
return 0;
|
||||
default:
|
||||
return -config.xattr;
|
||||
}
|
||||
|
||||
const ugid::Set ugid(fc->uid,fc->gid);
|
||||
const rwlock::ReadGuard readlock(&config.srcmountslock);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue