mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
realpath'ize all source mount points. closes #117
This commit is contained in:
parent
2d899479c3
commit
ce9352987c
4 changed files with 24 additions and 0 deletions
|
|
@ -59,6 +59,7 @@ _add_srcmounts(vector<string> &srcmounts,
|
|||
|
||||
str::split(patterns,values,':');
|
||||
fs::glob(patterns,additions);
|
||||
fs::realpathize(additions);
|
||||
|
||||
if(!additions.empty())
|
||||
{
|
||||
|
|
@ -106,6 +107,7 @@ _replace_srcmounts(vector<string> &srcmounts,
|
|||
|
||||
str::split(patterns,values,':');
|
||||
fs::glob(patterns,newmounts);
|
||||
fs::realpathize(newmounts);
|
||||
|
||||
{
|
||||
const rwlock::WriteGuard wrg(&srcmountslock);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue