Build improvements (#1501)
Some checks failed
CodeQL / Analyze (push) Has been cancelled
mkdocs / deploy (push) Has been cancelled

* Remove python dependency
* Remove ecfd
* Improve makefiles
* Make preload.so more 32bit compatible
This commit is contained in:
trapexit 2025-08-05 00:39:52 -04:00 • committed by GitHub
parent 33fc26f81f
commit b18aba86b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
51 changed files with 1047 additions and 1033 deletions

View file

@ -30,4 +30,12 @@ public:
return *this;
}
bool
operator==(int v_)
{
if(_err.has_value())
return (_err.value() == v_);
return false;
}
};

View file

@ -34,13 +34,17 @@ ssize_t
_listxattr_size(const std::vector<Branch*> &branches_,
const char *fusepath_)
{
ssize_t rv;
ssize_t size;
std::string fullpath;
if(branches_.empty())
return -ENOENT;
size = 0;
for(const auto branch : branches_)
{
ssize_t rv;
fullpath = fs::path::make(branch->path,fusepath_);
rv = fs::llistxattr(fullpath,NULL,0);
@ -50,7 +54,7 @@ _listxattr_size(const std::vector<Branch*> &branches_,
size += rv;
}
return rv;
return size;
}
static

View file

@ -69,7 +69,7 @@ _rmdir_loop(const std::vector<Branch*> &branches_,
{
Err err;
for(auto &branch : branches_)
for(const auto &branch : branches_)
{
err = ::_rmdir_core(branch->path,fusepath_,followsymlinks_);
}

View file

@ -138,6 +138,9 @@ _compare_files(const std::string &mergerfs_path_,
fmt::println(" {}: {}",i,path);
if(st.st_size < 0)
fmt::println(" - err: {}",strerror(-st.st_size));
time_t mtime = st.st_mtime;
std::tm *mtime_tm = std::localtime(&mtime);
fmt::println(" -"
" uid: {};"
" gid: {};"
@ -150,7 +153,7 @@ _compare_files(const std::string &mergerfs_path_,
st.st_mode,
::_file_type(st.st_mode),
st.st_size,
*std::localtime(&st.st_mtime));
*mtime_tm);
}
if(!fix_func_)