pub fn load(&mut self, sb: &RafsSuperMeta, r: &mut RafsIoReader) -> Result<()> {
        // RafsV5Inode...name...symbol link...chunks
        let mut inode = RafsV5Inode::new();

        // parse ondisk inode: RafsV5Inode|name|symbol|xattr|chunks
        r.read_exact(inode.as_mut())?;
        self.copy_from_ondisk(&inode);
        self.load_name(inode.i_name_size as usize, r)?;
        self.load_symlink(inode.i_symlink_size as usize, r)?;
        self.load_xattr(r)?;
        self.load_chunk_info(r)?;
        self.i_chunksize = sb.chunk_size;
        self.validate(sb.inodes_count, self.i_chunksize as u64)?;

        Ok(())
    }
/// Load an inode metadata from a reader.
Load an inode metadata from a reader.
Load an inode metadata from a reader .
pub fn load(&mut self, sb: &RafsSuperMeta, r: &mut RafsIoReader) -> Result<()> {
        // RafsV5Inode...name...symbol link...chunks
        let mut inode = RafsV5Inode::new();
        // parse ondisk inode: RafsV5Inode|name|symbol|xattr|chunks
        r.read_exact(inode.as_mut())?;
        self.copy_from_ondisk(&inode);
        self.load_name(inode.i_name_size as usize, r)?;
        self.load_symlink(inode.i_symlink_size as usize, r)?;
        self.load_xattr(r)?;
        self.load_chunk_info(r)?;
        self.i_chunksize = sb.chunk_size;
        self.validate(sb.inodes_count, self.i_chunksize as u64)?;
        Ok(())
    }
pub fn load ( & mut self , sb : & RafsSuperMeta , r : & mut RafsIoReader ) -> Result < ( ) > { // RafsV5Inode...name...symbol link...chunks let mut inode = RafsV5Inode :: new ( ) ; // parse ondisk inode: RafsV5Inode|name|symbol|xattr|chunks r . read_exact ( inode . as_mut ( ) ) ? ; self . copy_from_ondisk ( & inode ) ; self . load_name ( inode . i_name_size as usize , r ) ? ; self . load_symlink ( inode . i_symlink_size as usize , r ) ? ; self . load_xattr ( r ) ? ; self . load_chunk_info ( r ) ? ; self . i_chunksize = sb . chunk_size ; self . validate ( sb . inodes_count , self . i_chunksize as u64 ) ? ; Ok ( ( ) ) }
Load an inode metadata from a reader.
Load an inode metadata from a reader .
&mut self
sb
&RafsSuperMeta
r
&mut RafsIoReader
&mut self
sb
&RafsSuperMeta
r
&mut RafsIoReader