More comments in the source

This commit is contained in:
Andrea Mazzoleni 2011-03-12 23:36:37 +01:00
parent 2bea59f042
commit c2d113685e
4 changed files with 71 additions and 10 deletions

View file

@ -26,17 +26,35 @@
*/
block_off_t parity_resize(struct snapraid_state* state);
/**
* Creates the parity file.
*/
int parity_create(const char* path, data_off_t size);
/**
* Opens an already existing parity file.
*/
int parity_open(int ret_on_error, const char* path);
/**
* Flushes the parity file in the disk.
*/
void parity_sync(const char* path, int f);
/**
* Closes the parity file.
*/
void parity_close(const char* path, int f);
void parity_write(const char* parity_path, int parity_f, block_off_t pos, unsigned char* block_buffer, unsigned block_size);
/**
* Read a block from the parity file.
*/
int parity_read(int ret_on_error, const char* parity_path, int parity_f, block_off_t pos, unsigned char* block_buffer, unsigned block_size);
/**
* Writes a block in the parity file.
*/
void parity_write(const char* parity_path, int parity_f, block_off_t pos, unsigned char* block_buffer, unsigned block_size);
#endif