feat: initial wipe implementation - block device safety, HDD overwrite, NVMe/secure-discard, verification

This commit is contained in:
changchichung
2026-09-01 10:56:53 +08:00
commit 5470eb0e8d
40 changed files with 5767 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
#!/usr/bin/env bash
set -euo pipefail
export PATH="$HOME/.cargo/bin:$PATH"
echo "Running full verification..."
cargo fmt --check
echo "[PASS] cargo fmt"
cargo check
echo "[PASS] cargo check"
cargo test
echo "[PASS] cargo test"
cargo clippy --all-targets --all-features -- -D warnings
echo "[PASS] cargo clippy"
cargo build --release
echo "[PASS] cargo build --release"
if [ -x "./scripts/loop-test.sh" ]; then
sudo ./scripts/loop-test.sh || echo "loop-test skipped or failed (may require root)"
fi
echo "All verifications completed"