mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
Address some portability issues
This commit is contained in:
parent
d25b55d393
commit
496971e9c9
18 changed files with 248 additions and 247 deletions
10
parity.h
10
parity.h
|
|
@ -24,17 +24,19 @@
|
|||
/**
|
||||
* Computes the size of the parity data in number of blocks.
|
||||
*/
|
||||
pos_t parity_resize(struct snapraid_state* state);
|
||||
block_off_t parity_resize(struct snapraid_state* state);
|
||||
|
||||
int parity_create(const char* path, off_t size);
|
||||
int parity_create(const char* path, data_off_t size);
|
||||
|
||||
int parity_open(int ret_on_error, const char* path);
|
||||
|
||||
void parity_sync(const char* path, int f);
|
||||
|
||||
void parity_close(const char* path, int f);
|
||||
|
||||
void parity_write(const char* parity_path, int parity_f, pos_t pos, unsigned char* block_buffer, unsigned block_size);
|
||||
void parity_write(const char* parity_path, int parity_f, block_off_t pos, unsigned char* block_buffer, unsigned block_size);
|
||||
|
||||
int parity_read(int ret_on_error, const char* parity_path, int parity_f, pos_t pos, unsigned char* block_buffer, unsigned block_size);
|
||||
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);
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue