mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-20 15:06:33 -05:00
Merge pull request #106 from trapexit/epmfs-fix
fix epmfs failing to pick the existing path. closes #102
This commit is contained in:
commit
cac5f1b827
1 changed files with 4 additions and 1 deletions
|
|
@ -129,6 +129,7 @@ _epmfs_create(const vector<string> &basepaths,
|
|||
fsblkcnt_t mfs;
|
||||
string mfsbasepath;
|
||||
string epmfsbasepath;
|
||||
string fullpath;
|
||||
|
||||
mfs = 0;
|
||||
epmfs = 0;
|
||||
|
|
@ -137,7 +138,9 @@ _epmfs_create(const vector<string> &basepaths,
|
|||
int rv;
|
||||
const string &basepath = basepaths[i];
|
||||
|
||||
rv = _try_statvfs(basepath,fusepath,epmfs,epmfsbasepath,mfs,mfsbasepath);
|
||||
fullpath = fs::path::make(basepath,fusepath);
|
||||
|
||||
rv = _try_statvfs(basepath,fullpath,epmfs,epmfsbasepath,mfs,mfsbasepath);
|
||||
if(rv == -1)
|
||||
_try_statvfs(basepath,mfs,mfsbasepath);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue