INNER CODE UNIT · Rust

fio_run_verify

openebs/mayastor · io-engine-tests/src/lib.rs:410

pub fn fio_run_verify(device: &str) -> Result<String, String> {
    let (exit, stdout, stderr) = run_script::run(
        r"
        $FIO --name=randrw --rw=randrw --ioengine=libaio --direct=1 --time_based=1 \
        --runtime=5 --bs=4k --verify=crc32 --group_reporting=1 --output-format=terse \
        --verify_fatal=1 --verify_async=2 --filename=$1
    ",
        &vec![device.into()],
        &run_script::ScriptOptions::new(),
    )
    .unwrap();
    if exit == 0 {
        Ok(stdout)
    } else {
        Err(stderr)
    }
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…