Files
clawhdf5/crates/clawhdf5-io
osobhandClaude Opus 5.5 3938f7f8a2 fix(io): refuse truncated files in the VOL, async and MPI readers
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]>
2026-09-26 01:30:56 -05:00
..

clawhdf5-io

crates.io docs.rs

I/O abstraction layer for clawhdf5.

Features

  • Memory-mapped file access (mmap feature)
  • Async I/O via Tokio (async feature)
  • HSDS remote access (hsds feature)
  • Prefetching and sweep optimizations

Usage

use clawhdf5_io::MmapReader;

let reader = MmapReader::open("data.h5").unwrap();

License

MIT