From 126df0fbf191d463d2192798fcc731d639750d6a Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Mon, 24 Aug 2015 15:51:17 -0400 Subject: [PATCH] fix epmfs failing to pick the existing path. closes #102 --- src/policy_epmfs.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/policy_epmfs.cpp b/src/policy_epmfs.cpp index 3d1c8a53..d712b5d9 100644 --- a/src/policy_epmfs.cpp +++ b/src/policy_epmfs.cpp @@ -129,6 +129,7 @@ _epmfs_create(const vector &basepaths, fsblkcnt_t mfs; string mfsbasepath; string epmfsbasepath; + string fullpath; mfs = 0; epmfs = 0; @@ -137,7 +138,9 @@ _epmfs_create(const vector &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); }