Change misc defaults

* category.create=pfrd
* moveonenospc=pfrd
* cache.files=off
* parallel-direct-writes=true

These changes were made to match the recommended settings for most
users to reduce confusion.
This commit is contained in:
Antonio SJ Musumeci 2025-03-30 16:30:36 -05:00
parent 7f410073d4
commit b7f7f7fa97
7 changed files with 27 additions and 19 deletions

View file

@ -87,7 +87,7 @@ Config::Config()
branches_mount_timeout(0),
cache_attr(1),
cache_entry(1),
cache_files(CacheFiles::ENUM::LIBFUSE),
cache_files(CacheFiles::ENUM::OFF),
cache_files_process_names(CACHE_FILES_PROCESS_NAMES_DEFAULT),
cache_negative_entry(0),
cache_readdir(false),
@ -110,10 +110,10 @@ Config::Config()
link_exdev(LinkEXDEV::ENUM::PASSTHROUGH),
log_metrics(false),
mountpoint(),
moveonenospc(false),
moveonenospc(true),
nfsopenhack(NFSOpenHack::ENUM::OFF),
nullrw(false),
parallel_direct_writes(false),
parallel_direct_writes(true),
posix_acl(false),
readahead(0),
readdir("seq"),

View file

@ -31,11 +31,13 @@ MoveOnENOSPC::from_string(const std::string &s_)
rv = str::from(s_,&enabled);
if((rv == 0) && (enabled == true))
s = "mfs";
s = "pfrd";
ef((rv == 0) && (enabled == false))
return (enabled = false,0);
ef(rv != 0)
s = s_;
else
return 0;
return -EINVAL;
tmp = Policies::Create::find(s);
if(tmp == NULL)

View file

@ -30,7 +30,7 @@ class MoveOnENOSPC : public ToFromString
public:
MoveOnENOSPC(const bool enabled_)
: enabled(enabled_),
policy(&Policies::Create::mfs)
policy(&Policies::Create::pfrd)
{
}

View file

@ -87,7 +87,7 @@ namespace Func
{
public:
CreateDefault()
: Func::Base::Create(&Policies::Create::epmfs)
: Func::Base::Create(&Policies::Create::pfrd)
{
}
};