Add fsck.mergerfs tool (#1483)

This commit is contained in:
trapexit 2025-06-23 21:57:55 -05:00 • committed by GitHub
parent 34f07e57f5
commit 77ef88b04c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
24 changed files with 12156 additions and 43 deletions

View file

@ -68,6 +68,23 @@ namespace str
return str::split(str_.c_str(),delimiter_,result_);
}
void
split_on_null(const char *str_,
const size_t len_,
std::vector<std::string> *result_)
{
const char *start;
const char *end;
start = str_;
end = start + len_;
while(start < end)
{
result_->emplace_back(start);
start += (result_->back().size() + 1);
}
}
void
rsplit1(const string &str_,
const char delimiter_,