summaryrefslogtreecommitdiffhomepage
path: root/dev/kernel/FSKit
diff options
context:
space:
mode:
authorAmlal <amlal@nekernel.org>2025-05-02 10:37:13 +0200
committerAmlal <amlal@nekernel.org>2025-05-02 10:37:35 +0200
commit4aec90bf2110e21412fa10435f83a04a01ee24df (patch)
tree11b22253d38d8826372d2a0bb421e366d9d86ead /dev/kernel/FSKit
parent5027e6d648ac4a9fa7cfe2ca6c1d8cec54fc126a (diff)
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 <amlal@nekernel.org>
Diffstat (limited to 'dev/kernel/FSKit')
-rw-r--r--dev/kernel/FSKit/HeFS.h16
1 files changed, 12 insertions, 4 deletions
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.
};