mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-12-04 22:00:15 -05: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);
|
rv = actionFunc_(branches_,fusepath_,branches);
|
||||||
if(rv < 0)
|
if(rv < 0)
|
||||||
return rv;
|
return rv;
|
||||||
|
if(branches.empty())
|
||||||
|
return -ENOENT;
|
||||||
|
|
||||||
::_truncate_loop(branches,fusepath_,size_,&prv);
|
::_truncate_loop(branches,fusepath_,size_,&prv);
|
||||||
if(prv.errors.empty())
|
if(prv.errors.empty())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue