Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/llfio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2021-03-08 21:42:47 +0300
committerNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2021-03-08 21:42:47 +0300
commit17d8156ac89e3b8c6aa19a14e0dd723bd65e0902 (patch)
tree427e4a48c0f5453c6fdc17168862a14841ab70ae
parent51c6935efd8e358a32e82a98149075c940555635 (diff)
Suppress warning on Linux.
-rw-r--r--include/llfio/v2.0/detail/impl/posix/file_handle.ipp5
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