mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-29 03:16:56 -05:00
More aggressive error handing with pagesize queries
This commit is contained in:
parent
0fd531fced
commit
16008b2e7d
3 changed files with 16 additions and 12 deletions
|
|
@ -13,6 +13,8 @@
|
|||
#include "mutex.hpp"
|
||||
|
||||
#include "debug.hpp"
|
||||
#include "fatal.hpp"
|
||||
#include "fmt/core.h"
|
||||
#include "fuse_cfg.hpp"
|
||||
#include "fuse_i.h"
|
||||
#include "fuse_kernel.h"
|
||||
|
|
@ -20,7 +22,6 @@
|
|||
#include "fuse_opt.h"
|
||||
#include "fuse_pollhandle.h"
|
||||
#include "stat_utils.h"
|
||||
#include "fmt/core.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
|
@ -62,9 +63,10 @@ void
|
|||
fuse_ll_constructor(void)
|
||||
{
|
||||
pagesize = sysconf(_SC_PAGESIZE);
|
||||
if(pagesize <= 0)
|
||||
fatal::abort("pagesize query failed - {}",strerror(errno));
|
||||
}
|
||||
|
||||
|
||||
static
|
||||
void
|
||||
convert_stat(const struct stat *stbuf_,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue