mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-19 14:36:36 -05:00
Fix MSP create policy hangs when no branches qualify
- Stop parent traversal after evaluating the empty relative root. - Preserve filtering errors, parent fallback, and closest-path selection. - Cover all four MSP policies with rejection and fallback regressions. - Document errors when traversal exhausts the branch root.
This commit is contained in:
parent
8e87bcbff2
commit
28d809f2f8
6 changed files with 169 additions and 8 deletions
|
|
@ -86,7 +86,7 @@ _create(const Branches::Ptr &branches_,
|
|||
branch = ::_create_1(branches_,fusepath,&error);
|
||||
if(branch)
|
||||
break;
|
||||
if(fusepath == "/")
|
||||
if(fusepath.empty())
|
||||
break;
|
||||
fusepath = fusepath.parent_path();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ _create(const Branches::Ptr &branches_,
|
|||
branch = ::_create_1(branches_,fusepath,&err);
|
||||
if(branch)
|
||||
break;
|
||||
if(fusepath == "/")
|
||||
if(fusepath.empty())
|
||||
break;
|
||||
fusepath = fusepath.parent_path();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ _create(const Branches::Ptr &branches_,
|
|||
branch = ::_create_1(branches_,fusepath,&error);
|
||||
if(branch)
|
||||
break;
|
||||
if(fusepath == "/")
|
||||
if(fusepath.empty())
|
||||
break;
|
||||
|
||||
fusepath = fusepath.parent_path();
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ _get_branchinfo(const Branches::Ptr &branches_,
|
|||
rv = ::_create_1(branches_,fusepath,branchinfo_,sum_);
|
||||
if(branchinfo_->size())
|
||||
break;
|
||||
if(fusepath == "/")
|
||||
if(fusepath.empty())
|
||||
break;
|
||||
fusepath = fusepath.parent_path();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue