pub struct CowHandle {
pub dm_name: String,
pub dm_device: String,
pub cow_loop: String,
pub cow_file: PathBuf,
pub template_path: PathBuf,
}Expand description
Per-sandbox CoW state. Stored in SandboxInstance for cleanup.
Intentionally !Clone: every handle owns a refcount on its template,
and a stray clone would double-decrement on teardown.
Fields§
§dm_name: Stringdm device name, e.g. arcbox-snap-<sandbox_id>.
dm_device: StringAbsolute device path, e.g. /dev/mapper/arcbox-snap-<sandbox_id>.
cow_loop: StringLoop device backing the sparse COW file.
cow_file: PathBufPath to the sparse COW file on disk.
template_path: PathBufOriginal template rootfs path (used to release the template refcount).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CowHandle
impl RefUnwindSafe for CowHandle
impl Send for CowHandle
impl Sync for CowHandle
impl Unpin for CowHandle
impl UnsafeUnpin for CowHandle
impl UnwindSafe for CowHandle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more