pub struct GdRecoveryReport {
pub has_rgd: bool,
pub total_entries: usize,
pub primary_intact: usize,
pub primary_damaged: usize,
pub recoverable_via_rgd: usize,
pub unrecoverable: usize,
}Expand description
Per-entry recovery analysis of the grain directory against its redundant copy.
VMDK keeps a redundant grain directory (RGD) so a damaged primary GD can still be
recovered; qemu-img discards it. primary_intact + primary_damaged == total_entries
and recoverable_via_rgd + unrecoverable == primary_damaged.
Fields§
§has_rgd: booltrue when the image carries a usable redundant grain directory.
total_entries: usizeNumber of grain-directory entries analysed.
primary_intact: usizePrimary entries usable as-is (in-bounds, or sparse and agreeing with the RGD).
primary_damaged: usizePrimary entries that are damaged (out-of-bounds, or sparse where the RGD holds a pointer).
recoverable_via_rgd: usizeDamaged primary entries the RGD can recover.
unrecoverable: usizeDamaged primary entries the RGD cannot recover (damaged in both directories).
Trait Implementations§
Source§impl Clone for GdRecoveryReport
impl Clone for GdRecoveryReport
Source§fn clone(&self) -> GdRecoveryReport
fn clone(&self) -> GdRecoveryReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GdRecoveryReport
Source§impl Debug for GdRecoveryReport
impl Debug for GdRecoveryReport
Source§impl Default for GdRecoveryReport
impl Default for GdRecoveryReport
Source§fn default() -> GdRecoveryReport
fn default() -> GdRecoveryReport
Returns the “default value” for a type. Read more
impl Eq for GdRecoveryReport
Source§impl PartialEq for GdRecoveryReport
impl PartialEq for GdRecoveryReport
Source§fn eq(&self, other: &GdRecoveryReport) -> bool
fn eq(&self, other: &GdRecoveryReport) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GdRecoveryReport
Auto Trait Implementations§
impl Freeze for GdRecoveryReport
impl RefUnwindSafe for GdRecoveryReport
impl Send for GdRecoveryReport
impl Sync for GdRecoveryReport
impl Unpin for GdRecoveryReport
impl UnsafeUnpin for GdRecoveryReport
impl UnwindSafe for GdRecoveryReport
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