mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
abstract posix_fadvise
This commit is contained in:
parent
7824586f76
commit
1513c92cbc
5 changed files with 137 additions and 2 deletions
|
|
@ -25,6 +25,7 @@
|
|||
#include <vector>
|
||||
|
||||
#include "fs_attr.hpp"
|
||||
#include "fs_fadvise.hpp"
|
||||
#include "fs_fallocate.hpp"
|
||||
#include "fs_sendfile.hpp"
|
||||
#include "fs_time.hpp"
|
||||
|
|
@ -109,8 +110,8 @@ namespace fs
|
|||
{
|
||||
int rv;
|
||||
|
||||
::posix_fadvise(fdin,0,count,POSIX_FADV_WILLNEED);
|
||||
::posix_fadvise(fdin,0,count,POSIX_FADV_SEQUENTIAL);
|
||||
fs::fadvise(fdin,0,count,POSIX_FADV_WILLNEED);
|
||||
fs::fadvise(fdin,0,count,POSIX_FADV_SEQUENTIAL);
|
||||
|
||||
fs::fallocate(fdout,0,0,count);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue