pub struct RecoveredFile {
pub path: String,
pub source: String,
pub inode: u64,
pub size: u64,
pub content: Vec<u8>,
pub content_sha256: String,
}Expand description
A file recovered from a ZFS snapshot: present in a snapshot’s ZPL root directory but absent from the live filesystem, so it was deleted. Its content was carved from the snapshot’s (pinned, un-overwritten) blocks.
Fields§
§path: StringThe recovered file’s name (its directory-entry name in the snapshot).
source: StringThe recovery source — the snapshot name (or snapshot obj N when the
name is unavailable), for the F-CARVE source field.
inode: u64The object id (inode) within the snapshot’s objset.
size: u64The file’s logical size in bytes (from the snapshot’s SA metadata).
content: Vec<u8>The carved file content.
content_sha256: StringThe carved content’s sha256, lower-hex (the recovery gate).
Trait Implementations§
Source§impl Clone for RecoveredFile
impl Clone for RecoveredFile
Source§fn clone(&self) -> RecoveredFile
fn clone(&self) -> RecoveredFile
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 moreSource§impl Debug for RecoveredFile
impl Debug for RecoveredFile
impl Eq for RecoveredFile
Source§impl PartialEq for RecoveredFile
impl PartialEq for RecoveredFile
impl StructuralPartialEq for RecoveredFile
Auto Trait Implementations§
impl Freeze for RecoveredFile
impl RefUnwindSafe for RecoveredFile
impl Send for RecoveredFile
impl Sync for RecoveredFile
impl Unpin for RecoveredFile
impl UnsafeUnpin for RecoveredFile
impl UnwindSafe for RecoveredFile
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