mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-22 16:06:27 -05:00
func_mknod_ff.cpp
This commit is contained in:
parent
8a961d56d9
commit
51af59ee59
1 changed files with 0 additions and 25 deletions
|
|
@ -48,29 +48,4 @@ Func2::MknodFF::operator()(const ugid_t &ugid_,
|
|||
|
||||
rv = fs::mknod_as(ugid_,fullpath,mode_,dev_);
|
||||
}
|
||||
|
||||
if(!create_branch)
|
||||
return -ENOSPC;
|
||||
|
||||
// Clone path if needed
|
||||
if(existing_branch != create_branch)
|
||||
{
|
||||
rv = fs::clonepath(existing_branch->path,
|
||||
create_branch->path,
|
||||
fusedirpath);
|
||||
if(rv < 0)
|
||||
return rv;
|
||||
}
|
||||
|
||||
// Create the node
|
||||
fs::path fullpath = create_branch->path / fusepath_;
|
||||
if(!fs::acl::dir_has_defaults(fullpath))
|
||||
{
|
||||
mode_t mode = mode_ & ~umask_;
|
||||
return fs::mknod_as(ugid_, fullpath, mode, dev_);
|
||||
}
|
||||
else
|
||||
{
|
||||
return fs::mknod_as(ugid_, fullpath, mode_, dev_);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue