summaryrefslogtreecommitdiffstats
path: root/src/H5FDcore.c
diff options
context:
space:
mode:
authorLarry Knox <lrknox@hdfgroup.org>2020-08-18 17:51:13 (GMT)
committerLarry Knox <lrknox@hdfgroup.org>2020-08-18 17:51:13 (GMT)
commit98754591b8dcf2be70957d67ec7172c53cbaa827 (patch)
tree9bd3faa90a915cf7690e2f2a40ce34ccfa219222 /src/H5FDcore.c
parent18012b1d98f6f77de78ea5e9a3e01670c66e4bed (diff)
downloadhdf5-98754591b8dcf2be70957d67ec7172c53cbaa827.zip
hdf5-98754591b8dcf2be70957d67ec7172c53cbaa827.tar.gz
hdf5-98754591b8dcf2be70957d67ec7172c53cbaa827.tar.bz2
Revert "Merge pull request #2477 in HDFFV/hdf5 from pio_update to develop"
This reverts commit ba80bcaff24113f438da0f40cb5b5479d4a21cc6, reversing changes made to 522ef0dd5ca1daa2b26c3fe4459ddbb1eaf6ec20.
Diffstat (limited to 'src/H5FDcore.c')
-rw-r--r--src/H5FDcore.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/H5FDcore.c b/src/H5FDcore.c
index 66c08ad..97437de 100644
--- a/src/H5FDcore.c
+++ b/src/H5FDcore.c
@@ -386,9 +386,7 @@ 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 */
@@ -912,9 +910,7 @@ 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 */