mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-28 19:06:39 -05:00
generate the controlfile data on the fly. closes #19
This commit is contained in:
parent
15a0416eed
commit
ccb0ac1463
11 changed files with 57 additions and 52 deletions
|
|
@ -39,8 +39,7 @@ namespace mergerfs
|
|||
: action(policies[0]),
|
||||
create(policies[1]),
|
||||
search(policies[2]),
|
||||
controlfile("/.mergerfs"),
|
||||
testmode(false)
|
||||
controlfile("/.mergerfs")
|
||||
{
|
||||
action = &Policy::ff;
|
||||
create = &Policy::epmfs;
|
||||
|
|
@ -64,7 +63,7 @@ namespace mergerfs
|
|||
}
|
||||
|
||||
std::string
|
||||
Config::generateReadStr() const
|
||||
Config::controlfiledata() const
|
||||
{
|
||||
std::stringstream ss;
|
||||
|
||||
|
|
@ -75,13 +74,6 @@ namespace mergerfs
|
|||
return ss.str();
|
||||
}
|
||||
|
||||
void
|
||||
Config::updateReadStr()
|
||||
{
|
||||
readstr = generateReadStr();
|
||||
controlfilestat.st_size = readstr.size();
|
||||
}
|
||||
|
||||
const Config&
|
||||
get(void)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue