mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-26 09:56:28 -05:00
Start using std::filesystem::path for fusepath (#1522)
This commit is contained in:
parent
f64ff9ca1e
commit
8c649d33ee
139 changed files with 1711 additions and 1663 deletions
|
|
@ -34,7 +34,7 @@
|
|||
static
|
||||
Branch*
|
||||
_create_1(const Branches::Ptr &branches_,
|
||||
const std::string &fusepath_,
|
||||
const fs::path &fusepath_,
|
||||
int *err_)
|
||||
{
|
||||
int rv;
|
||||
|
|
@ -70,12 +70,12 @@ _create_1(const Branches::Ptr &branches_,
|
|||
static
|
||||
int
|
||||
_create(const Branches::Ptr &branches_,
|
||||
const char *fusepath_,
|
||||
const fs::path &fusepath_,
|
||||
std::vector<Branch*> &paths_)
|
||||
{
|
||||
int error;
|
||||
std::string fusepath;
|
||||
Branch *branch;
|
||||
fs::path fusepath;
|
||||
|
||||
error = ENOENT;
|
||||
fusepath = fusepath_;
|
||||
|
|
@ -86,7 +86,8 @@ _create(const Branches::Ptr &branches_,
|
|||
break;
|
||||
if(fusepath == "/")
|
||||
break;
|
||||
fusepath = fs::path::dirname(fusepath);
|
||||
|
||||
fusepath = fusepath.parent_path();
|
||||
}
|
||||
|
||||
if(!branch)
|
||||
|
|
@ -98,8 +99,8 @@ _create(const Branches::Ptr &branches_,
|
|||
}
|
||||
|
||||
int
|
||||
Policy::MSPMFS::Action::operator()(const Branches::Ptr &branches_,
|
||||
const char *fusepath_,
|
||||
Policy::MSPMFS::Action::operator()(const Branches::Ptr &branches_,
|
||||
const fs::path &fusepath_,
|
||||
std::vector<Branch*> &paths_) const
|
||||
{
|
||||
return Policies::Action::epmfs(branches_,fusepath_,paths_);
|
||||
|
|
@ -107,7 +108,7 @@ Policy::MSPMFS::Action::operator()(const Branches::Ptr &branches_,
|
|||
|
||||
int
|
||||
Policy::MSPMFS::Create::operator()(const Branches::Ptr &branches_,
|
||||
const char *fusepath_,
|
||||
const fs::path &fusepath_,
|
||||
std::vector<Branch*> &paths_) const
|
||||
{
|
||||
return ::_create(branches_,fusepath_,paths_);
|
||||
|
|
@ -115,7 +116,7 @@ Policy::MSPMFS::Create::operator()(const Branches::Ptr &branches_,
|
|||
|
||||
int
|
||||
Policy::MSPMFS::Search::operator()(const Branches::Ptr &branches_,
|
||||
const char *fusepath_,
|
||||
const fs::path &fusepath_,
|
||||
std::vector<Branch*> &paths_) const
|
||||
{
|
||||
return Policies::Search::epmfs(branches_,fusepath_,paths_);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue