#ifndef D_CPIO_H
#define D_CPIO_H

#include <vfs.h>

typedef struct {
    char c_magic[6];     // "070701" or "070702"
    char c_ino[8];
    char c_mode[8];      // File type & permissions
    char c_uid[8];
    char c_gid[8];
    char c_nlink[8];
    char c_mtime[8];
    char c_filesize[8];  // File size in hex ASCII
    char c_devmajor[8];
    char c_devminor[8];
    char c_rdevmajor[8];
    char c_rdevminor[8];
    char c_namesize[8];  // Length of filename in hex ASCII
    char c_check[8];
} __attribute__((packed)) cpio_header_t;

vfs_node_t* cpio_read_fs(uint32_t _vaddr);

#endif