pub fn load_cpio(initrd_data: &[u8]) -> Result<(), VfsError>Expand description
Loads the initial RAM disk (initrd) into the Virtual File System (VFS).
This function parses a CPIO archive provided as raw bytes, extracts its contents, and recreates the file and directory structure within the VFS.
§Arguments
initrd_data- A byte slice containing the CPIO archive data.
§Returns
A Result indicating success or a VfsError if any operation fails.