ArvernOS
|
#include <fs/vfs.h>
Data Structures | |
struct | tar_header_t |
Functions | |
inode_t | tar_fs_create (uintptr_t address) |
Tar works by concatenating all files together in one big file where each file gets a header that is padded up to 512 bytes. The headers are each aligned on a 512 byte boundry and the content follows directly afterwards.
inode_t tar_fs_create | ( | uintptr_t | address | ) |
Creates a TAR-based read-only file system root node.
This function creates a TAR-based read-only file system by reading an archive stored in memory at the address specified as first argument. This file system can have directories and files. The archive used is also called a (init) "ram disk" because the GRUB will load the entire archive in memory.
address | the memory address where the TAR archive is located |