mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-26 09:56:28 -05:00
checkpoint
This commit is contained in:
parent
3cc77d6066
commit
7a81a5112c
40 changed files with 797 additions and 970 deletions
|
|
@ -15,7 +15,6 @@
|
|||
*/
|
||||
|
||||
#include "category.hpp"
|
||||
#include "config.hpp"
|
||||
#include "errno.hpp"
|
||||
#include "fs_llistxattr.hpp"
|
||||
#include "fs_path.hpp"
|
||||
|
|
@ -60,44 +59,15 @@ namespace l
|
|||
|
||||
namespace FUSE::LISTXATTR
|
||||
{
|
||||
int
|
||||
listxattr_old(const char *fusepath_,
|
||||
char *list_,
|
||||
size_t size_)
|
||||
{
|
||||
Config::Read cfg;
|
||||
|
||||
switch(cfg->xattr)
|
||||
{
|
||||
case XAttr::ENUM::PASSTHROUGH:
|
||||
break;
|
||||
case XAttr::ENUM::NOATTR:
|
||||
return 0;
|
||||
case XAttr::ENUM::NOSYS:
|
||||
return -ENOSYS;
|
||||
}
|
||||
|
||||
const fuse_context *fc = fuse_get_context();
|
||||
const ugid::Set ugid(fc->uid,fc->gid);
|
||||
|
||||
return l::listxattr(cfg->func.listxattr.policy,
|
||||
cfg->branches,
|
||||
fusepath_,
|
||||
list_,
|
||||
size_);
|
||||
}
|
||||
|
||||
int
|
||||
listxattr(const char *fusepath_,
|
||||
char *list_,
|
||||
size_t size_)
|
||||
{
|
||||
State s;
|
||||
gfs::path fusepath;
|
||||
const fuse_context *fc = fuse_get_context();
|
||||
const ugid::Set ugid(fc->uid,fc->gid);
|
||||
|
||||
fusepath = &fusepath_[1];
|
||||
return s->listxattr(fusepath,list_,size_);
|
||||
return s->listxattr(&fusepath_[1],list_,size_);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue