runtime-rs/kata-ctl: Enhancement of DirectVolumeMount.

Move the get_volume_mount_info to kata-types/src/mount.rs.
If so, it becomes a common method of DirectVolumeMountInfo
and reduces duplicated code.

Fixes: #6701

Signed-off-by: alex.lyn <alex.lyn@antgroup.com>
This commit is contained in:
alex.lyn
2023-05-26 11:18:29 +08:00
parent 62b2838962
commit 5ddc4f94c5
7 changed files with 57 additions and 25 deletions

View File

@@ -1481,6 +1481,7 @@ dependencies = [
"num_cpus",
"oci",
"regex",
"safe-path 0.1.0",
"serde",
"serde_json",
"slog",