b9874d0941
Add redbear-usb-storage-check in-guest binary that validates USB mass storage read and write I/O: discovers /scheme/disk/ devices, writes a test pattern to sector 2048, reads it back, verifies match, restores original content. Updates test-usb-storage-qemu.sh with write-proof verification step. Includes all accumulated Red Bear OS work: kernel patches, relibc patches, driver infrastructure, DRM/GPU, KDE recipes, firmware, validation tooling, build system hardening, and documentation.
28 lines
631 B
Rust
28 lines
631 B
Rust
pub fn status_ok(msg: &str) {
|
|
eprintln!("\x1b[32m[\x1b[1;32m OK \x1b[0m\x1b[32m]\x1b[0m {msg}");
|
|
}
|
|
|
|
pub fn status_fail(msg: &str) {
|
|
eprintln!("\x1b[31m[\x1b[1;31m FAILED \x1b[0m\x1b[31m]\x1b[0m {msg}");
|
|
}
|
|
|
|
pub fn status_skip(msg: &str) {
|
|
eprintln!("\x1b[33m[\x1b[1;33m SKIP \x1b[0m\x1b[33m]\x1b[0m {msg}");
|
|
}
|
|
|
|
pub fn init_error(msg: &str) {
|
|
eprintln!("\x1b[31m\x1b[1minit:\x1b[0m {msg}");
|
|
}
|
|
|
|
pub fn init_warn(msg: &str) {
|
|
eprintln!("\x1b[33minit:\x1b[0m {msg}");
|
|
}
|
|
|
|
pub fn init_info(msg: &str) {
|
|
eprintln!("init: {msg}");
|
|
}
|
|
|
|
pub fn init_debug(msg: &str) {
|
|
eprintln!("\x1b[36minit:\x1b[0m {msg}");
|
|
}
|