summaryrefslogtreecommitdiffstats
path: root/src/H5FDcore.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2020-08-18 14:23:19 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2020-08-18 14:23:19 (GMT)
commitfe4fe14515ae5db886e4e2b10b50d7f12ca1320d (patch)
treeca8f00eb8ea96f51e5043f332f59b0ce73f20a0e /src/H5FDcore.c
parentde8830ca7ffec9d113339a6f4e989ce6cc3e67d9 (diff)
downloadhdf5-fe4fe14515ae5db886e4e2b10b50d7f12ca1320d.zip
hdf5-fe4fe14515ae5db886e4e2b10b50d7f12ca1320d.tar.gz
hdf5-fe4fe14515ae5db886e4e2b10b50d7f12ca1320d.tar.bz2
Merge of develop PRs to 1.10
Diffstat (limited to 'src/H5FDcore.c')
-rw-r--r--src/H5FDcore.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/H5FDcore.c b/src/H5FDcore.c
index 7608d61..14c896a 100644
--- a/src/H5FDcore.c
+++ b/src/H5FDcore.c
@@ -381,7 +381,9 @@ H5FD__core_write_to_bstore(H5FD_core_t *file, haddr_t addr, size_t size)
int myerrno = errno;
time_t mytime = HDtime(NULL);
+#ifndef H5_HAVE_PREADWRITE
offset = HDlseek(file->fd, (HDoff_t)0, SEEK_CUR);
+#endif /* H5_HAVE_PREADWRITE */
HGOTO_ERROR(H5E_IO, H5E_WRITEERROR, FAIL, "write to backing store failed: time = %s, filename = '%s', file descriptor = %d, errno = %d, error message = '%s', ptr = %p, total write size = %llu, bytes this sub-write = %llu, bytes actually written = %llu, offset = %llu", HDctime(&mytime), file->name, file->fd, myerrno, HDstrerror(myerrno), ptr, (unsigned long long)size, (unsigned long long)bytes_in, (unsigned long long)bytes_wrote, (unsigned long long)offset);
} /* end if */
@@ -803,7 +805,9 @@ H5FD__core_open(const char *name, unsigned flags, hid_t fapl_id, haddr_t maxaddr
int myerrno = errno;
time_t mytime = HDtime(NULL);
+#ifndef H5_HAVE_PREADWRITE
offset = HDlseek(file->fd, (HDoff_t)0, SEEK_CUR);
+#endif /* H5_HAVE_PREADWRITE */
HGOTO_ERROR(H5E_IO, H5E_READERROR, NULL, "file read failed: time = %s, filename = '%s', file descriptor = %d, errno = %d, error message = '%s', file->mem = %p, total read size = %llu, bytes this sub-read = %llu, bytes actually read = %llu, offset = %llu", HDctime(&mytime), file->name, file->fd, myerrno, HDstrerror(myerrno), file->mem, (unsigned long long)size, (unsigned long long)bytes_in, (unsigned long long)bytes_read, (unsigned long long)offset);
} /* end if */