mirror of
https://github.com/HDFGroup/hdf5.git
synced 2026-09-25 04:09:44 +03:00
Fix data alignment requirements check in direct I/O VFD (#6324)
During file creation, the direct I/O VFD only checked data alignment requirements for writes and assumed they were the same for reads. Checks are now performed separately for writes and reads. In order to avoid EINVAL errors, the VFD is also now slightly more conservative about when it tries to avoid performing extra work when data alignment isn't required.
This commit is contained in:
@@ -119,6 +119,10 @@ We would like to thank the many HDF5 community members who contributed to this r
|
||||
|
||||
## Library
|
||||
|
||||
### Fixed checking of data alignment requirements in direct I/O VFD
|
||||
|
||||
The direct I/O VFD attempts to determine data alignment requirements for a file on file open to try and avoid extra work when data alignment isn't required. Depending on the file access flags used when opening a file, the VFD could incorrectly determine these requirements for either writes or reads, eventually leading to a possible EINVAL return value on write or read. This has been fixed by separately determining the requirements for writes and reads and being more conservative about trying to avoid data alignment requirements.
|
||||
|
||||
## Java Library
|
||||
|
||||
## Configuration
|
||||
|
||||
Reference in New Issue
Block a user