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

Function reject_subpath

crates/openshell-driver-podman/src/container.rs:702–708  ·  view source on GitHub ↗
(subpath: Option<&str>, mount_type: &str)

Source from the content-addressed store, hash-verified

700}
701
702fn reject_subpath(subpath: Option<&str>, mount_type: &str) -> Result<(), String> {
703 let Some(subpath) = subpath else {
704 return Ok(());
705 };
706 driver_mounts::validate_mount_subpath(subpath)?;
707 Err(format!("{mount_type} do not support subpath"))
708}
709
710fn validate_optional_positive_integral_i64(
711 value: Option<f64>,

Callers 2

podman_user_mountsFunction · 0.85

Calls 1

validate_mount_subpathFunction · 0.85

Tested by

no test coverage detected