mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
Fix read/write behavior and return value depending on direct_io
Also add parallel direct write option for 6.2+ kernels.
This commit is contained in:
parent
82430e1079
commit
6a14a10e6c
19 changed files with 531 additions and 158 deletions
|
|
@ -65,11 +65,9 @@ namespace l
|
|||
size_t totalwritten;
|
||||
vector<char> buf;
|
||||
|
||||
bufsize = (128 * 1024);
|
||||
bufsize = (1024 * 1024);
|
||||
buf.resize(bufsize);
|
||||
|
||||
fs::lseek(src_fd_,0,SEEK_SET);
|
||||
|
||||
totalwritten = 0;
|
||||
while(totalwritten < count_)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue