Rework of runtime interface (#1498)
Some checks failed
CodeQL / Analyze (push) Has been cancelled
mkdocs / deploy (push) Has been cancelled

Also have special error handling for when branches are invalid and
ENOENT would be returned for getattr and readdir so users understand
what is going on and the runtime interface can still be used to fix
the problem.
This commit is contained in:
trapexit 2025-07-21 18:18:59 -05:00 • committed by GitHub
parent e87867cd2a
commit 2b500f194a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
37 changed files with 3376 additions and 822 deletions

View file

@ -237,17 +237,17 @@ namespace l
void
usr1_signal_handler(int signal_)
{
SysLog::info("Received SIGUSR1 - invalidating all nodes");
fuse_invalidate_all_nodes();
// SysLog::info("Received SIGUSR1 - invalidating all nodes");
// fuse_invalidate_all_nodes();
}
static
void
usr2_signal_handler(int signal_)
{
SysLog::info("Received SIGUSR2 - triggering thorough gc");
fuse_gc();
GIDCache::clear_all();
// SysLog::info("Received SIGUSR2 - triggering thorough gc");
// fuse_gc();
// GIDCache::clear_all();
}
static
@ -284,8 +284,6 @@ namespace l
fuse_operations ops;
SysLog::open();
SysLog::info("mergerfs v{} started",MERGERFS_VERSION);
SysLog::info("Go to https://trapexit.github.io/mergerfs/support for support");
memset(&ops,0,sizeof(fuse_operations));
@ -309,6 +307,8 @@ namespace l
return 1;
}
SysLog::info("mergerfs v{} started",MERGERFS_VERSION);
SysLog::info("Go to https://trapexit.github.io/mergerfs/support for support");
l::warn_if_not_root();
MaintenanceThread::push_job([](int count_)