refactor(kernel): ramfs loading

This commit is contained in:
2025-04-07 05:04:23 +00:00
parent b1a30059ed
commit d4346202ca
5 changed files with 95 additions and 38 deletions

View File

@ -139,6 +139,14 @@ namespace vfs
public:
vfsInode *FileSystemRoots = nullptr;
/**
* Default reserved roots:
*
* 0 - Native
* 1 - Linux
* 2 - Windows
*/
std::unordered_map<ino_t, FileNode *> FileRoots;
bool PathIsRelative(const char *Path);

View File

@ -127,11 +127,11 @@ namespace vfs
bool TestArchive(uintptr_t Address);
void ReadArchive(uintptr_t Address, size_t Size);
USTAR(){};
~USTAR(){};
USTAR() = default;
~USTAR() = default;
};
}
bool TestAndInitializeUSTAR(uintptr_t Address, size_t Size);
bool TestAndInitializeUSTAR(uintptr_t Address, size_t Size, size_t Index);
#endif // !__FENNIX_KERNEL_FILESYSTEM_USTAR_H__