mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-20 15:06:33 -05:00
func_mknod_ff.cpp
This commit is contained in:
parent
2166f3537b
commit
8a961d56d9
1 changed files with 3 additions and 0 deletions
|
|
@ -27,6 +27,7 @@ Func2::MknodFF::operator()(const ugid_t &ugid_,
|
|||
int rv;
|
||||
fs::info_t info;
|
||||
fs::path fusedirpath;
|
||||
fs::path fullpath;
|
||||
|
||||
fusedirpath = fusepath_.parent_path();
|
||||
|
||||
|
|
@ -43,6 +44,8 @@ Func2::MknodFF::operator()(const ugid_t &ugid_,
|
|||
if(info.spaceavail < branch.minfreespace())
|
||||
continue;
|
||||
|
||||
fullpath = branch.path / fusepath_;
|
||||
|
||||
rv = fs::mknod_as(ugid_,fullpath,mode_,dev_);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue