diff --git a/rust/src/devices/virtio_block.rs b/rust/src/devices/virtio_block.rs index fdd3c7c..2185649 100644 --- a/rust/src/devices/virtio_block.rs +++ b/rust/src/devices/virtio_block.rs @@ -123,27 +123,6 @@ impl VirtioDeviceOps for VirtioBlock { } }); - /* - thread::spawn({ - let path = self.disk_path.to_path_buf(); - let read_only = self.read_only; - let sector_offset = self.sector_offset; - move || { - let vq = queues.pop().unwrap(); - let disk = match DDiskImage::new_memory_overlay(&path, sector_offset) { - Ok(disk) => disk, - Err(e) => { - warn!("Error opening disk image {}: {}", path.display(), e); - return - }, - }; - let mut dev = VirtioBlockDevice::new(vq, disk); - if let Err(e) = dev.run() { - warn!("Error running virtio block device: {}", e); - } - } - }); - */ } }