mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-21 23:46:26 -05:00
checkpoint
This commit is contained in:
parent
b3b8e793f9
commit
8ab6bcf554
11 changed files with 347 additions and 17 deletions
|
|
@ -145,26 +145,23 @@ FUSE::mknod(const fuse_req_ctx_t *ctx_,
|
|||
{
|
||||
int rv;
|
||||
const fs::path fusepath{fusepath_};
|
||||
const ugid_t ugid(ctx_);
|
||||
|
||||
rv = ::_mknod(ctx_,
|
||||
cfg.func.getattr.policy,
|
||||
cfg.func.mknod.policy,
|
||||
cfg.branches,
|
||||
fusepath,
|
||||
mode_,
|
||||
ctx_->umask,
|
||||
rdev_);
|
||||
rv = cfg.mknod(ugid,
|
||||
cfg.branches,
|
||||
fusepath,
|
||||
mode_,
|
||||
ctx_->umask,
|
||||
rdev_);
|
||||
if(rv == -EROFS)
|
||||
{
|
||||
cfg.branches.find_and_set_mode_ro();
|
||||
rv = ::_mknod(ctx_,
|
||||
cfg.func.getattr.policy,
|
||||
cfg.func.mknod.policy,
|
||||
cfg.branches,
|
||||
fusepath,
|
||||
mode_,
|
||||
ctx_->umask,
|
||||
rdev_);
|
||||
rv = cfg.mknod(ugid,
|
||||
cfg.branches,
|
||||
fusepath,
|
||||
mode_,
|
||||
ctx_->umask,
|
||||
rdev_);
|
||||
}
|
||||
|
||||
return rv;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue