mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-19 14:36:36 -05:00
cleanup function signatures and definitions
This commit is contained in:
parent
6cc6524997
commit
ec15872a1f
112 changed files with 743 additions and 820 deletions
|
|
@ -34,8 +34,8 @@ namespace ff
|
|||
static
|
||||
int
|
||||
create(const Branches &branches_,
|
||||
const uint64_t minfreespace,
|
||||
vector<string> *paths)
|
||||
const uint64_t minfreespace_,
|
||||
vector<string> *paths_)
|
||||
{
|
||||
rwlock::ReadGuard guard(&branches_.lock);
|
||||
|
||||
|
|
@ -51,15 +51,15 @@ namespace ff
|
|||
|
||||
if(branch->ro_or_nc())
|
||||
error_and_continue(error,EROFS);
|
||||
rv = fs::info(&branch->path,&info);
|
||||
rv = fs::info(branch->path,&info);
|
||||
if(rv == -1)
|
||||
error_and_continue(error,ENOENT);
|
||||
if(info.readonly)
|
||||
error_and_continue(error,EROFS);
|
||||
if(info.spaceavail < minfreespace)
|
||||
if(info.spaceavail < minfreespace_)
|
||||
error_and_continue(error,ENOSPC);
|
||||
|
||||
paths->push_back(branch->path);
|
||||
paths_->push_back(branch->path);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -69,14 +69,14 @@ namespace ff
|
|||
}
|
||||
|
||||
int
|
||||
Policy::Func::ff(const Category type,
|
||||
Policy::Func::ff(const Category type_,
|
||||
const Branches &branches_,
|
||||
const char *fusepath,
|
||||
const uint64_t minfreespace,
|
||||
vector<string> *paths)
|
||||
const char *fusepath_,
|
||||
const uint64_t minfreespace_,
|
||||
vector<string> *paths_)
|
||||
{
|
||||
if(type == Category::CREATE)
|
||||
return ff::create(branches_,minfreespace,paths);
|
||||
if(type_ == Category::CREATE)
|
||||
return ff::create(branches_,minfreespace_,paths_);
|
||||
|
||||
return Policy::Func::epff(type,branches_,fusepath,minfreespace,paths);
|
||||
return Policy::Func::epff(type_,branches_,fusepath_,minfreespace_,paths_);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue