Skip to main content

probe_output_dir

Function probe_output_dir 

Source
pub fn probe_output_dir(dir: &Path) -> ProfileKind
Expand description

Probe the output directory to choose auto’s opening profile: write and fsync 8 MB, classify by the sustained rate. This is a hint only — the feedback controller owns the truth once the pipeline is running. Costs ~100 ms on NVMe; on slow media the cost is itself the signal.

The hidden env SQL_SPLITTER_IO_PROBE (ssd | hdd | cheap) forces the verdict without touching the disk — the deterministic seam the integration tests use.

Errors are swallowed into a Fast verdict: a probe failure (exotic filesystem, permissions race) must never fail the actual split.