mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
Missing of fadvise is not a fatal error
This commit is contained in:
parent
3bbe38d959
commit
3f9b877183
1 changed files with 1 additions and 1 deletions
|
|
@ -65,7 +65,7 @@ STREAM* sopen_read(const char* file, int flags)
|
|||
/* advise sequential access */
|
||||
ret = posix_fadvise(s->handle[0].f, 0, 0, POSIX_FADV_SEQUENTIAL);
|
||||
if (ret == ENOSYS) {
|
||||
log_fatal(errno, "WARNING! fadvise() is not supported in this platform. Performance may not be optimal!\n");
|
||||
log_error(errno, "WARNING! fadvise() is not supported in this platform. Performance may not be optimal!\n");
|
||||
/* call is not supported, like in armhf, see posix_fadvise manpage */
|
||||
ret = 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue