mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
Auto-commit fuse_symlink.cpp
This commit is contained in:
parent
b1621cb86c
commit
b00f63bc40
1 changed files with 4 additions and 0 deletions
|
|
@ -112,10 +112,14 @@ _symlink(const ugid_t ugid_,
|
|||
rv = searchFunc_(branches_,newdirpath,existingbranches);
|
||||
if(rv < 0)
|
||||
return rv;
|
||||
if(existingbranches.empty())
|
||||
return -ENOENT;
|
||||
|
||||
rv = createFunc_(branches_,newdirpath,newbranches);
|
||||
if(rv < 0)
|
||||
return rv;
|
||||
if(newbranches.empty())
|
||||
return -ENOENT;
|
||||
|
||||
return ::_symlink_loop(ugid_,
|
||||
existingbranches[0]->path,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue