Merge pull request #5305 from liubin/fix/5301-delete-duplicated-PASSTHROUGH_FS_DIR

runtime-rs: delete duplicated PASSTHROUGH_FS_DIR const
This commit is contained in:
Bin Liu
2022-10-08 16:39:03 +08:00
committed by GitHub
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! {