mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-19 22:46:36 -05:00
Handle the case of posix_fadvise() returning ENOENT
This commit is contained in:
parent
de598080c4
commit
35b5c46851
4 changed files with 81 additions and 9 deletions
|
|
@ -12,6 +12,11 @@
|
|||
#define O_BINARY 0 /**< Not used in Unix. */
|
||||
#define O_SEQUENTIAL 0 /**< In Unix posix_fadvise() shall be used. */
|
||||
|
||||
|
||||
#if HAVE_POSIX_FADVISE
|
||||
int posix_fadvise_wrapper(int fd, off_t offset, off_t len, int advice);
|
||||
#endif
|
||||
|
||||
/**
|
||||
* If nanoseconds are not supported, we report the special STAT_NSEC_INVALID value,
|
||||
* to mark that it's undefined.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue