More aggressive error handing with pagesize queries

This commit is contained in:
Antonio SJ Musumeci 2026-03-17 23:55:32 -05:00
parent 0fd531fced
commit 16008b2e7d
3 changed files with 16 additions and 12 deletions

View file

@ -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_,