summaryrefslogtreecommitdiffhomepage
path: root/tooling
diff options
context:
space:
mode:
authorAmlal <amlal@nekernel.org>2025-04-27 17:30:36 +0200
committerAmlal <amlal@nekernel.org>2025-04-27 17:30:36 +0200
commitcb2f383f45dda8d1cdcef0b87fe4c70243659701 (patch)
treef109c3c44fa3f142d34f8ca61cfa69672e556614 /tooling
parent14d5ee9e0cfededddfceec73d5dfa8a2fcda6c5d (diff)
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 <amlal@nekernel.org>
Diffstat (limited to 'tooling')
-rw-r--r--tooling/mkfs.hefs.cc5
1 files changed, 2 insertions, 3 deletions
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;