Skip to main content

run_write_probe

Function run_write_probe 

Source
pub(super) fn run_write_probe(dir: &Path)
Expand description

One-shot write/read/delete sentinel probe under dir.

The probe rules in/out the “EFS access point POSIX uid mapping blocks regular creat(2) + write(2) + unlink(2)” hypothesis at next boot. It writes a 9-byte sentinel b"trt-probe" to <dir>/.write_probe, reads it back, verifies the round-trip, and deletes the file. Each distinct failure mode (create, write, read, mismatch, unlink) fires a tagged ERROR so operators can disambiguate without instrumenting the filesystem from outside.

The probe path is fixed (.write_probe) so it is greppable and never collides with TRT’s own filenames (which all begin with TensorrtExecutionProvider_TRTKernel_). Hidden by leading dot so count_cache_entries and count_engine_files ignore it without any extra filtering.