diff options
| author | Amlal <amlal@nekernel.org> | 2025-04-27 23:31:27 +0200 |
|---|---|---|
| committer | Amlal <amlal@nekernel.org> | 2025-04-27 23:31:27 +0200 |
| commit | 8a7396493c3effb356d2dc4484b993b4698bc422 (patch) | |
| tree | 1726a7342eaf1ae3adaefbfe019e20cff9b9ab09 /dev/boot/BootKit | |
| parent | 11dd858e1d9da71a182bc707ca3a481dafbccbe4 (diff) | |
dev, kernel: HeFS had to be redesigned to be less problematic with hard-drives.
why?
the struct were way too big to fit wihin a sector.
Signed-off-by: Amlal <amlal@nekernel.org>
Diffstat (limited to 'dev/boot/BootKit')
| -rw-r--r-- | dev/boot/BootKit/BootKit.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dev/boot/BootKit/BootKit.h b/dev/boot/BootKit/BootKit.h index 7a25e2a5..d10ce0de 100644 --- a/dev/boot/BootKit/BootKit.h +++ b/dev/boot/BootKit/BootKit.h @@ -262,7 +262,7 @@ inline Boolean BDiskFormatFactory<BootDev>::Format(const Char* part_name) { const auto kBlockName = "OS (EPM)"; epm_boot.FsVersion = 0; - epm_boot.LbaStart = 1024; + epm_boot.LbaStart = sizeof(EPM_PART_BLOCK); epm_boot.LbaEnd = fDiskDev.GetDiskSize() - 1; epm_boot.SectorSz = BootDev::kSectorSize; epm_boot.Kind = kEPMNeKernel; |
