mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04: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
|
|
@ -100,7 +100,7 @@ namespace fs
|
|||
|
||||
// it may not support it... it's fine...
|
||||
rv = fs::attr::copy(frompath,topath);
|
||||
if(return_metadata_errors_ && (rv == -1) && !l::ignorable_error(errno))
|
||||
if(return_metadata_errors_ && (rv < 0) && !l::ignorable_error(-rv))
|
||||
return -1;
|
||||
|
||||
// it may not support it... it's fine...
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue