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

Function validate_tmpfs_options

crates/openshell-driver-podman/src/container.rs:750–761  ·  view source on GitHub ↗
(options: &[String])

Source from the content-addressed store, hash-verified

748}
749
750fn validate_tmpfs_options(options: &[String]) -> Result<Vec<String>, String> {
751 options
752 .iter()
753 .map(|option| {
754 let option = option.trim();
755 if option.is_empty() {
756 return Err("tmpfs options must not contain empty values".to_string());
757 }
758 Ok(option.to_string())
759 })
760 .collect()
761}
762
763/// Build the Podman container creation JSON spec.
764#[cfg(test)]

Callers 2

podman_user_mountsFunction · 0.85

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected