mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
More aggressive error handing with pagesize queries
This commit is contained in:
parent
07b1e6bdba
commit
3099b15db1
3 changed files with 16 additions and 12 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue