moveonenospc: enhance the feature to allow using a policy

Just like functions you can now set a policy for moveonfreenospc. This
allows for more flexibility.

For backwards compatibility moveonfreenospc=true is converted to
moveonfreenospc=mfs.

minfreespace does apply which is slightly different from original behavior.
This commit is contained in:
Antonio SJ Musumeci 2020-07-12 14:03:14 -04:00
parent f2d4fbfdb2
commit 08d267fc61
23 changed files with 483 additions and 148 deletions

View file

@ -25,8 +25,8 @@ namespace fs
{
using std::string;
string dirname(const char *path_);
string dirname(const string *path_);
string dirname(const char *path);
string dirname(const string &path);
string basename(const string &path);