Adds --test-skip-sequential to disable the sequential hint for the disk cache.

This commit is contained in:
Andrea Mazzoleni 2013-04-04 22:52:56 +02:00
parent a85aa08276
commit aeb167bb16
13 changed files with 114 additions and 65 deletions

View file

@ -42,7 +42,7 @@ void parity_overflow(struct snapraid_state* state, data_off_t size);
* Creates the parity file.
* \param out_size Return the size of the parity file.
*/
int parity_create(struct snapraid_parity* parity, const char* path, data_off_t* out_size);
int parity_create(struct snapraid_parity* parity, const char* path, data_off_t* out_size, int skip_sequential);
/**
* Changes the parity size.
@ -53,7 +53,7 @@ int parity_chsize(struct snapraid_parity* parity, data_off_t size, data_off_t* o
/**
* Opens an already existing parity file.
*/
int parity_open(struct snapraid_parity* parity, const char* path);
int parity_open(struct snapraid_parity* parity, const char* path, int skip_sequential);
/**
* Flushes the parity file in the disk.