mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-03 13:20:28 -05:00
Adds initial readahead support.
This commit is contained in:
parent
87bb5c7a66
commit
d24df4257e
3 changed files with 34 additions and 0 deletions
7
handle.h
7
handle.h
|
|
@ -61,5 +61,12 @@ int handle_read(struct snapraid_handle* handle, struct snapraid_block* block, un
|
|||
*/
|
||||
int handle_write(struct snapraid_handle* handle, struct snapraid_block* block, unsigned char* block_buffer, unsigned block_size);
|
||||
|
||||
/**
|
||||
* Readahead optimization where available.
|
||||
* \note
|
||||
* It doesn't seem to give any speed improvement over posix_fadvise(POSIX_FADV_SEQUENTIAL).
|
||||
*/
|
||||
int handle_readahead(struct snapraid_handle* handle, struct snapraid_block* block, unsigned block_size);
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue