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:
jhendersonHDF
2026-03-26 20:47:42 -05:00
committed by GitHub
parent b4a5502e20
commit 9dbc54dcf6
2 changed files with 145 additions and 59 deletions
+4
View File
@@ -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