diff options
-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 |