pub enum GuestFlush {
Auto,
Required,
Skip,
}Expand description
Guest filesystem writeback requested before capture or resident pause.
This policy controls root and captured block-filesystem writeback, including owned disks. It never disables host-backed directory synchronization, host I/O draining, or snapshot durability. Filesystem writeback does not flush application-owned buffers or commit application transactions.
Variants§
Auto
Require writeback for live disk-only capture; no extra writeback for full capture, branching, or pause. Stopped disk capture does not establish a guest flush.
Required
Require acknowledged writeback before proceeding. A paused source must already hold a matching flush boundary; a stopped source cannot satisfy this request.
Skip
Skip optional writeback, retaining all mandatory storage barriers.
Implementations§
Source§impl GuestFlush
impl GuestFlush
Sourcepub fn requires_writeback(self, disk_only: bool) -> bool
pub fn requires_writeback(self, disk_only: bool) -> bool
Whether this policy requires optional writeback for a live source.
Callers must separately enforce mandatory storage barriers and distinguish stopped capture from live disk capture. This predicate is not evidence that flushing occurred.
Trait Implementations§
Source§impl Clone for GuestFlush
impl Clone for GuestFlush
Source§fn clone(&self) -> GuestFlush
fn clone(&self) -> GuestFlush
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more