pub struct F2fsReader {
pub superblock: SuperBlock,
/* private fields */
}
Fields§
§superblock: SuperBlock
Implementations§
Source§impl F2fsReader
impl F2fsReader
pub async fn open_device(device: Arc<dyn Device>) -> Result<Self, Error>
pub fn root_ino(&self) -> u32
Sourcepub fn max_ino(&self) -> u32
pub fn max_ino(&self) -> u32
Gives the maximum addressable inode. This can be used to ensure we don’t have namespace collisions when building hybrid images.
Sourcepub fn add_key(&mut self, main_key: &[u8; 64]) -> [u8; 16]
pub fn add_key(&mut self, main_key: &[u8; 64]) -> [u8; 16]
Registers a new main key. This ‘unlocks’ any files using this key.
Sourcepub async fn readdir(&self, ino: u32) -> Result<Vec<DirEntry>, Error>
pub async fn readdir(&self, ino: u32) -> Result<Vec<DirEntry>, Error>
Read an inode for a directory and return entries.
Sourcepub async fn read_inode(&self, ino: u32) -> Result<Box<Inode>, Error>
pub async fn read_inode(&self, ino: u32) -> Result<Box<Inode>, Error>
Read an inode and associated blocks from disk.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for F2fsReader
impl !RefUnwindSafe for F2fsReader
impl Send for F2fsReader
impl Sync for F2fsReader
impl Unpin for F2fsReader
impl !UnwindSafe for F2fsReader
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