(
file: fs::File,
options: &DiskOpenOptions<'_>,
)
| 119 | } |
| 120 | |
| 121 | fn open_fixed_vhd( |
| 122 | file: fs::File, |
| 123 | options: &DiskOpenOptions<'_>, |
| 124 | ) -> BlockResult<Box<dyn AsyncFullDiskFile>> { |
| 125 | #[cfg(feature = "io_uring")] |
| 126 | if !options.disable_io_uring { |
| 127 | if io_uring_supported() { |
| 128 | info!("Opening fixed VHD disk file with io_uring backend"); |
| 129 | return Ok(Box::new( |
| 130 | FixedVhdDisk::new(file, true).map_err(|e| e.with_path(options.path))?, |
| 131 | )); |
| 132 | } |
| 133 | info!("io_uring runtime probe failed for fixed VHD, using synchronous backend"); |
| 134 | } |
| 135 | |
| 136 | info!("Opening fixed VHD disk file with synchronous backend"); |
| 137 | Ok(Box::new( |
| 138 | FixedVhdDisk::new(file, false).map_err(|e| e.with_path(options.path))?, |
| 139 | )) |
| 140 | } |
| 141 | |
| 142 | fn open_raw( |
| 143 | file: fs::File, |
no test coverage detected