fs: implement FAT32 LFN support and root volume abstraction

This commit is contained in:
boreddevnl
2026-05-08 21:02:14 +02:00
parent b04bde3d9e
commit 3e26332b1a
7 changed files with 443 additions and 279 deletions

View File

@@ -11,13 +11,21 @@ typedef struct {
char bootloader_version[64];
uint64_t boot_time_ms;
uint8_t boot_flags;
char root_device[16];
char limine_conf[2048];
int limine_conf_len;
uint32_t num_modules;
uint32_t kernel_size;
uint32_t initrd_size;
void *initrd_ptr;
void *custom_files;
} bootfs_state_t;
#define BOOT_FLAG_LIVE 0x01
#define BOOT_FLAG_DISK 0x02
#define BOOT_FLAG_FORCED 0x04
#define BOOT_FLAG_ROOT_SET 0x08
#define BOOT_FLAG_ROOT_PIVOTED 0x10
extern bootfs_state_t g_bootfs_state;
void bootfs_state_init(void);