mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-20 06:56:27 -05:00
Fix branch snapshot lifetime in EXDEV link fallback
This commit is contained in:
parent
b0d344308d
commit
ecb4de5bc0
2 changed files with 5 additions and 1 deletions
|
|
@ -20,6 +20,9 @@ selected by the `open` policy. Creation uses daemon credentials, then
|
|||
sets the source ownership, rather than using the link request's UID/GID,
|
||||
which may be invalid when `allow-idmap` is enabled. A newly created
|
||||
replacement is removed if its ownership cannot be set.
|
||||
|
||||
Source branch selection and path construction retain the same branch
|
||||
snapshot, even when the branch list is updated at runtime.
|
||||
|
||||
**NOTE:** It is possible that some applications check the file they
|
||||
link. In those cases, it is possible it will error or complain.
|
||||
|
|
|
|||
|
|
@ -306,7 +306,8 @@ _link_exdev(const fs::path &oldpath_,
|
|||
return -EXDEV;
|
||||
}
|
||||
|
||||
rv = (*sourcePolicy)(cfg.branches,oldpath_,oldbranches);
|
||||
const Branches::Ptr branches = cfg.branches;
|
||||
rv = (*sourcePolicy)(branches,oldpath_,oldbranches);
|
||||
if(rv < 0)
|
||||
return rv;
|
||||
if(oldbranches.empty())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue