From cb2f383f45dda8d1cdcef0b87fe4c70243659701 Mon Sep 17 00:00:00 2001 From: Amlal Date: Sun, 27 Apr 2025 17:30:36 +0200 Subject: dev, kernel: AHCI, HeFS filesystem, SysChk, and BootSATA improvements. what? - AHCI now writes to disk, forgot to do it. - Codebase's architecutre has been used to reuse the Generic+AHCI driver in SysChk for AHCI. (tradeoff is 256K in size instead of 36K) - DriveMgr now detects EPM. - And HeFS is still being worked on. Signed-off-by: Amlal --- tooling/mkfs.hefs.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tooling') diff --git a/tooling/mkfs.hefs.cc b/tooling/mkfs.hefs.cc index e9cae578..542ae175 100644 --- a/tooling/mkfs.hefs.cc +++ b/tooling/mkfs.hefs.cc @@ -115,14 +115,13 @@ int main(int argc, char** argv) { auto cnt = end_ind / sizeof(mkfs::hefs::IndexNodeDirectory); auto start = bootNode.startIND; - auto prev = start; + auto prev = start; // Pre-allocate index node directory tree for (size_t i = 0; i < cnt; ++i) { mkfs::hefs::IndexNodeDirectory indexNode{}; - std::memcpy(indexNode.name, u"/", - std::u16string(u"/").size() * sizeof(char16_t)); + std::memcpy(indexNode.name, u"/", std::u16string(u"/").size() * sizeof(char16_t)); indexNode.flags = mkfs::hefs::kHeFSEncodingUTF16; indexNode.kind = mkfs::hefs::kHeFSFileKindDirectory; -- cgit v1.2.3