Make allow-idmap optional (default: false) (#1541)
Some checks failed
CodeQL / Analyze (push) Has been cancelled
mkdocs / deploy (push) Has been cancelled

This is just to correct default behavior for now. More investigation
is necessary to properly support idmapping.
This commit is contained in:
trapexit 2025-10-06 15:46:58 -04:00 • committed by GitHub
parent 3cb35a3a65
commit 0f24bb29ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 27 additions and 4 deletions

View file

@ -53,6 +53,7 @@ namespace l
bool
readonly(const std::string &s_)
{
IFERT("allow-idmap");
IFERT("async_read");
IFERT("branches-mount-timeout");
IFERT("branches-mount-timeout-fail");
@ -81,7 +82,8 @@ namespace l
}
Config::Config()
: async_read(true),
: allow_idmap(false),
async_read(true),
auto_cache(false),
minfreespace(MINFREESPACE_DEFAULT),
branches(minfreespace),
@ -140,6 +142,7 @@ Config::Config()
xattr(XAttr::ENUM::PASSTHROUGH),
_initialized(false)
{
_map["allow-idmap"] = &allow_idmap;
_map["async_read"] = &async_read;
_map["auto_cache"] = &auto_cache;
_map["branches"] = &branches;