mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-19 16:16:48 +00:00
More aggressive error handing with pagesize queries
This commit is contained in:
committed by
trapexit
parent
07b1e6bdba
commit
3099b15db1
@@ -18,6 +18,7 @@
|
||||
|
||||
#include "config_pagesize.hpp"
|
||||
|
||||
#include "fatal.hpp"
|
||||
#include "from_string.hpp"
|
||||
|
||||
#include <cassert>
|
||||
@@ -58,10 +59,7 @@ ConfigPageSize::from_string(const std::string_view s_)
|
||||
|
||||
tmp = sysconf(_SC_PAGESIZE);
|
||||
if(tmp <= 0)
|
||||
{
|
||||
perror("mergerfs: pagesize query failed");
|
||||
std::abort();
|
||||
}
|
||||
fatal::abort("pagesize query failed - {}",strerror(errno));
|
||||
|
||||
pagesize = (u64)tmp;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user