mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
Auto-commit fuse_truncate.cpp
This commit is contained in:
parent
65e5f18ea9
commit
13355bcd3a
1 changed files with 2 additions and 0 deletions
|
|
@ -75,6 +75,8 @@ _truncate(const Policy::Action &actionFunc_,
|
|||
rv = actionFunc_(branches_,fusepath_,branches);
|
||||
if(rv < 0)
|
||||
return rv;
|
||||
if(branches.empty())
|
||||
return -ENOENT;
|
||||
|
||||
::_truncate_loop(branches,fusepath_,size_,&prv);
|
||||
if(prv.errors.empty())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue