runtime-rs: delete duplicated PASSTHROUGH_FS_DIR const

The const PASSTHROUGH_FS_DIR defined twice, delte one.

Fixes: #5301

Signed-off-by: Bin Liu <bin@hyper.sh>
This commit is contained in:
Bin Liu 2022-09-30 15:53:08 +08:00
parent 949ffcc457
commit 3aeaa6459d
2 changed files with 1 additions and 3 deletions

View File

@ -13,7 +13,6 @@ use kata_sys_util::mount;
use super::utils; use super::utils;
pub(crate) const MOUNT_GUEST_TAG: &str = "kataShared"; pub(crate) const MOUNT_GUEST_TAG: &str = "kataShared";
pub(crate) const PASSTHROUGH_FS_DIR: &str = "passthrough";
pub(crate) const FS_TYPE_VIRTIO_FS: &str = "virtiofs"; pub(crate) const FS_TYPE_VIRTIO_FS: &str = "virtiofs";
pub(crate) const KATA_VIRTIO_FS_DEV_TYPE: &str = "virtio-fs"; pub(crate) const KATA_VIRTIO_FS_DEV_TYPE: &str = "virtio-fs";

View File

@ -16,9 +16,8 @@ use kata_types::config::hypervisor::SharedFsInfo;
use super::{ use super::{
share_virtio_fs::{ share_virtio_fs::{
prepare_virtiofs, FS_TYPE_VIRTIO_FS, KATA_VIRTIO_FS_DEV_TYPE, MOUNT_GUEST_TAG, prepare_virtiofs, FS_TYPE_VIRTIO_FS, KATA_VIRTIO_FS_DEV_TYPE, MOUNT_GUEST_TAG,
PASSTHROUGH_FS_DIR,
}, },
utils, ShareFs, *, utils, ShareFs, PASSTHROUGH_FS_DIR, *,
}; };
lazy_static! { lazy_static! {