From 461fe537aa1f9533bfa5c2504cb84843b9eac501 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Mon, 29 Apr 2024 10:12:36 +0200 Subject: MHR-18: Filesystem fixes and improvements see ticket. - Implement CreateCatalog for file creation, an implementation of RemoveCatalog is also needed. - Boot Kit only takes a single root file now. Must be ending with '/'. Signed-off-by: Amlal El Mahrouss --- Private/KernelKit/FileManager.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Private/KernelKit/FileManager.hpp') diff --git a/Private/KernelKit/FileManager.hpp b/Private/KernelKit/FileManager.hpp index 603ee06b..ab65bbe1 100644 --- a/Private/KernelKit/FileManager.hpp +++ b/Private/KernelKit/FileManager.hpp @@ -86,7 +86,7 @@ class FilesystemManagerInterface { public: virtual Void Write(_Input NodePtr node, _Input VoidPtr data, - _Input Int32 flags) = 0; + _Input Int32 flags, _Input SizeT size) = 0; virtual _Output VoidPtr Read(_Input NodePtr node, _Input Int32 flags, _Input SizeT sz) = 0; @@ -122,7 +122,7 @@ class NewFilesystemManager final : public FilesystemManagerInterface { public: bool Remove(const char *path) override; NodePtr Open(const char *path, const char *r) override; - Void Write(NodePtr node, VoidPtr data, Int32 flags) override; + Void Write(NodePtr node, VoidPtr data, Int32 flags, SizeT sz) override; VoidPtr Read(NodePtr node, Int32 flags, SizeT sz) override; bool Seek(NodePtr node, SizeT off); SizeT Tell(NodePtr node) override; -- cgit v1.2.3