From 9cc84e61161b383a7588163197c81f770609c31f Mon Sep 17 00:00:00 2001 From: Bruce Leidl Date: Wed, 11 Sep 2019 17:23:30 -0400 Subject: [PATCH] oop, remove old code --- rust/src/devices/virtio_block.rs | 21 --------------------- 1 file changed, 21 deletions(-) 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); - } - } - }); - */ } }