mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-19 22:46:34 -05:00
policy return cleanup
This commit is contained in:
parent
570c93ec2c
commit
8a48b74cb4
24 changed files with 125 additions and 117 deletions
|
|
@ -60,11 +60,11 @@ _lfs_create(const vector<string> &basepaths,
|
|||
}
|
||||
|
||||
if(lfsbasepath == NULL)
|
||||
return POLICY_FAIL_ENOENT;
|
||||
return (errno=ENOENT,-1);
|
||||
|
||||
paths.push_back(lfsbasepath);
|
||||
|
||||
return POLICY_SUCCESS;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static
|
||||
|
|
@ -98,11 +98,11 @@ _lfs_other(const vector<string> &basepaths,
|
|||
}
|
||||
|
||||
if(lfsbasepath == NULL)
|
||||
return POLICY_FAIL_ENOENT;
|
||||
return (errno=ENOENT,-1);
|
||||
|
||||
paths.push_back(lfsbasepath);
|
||||
|
||||
return POLICY_SUCCESS;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static
|
||||
|
|
@ -132,7 +132,7 @@ namespace mergerfs
|
|||
int rv;
|
||||
|
||||
rv = _lfs(type,basepaths,fusepath,minfreespace,paths);
|
||||
if(POLICY_FAILED(rv))
|
||||
if(rv == -1)
|
||||
rv = Policy::Func::mfs(type,basepaths,fusepath,minfreespace,paths);
|
||||
|
||||
return rv;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue