summaryrefslogtreecommitdiffhomepage
path: root/dev/zba/BootKit/BootKit.hxx
diff options
context:
space:
mode:
authorAmlal El Mahrouss <zka-holder@mahrouss-logic.com>2024-10-20 07:07:08 +0000
committerAmlal El Mahrouss <zka-holder@mahrouss-logic.com>2024-10-20 07:07:08 +0000
commit704879ab7f080ce60bcffda02e3dda6330a4f1fd (patch)
tree3970ff78405684f08f01e9e68ebb77a038c28e57 /dev/zba/BootKit/BootKit.hxx
parent9d092dd8a9bff165d6159e9fbedb2e361ff54987 (diff)
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
Diffstat (limited to 'dev/zba/BootKit/BootKit.hxx')
-rw-r--r--dev/zba/BootKit/BootKit.hxx4
1 files changed, 2 insertions, 2 deletions
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;