diff options
author | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2021-03-08 21:42:47 +0300 |
---|---|---|
committer | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2021-03-08 21:42:47 +0300 |
commit | 17d8156ac89e3b8c6aa19a14e0dd723bd65e0902 (patch) | |
tree | 427e4a48c0f5453c6fdc17168862a14841ab70ae | |
parent | 51c6935efd8e358a32e82a98149075c940555635 (diff) |
Suppress warning on Linux.
-rw-r--r-- | include/llfio/v2.0/detail/impl/posix/file_handle.ipp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/llfio/v2.0/detail/impl/posix/file_handle.ipp b/include/llfio/v2.0/detail/impl/posix/file_handle.ipp index 144f8192..cf84c3db 100644 --- a/include/llfio/v2.0/detail/impl/posix/file_handle.ipp +++ b/include/llfio/v2.0/detail/impl/posix/file_handle.ipp @@ -591,7 +591,10 @@ result<file_handle::extent_pair> file_handle::clone_extents_to(file_handle::exte See https://github.com/openzfs/zfs/issues/11697 for more. */ char b; - (void) ::pread(_v.fd, &b, 1, end); + if(-1 == ::pread(_v.fd, &b, 1, end)) + { + return posix_error(); + } } start = lseek64(_v.fd, end, SEEK_DATA); #else |