mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-25 09:26:25 -05:00
Rework of runtime interface (#1498)
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:
parent
e87867cd2a
commit
2b500f194a
37 changed files with 3376 additions and 822 deletions
|
|
@ -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_)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue