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

Function temporary_injection_path

crates/openshell-driver-vm/src/rootfs.rs:750–757  ·  view source on GitHub ↗
(image_path: &Path)

Source from the content-addressed store, hash-verified

748}
749
750fn temporary_injection_path(image_path: &Path) -> PathBuf {
751 let n = INJECTION_COUNTER.fetch_add(1, Ordering::Relaxed);
752 let parent = image_path.parent().unwrap_or_else(|| Path::new("."));
753 parent.join(format!(
754 ".openshell-rootfs-inject-{}-{n}",
755 std::process::id()
756 ))
757}
758
759#[allow(clippy::similar_names)]
760fn ensure_sandbox_guest_user(

Callers 2

write_rootfs_image_fileFunction · 0.85
run_debugfs_batchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected