From 704879ab7f080ce60bcffda02e3dda6330a4f1fd Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sun, 20 Oct 2024 07:07:08 +0000 Subject: NeFS: Officialize minimum disk size into the specs. HPFS: Start implementing it. UPS: Check PTime, and decrementing it when it isn't our time yet, also added new Subsystem entries. FSKit: Better documentation and provide 256U instead of only 256. EBS: Fixed HPFS magic number, which wasn't correctly bound to 8 bytes. BUILD: Fixed blob.json for epm.asm --- dev/zba/BootKit/BootKit.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dev/zba/BootKit') diff --git a/dev/zba/BootKit/BootKit.hxx b/dev/zba/BootKit/BootKit.hxx index a29316e2..5c2805fc 100644 --- a/dev/zba/BootKit/BootKit.hxx +++ b/dev/zba/BootKit/BootKit.hxx @@ -315,11 +315,11 @@ namespace Boot /// @note A catalog roughly equal to a sector. - constexpr auto cMinimumDiskSize = 4; // at minimum. + constexpr auto cMinimumDiskSize = kNeFSMinimumDiskSize; // at minimum. /// @note also look at EPM headers, for free part blocks. - if (GIB(fDiskDev.GetDiskSize()) < cMinimumDiskSize) + if (fDiskDev.GetDiskSize() < cMinimumDiskSize) { EFI::ThrowError(L"Drive-Too-Tiny", L"Can't format a New Filesystem partition here."); return false; -- cgit v1.2.3