MCPcopy Create free account
hub / github.com/Starry-OS/StarryOS / clone_file

Method clone_file

api/src/vfs/dev/loop.rs:59–62  ·  view source on GitHub ↗

Clone the underlying file of the loop device.

(&self)

Source from the content-addressed store, hash-verified

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
65impl DeviceOps for LoopDevice {

Callers 1

ioctlMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected