The truncated-file check and the end-of-file clamp reached File, LazyFile and MmapFile but not clawhdf5-io's readers, which still opened truncated files and read past the recorded end of file. NativeVol (open, and read_dataset for from_bytes), AsyncHDF5File::from_bytes and MpiVol's collective read now view the file through the new vol::hdf5_view: from the superblock to Superblock::data_end, refusing a file shorter than that. MpiVol's read is compiled only with the mpi-io feature, which needs an MPI installation; it was not built here. The edit there only swaps its two-line superblock setup for hdf5_view. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
clawhdf5-io
I/O abstraction layer for clawhdf5.
Features
- Memory-mapped file access (
mmapfeature) - Async I/O via Tokio (
asyncfeature) - HSDS remote access (
hsdsfeature) - Prefetching and sweep optimizations
Usage
use clawhdf5_io::MmapReader;
let reader = MmapReader::open("data.h5").unwrap();
License
MIT