Prints list of files outside the parity if growing is not possible.

This commit is contained in:
Andrea Mazzoleni 2012-10-06 13:17:21 +02:00
parent 3a8f21a839
commit 8373233f25
6 changed files with 114 additions and 26 deletions

View file

@ -34,9 +34,15 @@ struct snapraid_parity {
block_off_t parity_resize(struct snapraid_state* state);
/**
* Creates the parity file.
* Reports all the files outside the specified parity size.
*/
int parity_create(struct snapraid_parity* parity, const char* path, data_off_t size);
void parity_overflow(struct snapraid_state* state, data_off_t size);
/**
* Creates the parity file.
* \param out_size Return the final size of the parity file. Returned also in error cases.
*/
int parity_create(struct snapraid_parity* parity, const char* path, data_off_t size, data_off_t* out_size);
/**
* Opens an already existing parity file.