mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
add nullrw feature to facilitate benchmarking
This commit is contained in:
parent
63f84b255f
commit
87c2f2f9dc
12 changed files with 164 additions and 12 deletions
11
src/read.cpp
11
src/read.cpp
|
|
@ -87,5 +87,16 @@ namespace mergerfs
|
|||
|
||||
return ::_read_direct_io(fi->fd,buf,count,offset);
|
||||
}
|
||||
|
||||
int
|
||||
read_null(const char *fusepath,
|
||||
char *buf,
|
||||
size_t count,
|
||||
off_t offset,
|
||||
fuse_file_info *ffi)
|
||||
|
||||
{
|
||||
return count;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue