mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-26 01:46:31 -05:00
Move everything to negative errno return types (#1499)
This commit is contained in:
parent
2b500f194a
commit
e8cd74cab0
177 changed files with 5952 additions and 5843 deletions
|
|
@ -122,8 +122,8 @@ _compare_files(const std::string &mergerfs_path_,
|
|||
for(auto &pathstat : pathstats_)
|
||||
{
|
||||
rv = fs::lstat(pathstat.path,&pathstat.st);
|
||||
if(rv == -1)
|
||||
pathstat.st.st_size = -errno;
|
||||
if(rv < 0)
|
||||
pathstat.st.st_size = rv;
|
||||
}
|
||||
|
||||
if(!::_files_differ(pathstats_,check_size_))
|
||||
|
|
@ -374,7 +374,7 @@ _fsck(const FS::path &path_,
|
|||
{
|
||||
paths.clear();
|
||||
rv = ::_get_allpaths(de.path(),paths);
|
||||
if(rv == -1)
|
||||
if(rv < 0)
|
||||
continue;
|
||||
|
||||
::_compare_files(de.path(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue