MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / try_clone

Method try_clone

block/src/fixed_vhd_disk.rs:85–90  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

83
84impl disk_file::AsyncDiskFile for FixedVhdDisk {
85 fn try_clone(&self) -> BlockResult<Box<dyn disk_file::AsyncDiskFile>> {
86 Ok(Box::new(FixedVhdDisk {
87 inner: self.inner.clone(),
88 use_io_uring: self.use_io_uring,
89 }))
90 }
91
92 fn create_async_io(&self, ring_depth: u32) -> BlockResult<Box<dyn AsyncIo>> {
93 let size = self.logical_size()?;

Calls 2

newFunction · 0.85
cloneMethod · 0.45