Clone the underlying file of the loop device.
(&self)
| 57 | |
| 58 | /// Clone the underlying file of the loop device. |
| 59 | pub fn clone_file(&self) -> VfsResult<FileBackend> { |
| 60 | let file = self.file.lock().clone(); |
| 61 | file.ok_or(AxError::from(LinuxError::ENXIO)) |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | impl DeviceOps for LoopDevice { |