mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
wrap most posix filesystem functions
This commit is contained in:
parent
18d684cd16
commit
1dc7bff6e6
69 changed files with 1262 additions and 227 deletions
|
|
@ -17,12 +17,12 @@
|
|||
#include <fuse.h>
|
||||
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "errno.hpp"
|
||||
#include "fileinfo.hpp"
|
||||
#include "fs_base_read.hpp"
|
||||
|
||||
static
|
||||
int
|
||||
|
|
@ -33,7 +33,7 @@ _read(const int fd,
|
|||
{
|
||||
int rv;
|
||||
|
||||
rv = ::pread(fd,buf,count,offset);
|
||||
rv = fs::pread(fd,buf,count,offset);
|
||||
|
||||
return ((rv == -1) ? -errno : rv);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue