MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / e2fs_tool_candidates

Function e2fs_tool_candidates

crates/openshell-driver-vm/src/rootfs.rs:741–748  ·  view source on GitHub ↗
(tool: &str)

Source from the content-addressed store, hash-verified

739}
740
741fn e2fs_tool_candidates(tool: &str) -> Vec<PathBuf> {
742 let mut candidates = vec![PathBuf::from(tool)];
743 for root in ["/opt/homebrew/opt/e2fsprogs", "/usr/local/opt/e2fsprogs"] {
744 candidates.push(Path::new(root).join("sbin").join(tool));
745 candidates.push(Path::new(root).join("bin").join(tool));
746 }
747 candidates
748}
749
750fn temporary_injection_path(image_path: &Path) -> PathBuf {
751 let n = INJECTION_COUNTER.fetch_add(1, Ordering::Relaxed);

Callers 3

run_debugfs_batch_fileFunction · 0.85
run_debugfsFunction · 0.85

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected