mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
Add "per-process" file caching feature
Allows chosing page caching based on process name.
This commit is contained in:
parent
b51a5970b2
commit
9effeb6869
15 changed files with 363 additions and 55 deletions
|
|
@ -36,6 +36,8 @@ CacheFiles::to_string() const
|
|||
return "full";
|
||||
case CacheFiles::ENUM::AUTO_FULL:
|
||||
return "auto-full";
|
||||
case CacheFiles::ENUM::PER_PROCESS:
|
||||
return "per-process";
|
||||
}
|
||||
|
||||
return "invalid";
|
||||
|
|
@ -55,6 +57,8 @@ CacheFiles::from_string(const std::string &s_)
|
|||
_data = CacheFiles::ENUM::FULL;
|
||||
ef(s_ == "auto-full")
|
||||
_data = CacheFiles::ENUM::AUTO_FULL;
|
||||
ef(s_ == "per-process")
|
||||
_data = CacheFiles::ENUM::PER_PROCESS;
|
||||
else
|
||||
return -EINVAL;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue