mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-04 22:00:19 -05:00
More extensive use of data_off_t
This avoids the need of some type cast.
This commit is contained in:
parent
f5d1afaaed
commit
3c6c5c07c7
6 changed files with 31 additions and 31 deletions
|
|
@ -341,15 +341,15 @@ int fmtime(int f, int64_t mtime_sec, int mtime_nsec);
|
|||
|
||||
struct advise_struct {
|
||||
int mode;
|
||||
uint64_t dirty_begin;
|
||||
uint64_t dirty_end;
|
||||
data_off_t dirty_begin;
|
||||
data_off_t dirty_end;
|
||||
};
|
||||
|
||||
void advise_init(struct advise_struct* advise, int mode);
|
||||
int advise_flags(struct advise_struct* advise);
|
||||
int advise_open(struct advise_struct* advise, int f);
|
||||
int advise_write(struct advise_struct* advise, int f, uint64_t offset, uint64_t size);
|
||||
int advise_read(struct advise_struct* advise, int f, uint64_t offset, uint64_t size);
|
||||
int advise_write(struct advise_struct* advise, int f, data_off_t offset, data_off_t size);
|
||||
int advise_read(struct advise_struct* advise, int f, data_off_t offset, data_off_t size);
|
||||
|
||||
/****************************************************************************/
|
||||
/* memory */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue