mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
Rework how fuse request context is handled (#1543)
This commit is contained in:
parent
d18c273293
commit
0371f03def
117 changed files with 1894 additions and 2438 deletions
|
|
@ -89,12 +89,12 @@ _utimens(const Policy::Action &utimensPolicy_,
|
|||
}
|
||||
|
||||
int
|
||||
FUSE::utimens(const char *fusepath_,
|
||||
const timespec ts_[2])
|
||||
FUSE::utimens(const fuse_req_ctx_t *ctx_,
|
||||
const char *fusepath_,
|
||||
const timespec ts_[2])
|
||||
{
|
||||
const fs::path fusepath{fusepath_};
|
||||
const fuse_context *fc = fuse_get_context();
|
||||
const ugid::Set ugid(fc->uid,fc->gid);
|
||||
const fs::path fusepath{fusepath_};
|
||||
const ugid::Set ugid(ctx_);
|
||||
|
||||
return ::_utimens(cfg.func.utimens.policy,
|
||||
cfg.func.getattr.policy,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue