mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-29 11:26:44 -05: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
|
|
@ -16,6 +16,8 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "fuse_req_ctx.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/syscall.h>
|
||||
|
|
@ -94,6 +96,11 @@ namespace ugid
|
|||
currentuid = newuid_;
|
||||
currentgid = newgid_;
|
||||
}
|
||||
|
||||
Set(const fuse_req_ctx_t *ctx_)
|
||||
: Set(ctx_->uid,ctx_->gid)
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
struct SetRootGuard
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue