pub struct SourceVolumeSnapshot {
pub volume_name: String,
pub volume_name_raw: Vec<u8>,
pub create_date: u32,
pub modify_date: u32,
pub backup_date: u32,
pub finder_info: [u32; 8],
pub boot_blocks: [u8; 1024],
pub block_size: u32,
pub total_blocks: u16,
}Expand description
Volume-level metadata captured from the source.
Fields§
§volume_name: StringUTF-8 decoding of the volume name (Pascal string in Mac Roman on disk).
volume_name_raw: Vec<u8>Raw Mac Roman bytes of the volume name (up to 27 bytes).
create_date: u32drCrDate — volume create date (HFS epoch seconds).
modify_date: u32drLsMod — volume modify date.
backup_date: u32drVolBkUp — volume backup date.
finder_info: [u32; 8]drFndrInfo — 8 × u32 Finder info. finder_info[0] is the blessed
System Folder CNID; other slots are also copied verbatim with any
CNID remap applied by the caller.
boot_blocks: [u8; 1024]Sectors 0..1 of the partition, 1024 bytes verbatim.
block_size: u32Source allocation block size (drAlBlkSiz) — informational only.
total_blocks: u16Source total allocation blocks (drNmAlBlks) — informational only.
Implementations§
Source§impl SourceVolumeSnapshot
impl SourceVolumeSnapshot
Sourcepub fn capture<R: Read + Seek>(
fs: &mut HfsFilesystem<R>,
) -> Result<Self, FilesystemError>
pub fn capture<R: Read + Seek>( fs: &mut HfsFilesystem<R>, ) -> Result<Self, FilesystemError>
Capture volume-level metadata from an opened source filesystem. The source is only read, never mutated.
Trait Implementations§
Source§impl Clone for SourceVolumeSnapshot
impl Clone for SourceVolumeSnapshot
Auto Trait Implementations§
impl Freeze for SourceVolumeSnapshot
impl RefUnwindSafe for SourceVolumeSnapshot
impl Send for SourceVolumeSnapshot
impl Sync for SourceVolumeSnapshot
impl Unpin for SourceVolumeSnapshot
impl UnsafeUnpin for SourceVolumeSnapshot
impl UnwindSafe for SourceVolumeSnapshot
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