From 4aec90bf2110e21412fa10435f83a04a01ee24df Mon Sep 17 00:00:00 2001 From: Amlal Date: Fri, 2 May 2025 10:37:13 +0200 Subject: kernel, fskit: HeFS: Worked on IND allocation and added removal support. notice: - parent_dir_fmt has to be formated to take care of subdirs. Signed-off-by: Amlal --- dev/kernel/FSKit/HeFS.h | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'dev/kernel/FSKit') diff --git a/dev/kernel/FSKit/HeFS.h b/dev/kernel/FSKit/HeFS.h index da5da3c1..50b8e259 100644 --- a/dev/kernel/FSKit/HeFS.h +++ b/dev/kernel/FSKit/HeFS.h @@ -358,14 +358,22 @@ class HeFileSystemParser final { /// @return If it was sucessful, see err_local_get(). _Output Bool Format(_Input _Output DriveTrait* drive, _Input const Int32 flags, const Utf8Char* part_name); - + _Output Bool CreateDirectory(_Input DriveTrait* drive, _Input const Int32 flags, - const Utf8Char* dir); + const Utf8Char* dir, const Utf8Char* parent_dir); + + + _Output Bool RemoveDirectory(_Input DriveTrait* drive, _Input const Int32 flags, + const Utf8Char* dir, const Utf8Char* parent_dir); - _Output Bool CreateFile(_Input DriveTrait* drive, _Input const Int32 flags, const Utf8Char* dir, + _Output Bool CreateFile(_Input DriveTrait* drive, _Input const Int32 flags, const Utf8Char* dir, const Utf8Char* namespase, const Utf8Char* name); - public: + private: + + _Output Bool DirectoryCtl_(_Input DriveTrait* drive, _Input const Int32 flags, + const Utf8Char* dir, const Utf8Char* parent, const BOOL delete_or_create); + UInt32 mDriveIndex{MountpointInterface::kDriveIndexA}; /// @brief The drive index which this /// filesystem is mounted on. }; -- cgit v1.2.3