mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-18 23:04:20 +01:00
Merge pull request #8301 from Apokleos/do-direct-volume
runtime-rs: Enhancing DirectVolMount Handling with Patching Support
This commit is contained in:
@@ -483,7 +483,7 @@ impl<H> StorageHandlerManager<H> {
|
||||
/// The `volume_path` is base64-url-encoded and then safely joined to the `prefix`
|
||||
pub fn join_path(prefix: &str, volume_path: &str) -> Result<PathBuf> {
|
||||
if volume_path.is_empty() {
|
||||
return Err(anyhow!("volume path must not be empty"));
|
||||
return Err(anyhow!(std::io::ErrorKind::NotFound));
|
||||
}
|
||||
let b64_url_encoded_path = base64::encode_config(volume_path.as_bytes(), base64::URL_SAFE);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user