pub fn read_all(
dev: &dyn BlockDevice,
inode: &Inode,
inode_raw: &[u8],
inode_size: u16,
block_size: u32,
) -> Result<Vec<u8>>Expand description
Read the contents of an inline-data file in full.
Returns the concatenation of:
inode.block(60 bytes), truncated to the file’ssize- The
system.dataxattr value (if file size > 60)
Caller must verify the inode actually has INLINE_DATA_FL set before
calling — otherwise the returned bytes are garbage (extent header etc.).