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
|
|
@ -23,10 +23,9 @@
|
|||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
#include "errno.hpp"
|
||||
#include "fileinfo.hpp"
|
||||
#include "fs_base_fsync.hpp"
|
||||
|
||||
static
|
||||
int
|
||||
|
|
@ -36,8 +35,8 @@ _fsync(const int fd,
|
|||
int rv;
|
||||
|
||||
rv = (isdatasync ?
|
||||
::fdatasync(fd) :
|
||||
::fsync(fd));
|
||||
fs::fdatasync(fd) :
|
||||
fs::fsync(fd));
|
||||
|
||||
return ((rv == -1) ? -errno : 0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue