diff --git a/src/agent/src/storage/fs_handler.rs b/src/agent/src/storage/fs_handler.rs index b22770e8a3..2c7c3c1cc9 100644 --- a/src/agent/src/storage/fs_handler.rs +++ b/src/agent/src/storage/fs_handler.rs @@ -10,7 +10,7 @@ use std::sync::Arc; use crate::storage::{common_storage_handler, new_device, StorageContext, StorageHandler}; use anyhow::{anyhow, Context, Result}; -use kata_types::device::{DRIVER_9P_TYPE, DRIVER_OVERLAYFS_TYPE, DRIVER_VIRTIOFS_TYPE}; +use kata_types::device::{DRIVER_OVERLAYFS_TYPE, DRIVER_VIRTIOFS_TYPE}; use kata_types::mount::{StorageDevice, KATA_VOLUME_OVERLAYFS_CREATE_DIR}; use protocols::agent::Storage; use tracing::instrument; @@ -69,27 +69,6 @@ impl StorageHandler for OverlayfsHandler { } } -#[derive(Debug)] -pub struct Virtio9pHandler {} - -#[async_trait::async_trait] -impl StorageHandler for Virtio9pHandler { - #[instrument] - fn driver_types(&self) -> &[&str] { - &[DRIVER_9P_TYPE] - } - - #[instrument] - async fn create_device( - &self, - storage: Storage, - ctx: &mut StorageContext, - ) -> Result> { - let path = common_storage_handler(ctx.logger, &storage)?; - new_device(path) - } -} - #[derive(Debug)] pub struct VirtioFsHandler {} diff --git a/src/agent/src/storage/mod.rs b/src/agent/src/storage/mod.rs index df3821c072..a9920c6d8c 100644 --- a/src/agent/src/storage/mod.rs +++ b/src/agent/src/storage/mod.rs @@ -23,7 +23,7 @@ use tracing::instrument; use self::bind_watcher_handler::BindWatcherHandler; use self::block_handler::{PmemHandler, ScsiHandler, VirtioBlkMmioHandler, VirtioBlkPciHandler}; use self::ephemeral_handler::EphemeralHandler; -use self::fs_handler::{OverlayfsHandler, Virtio9pHandler, VirtioFsHandler}; +use self::fs_handler::{OverlayfsHandler, VirtioFsHandler}; use self::image_pull_handler::ImagePullHandler; use self::local_handler::LocalHandler; use crate::mount::{baremount, is_mounted, remove_mounts}; @@ -134,7 +134,6 @@ lazy_static! { pub static ref STORAGE_HANDLERS: StorageHandlerManager> = { let mut manager: StorageHandlerManager> = StorageHandlerManager::new(); let handlers: Vec> = vec![ - Arc::new(Virtio9pHandler {}), Arc::new(VirtioBlkMmioHandler {}), Arc::new(VirtioBlkPciHandler {}), Arc::new(EphemeralHandler {}), diff --git a/src/agent/src/watcher.rs b/src/agent/src/watcher.rs index e7b4d30d94..dac39d39b4 100644 --- a/src/agent/src/watcher.rs +++ b/src/agent/src/watcher.rs @@ -425,7 +425,7 @@ impl SandboxStorages { /// or updated file to a target mount point, or remove the removed file from the target mount point. All WatchableStorage /// target mount points are expected to reside within a single tmpfs, whose root is created by the BindWatcher. /// -/// This is a temporary workaround to handle config map updates until we get inotify on 9p/virtio-fs. +/// This is a temporary workaround to handle config map updates until we get inotify on virtio-fs. /// More context on this: /// - https://github.com/kata-containers/runtime/issues/1505 /// - https://github.com/kata-containers/kata-containers/issues/1879