summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2026-03-02 14:59:58 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2026-03-02 15:01:10 +0100
commit941e0dfbb41ac539178503351afc0f09de442720 (patch)
tree76f56d71783d57a8c90457b28515cb10ad5019fb /src
parentbb83a254036ec708a0840313854d0ff5b0f84eb9 (diff)
chore: OpenHeFS and MKFS tweaks.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src')
-rw-r--r--src/kernel/src/FS/OpenHeFS+FileMgr.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/kernel/src/FS/OpenHeFS+FileMgr.cpp b/src/kernel/src/FS/OpenHeFS+FileMgr.cpp
index 3161ec8c..e7df9200 100644
--- a/src/kernel/src/FS/OpenHeFS+FileMgr.cpp
+++ b/src/kernel/src/FS/OpenHeFS+FileMgr.cpp
@@ -156,7 +156,7 @@ NodePtr HeFileSystemMgr::CreateSwapFile(const Char* path) {
}
kout << "OpenHEFS: ERROR: Swap Files are not supported natively by OpenHeFS.\r";
- err_local_get() = kErrorProcessFault;
+ err_local_get() = kErrorInvalidData;
return nullptr;
}
@@ -212,9 +212,9 @@ Void HeFileSystemMgr::Write(_Input NodePtr node, _Input VoidPtr data, _Input Int
}
_Output VoidPtr HeFileSystemMgr::Read(_Input NodePtr node, _Input Int32 flags, _Input SizeT size) {
- NE_UNUSED(node);
NE_UNUSED(flags);
- NE_UNUSED(size);
+
+ if (!node || !size) return nullptr;
return nullptr;
}