From 6c7d60a690aa3358b3240ebdfdf1feb62956d747 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sat, 11 Jan 2025 13:52:54 +0100 Subject: ADD: Fully implement final patent. Signed-off-by: Amlal El Mahrouss --- dev/Boot/BootKit/BootKit.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'dev/Boot/BootKit') diff --git a/dev/Boot/BootKit/BootKit.h b/dev/Boot/BootKit/BootKit.h index db21ba30..050d5929 100644 --- a/dev/Boot/BootKit/BootKit.h +++ b/dev/Boot/BootKit/BootKit.h @@ -345,7 +345,7 @@ namespace Boot part.Version = kNeFSVersionInteger; part.CatalogCount = blob_cnt; part.Kind = kNeFSHardDrive; - part.SectorSize = sizeof(NFS_ROOT_PARTITION_BLOCK); + part.SectorSize = 512; part.FreeCatalog = fDiskDev.GetSectorsCount() / sizeof(NFS_CATALOG_STRUCT); part.SectorCount = fDiskDev.GetSectorsCount(); part.FreeSectors = fDiskDev.GetSectorsCount(); @@ -377,6 +377,7 @@ namespace Boot epm_boot.FsVersion = kNeFSVersionInteger; epm_boot.LbaStart = kNeFSRootCatalogStartAddress; + epm_boot.LbaEnd = fDiskDev.GetDiskSize(); epm_boot.SectorSz = part.SectorSize; epm_boot.Kind = kEPMZkaOS; epm_boot.NumBlocks = part.CatalogCount; -- cgit v1.2.3