mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-12-01 04:16:59 -05:00
Build improvements (#1501)
* Remove python dependency * Remove ecfd * Improve makefiles * Make preload.so more 32bit compatible
This commit is contained in:
parent
33fc26f81f
commit
b18aba86b6
51 changed files with 1047 additions and 1033 deletions
|
|
@ -30,4 +30,12 @@ public:
|
|||
|
||||
return *this;
|
||||
}
|
||||
|
||||
bool
|
||||
operator==(int v_)
|
||||
{
|
||||
if(_err.has_value())
|
||||
return (_err.value() == v_);
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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_);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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_)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue