mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
policy return cleanup
This commit is contained in:
parent
570c93ec2c
commit
8a48b74cb4
24 changed files with 125 additions and 117 deletions
|
|
@ -52,15 +52,15 @@ _ff_create(const vector<string> &basepaths,
|
|||
|
||||
paths.push_back(basepath);
|
||||
|
||||
return POLICY_SUCCESS;
|
||||
return 0;
|
||||
}
|
||||
|
||||
if(fallback == NULL)
|
||||
return POLICY_FAIL_ENOENT;
|
||||
return (errno=ENOENT,-1);
|
||||
|
||||
paths.push_back(fallback);
|
||||
|
||||
return POLICY_SUCCESS;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static
|
||||
|
|
@ -82,10 +82,10 @@ _ff_other(const vector<string> &basepaths,
|
|||
|
||||
paths.push_back(basepath);
|
||||
|
||||
return POLICY_SUCCESS;
|
||||
return 0;
|
||||
}
|
||||
|
||||
return POLICY_FAIL_ENOENT;
|
||||
return (errno=ENOENT,-1);
|
||||
}
|
||||
|
||||
namespace mergerfs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue