feat: ext2 filesystem, installer updates, add update feature, and more

This commit is contained in:
2026-03-08 14:41:36 +01:00
parent 7617419640
commit bcd959b80f
23 changed files with 2717 additions and 130 deletions
+25
View File
@@ -0,0 +1,25 @@
/*
* Ext2.hpp
* ext2 filesystem driver
* Copyright (c) 2026 Daniel Hammer
*/
#pragma once
#include <cstdint>
#include <Fs/Vfs.hpp>
namespace Fs::Ext2 {
// Try to mount an ext2 filesystem at the given partition range.
// Returns a FsDriver* on success, nullptr if not a valid ext2 volume.
Vfs::FsDriver* Mount(int blockDevIndex, uint64_t startLba, uint64_t sectorCount);
// Register Ext2::Mount as a filesystem probe with FsProbe.
void RegisterProbe();
// Format a partition as ext2.
// Returns 0 on success, -1 on error.
int Format(int blockDevIndex, uint64_t startLba, uint64_t sectorCount,
const char* volumeLabel);
};