diff options
| author | Amlal <amlal@nekernel.org> | 2025-04-25 15:24:52 +0200 |
|---|---|---|
| committer | Amlal <amlal@nekernel.org> | 2025-04-25 15:24:52 +0200 |
| commit | a2bc9eee9184a81d80ab54a09bd239ed26d5293e (patch) | |
| tree | b030c689db1428ce198170f6b517948f2adec770 /dev/kernel/FSKit/HeFS.h | |
| parent | 982b34a1a6018626177df72b549313cf21b20f80 (diff) | |
dev, kernel: improve nefs format method, hefs format method.
Signed-off-by: Amlal <amlal@nekernel.org>
Diffstat (limited to 'dev/kernel/FSKit/HeFS.h')
| -rw-r--r-- | dev/kernel/FSKit/HeFS.h | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/dev/kernel/FSKit/HeFS.h b/dev/kernel/FSKit/HeFS.h index e4da9a47..63725f04 100644 --- a/dev/kernel/FSKit/HeFS.h +++ b/dev/kernel/FSKit/HeFS.h @@ -100,7 +100,7 @@ struct PACKED HEFS_BOOT_NODE final { Kernel::UInt64 fSectorCount; /// @brief Number of sectors in the filesystem.
Kernel::UInt64 fSectorSize; /// @brief Size of the sector.
Kernel::UInt32 fChecksum; /// @brief Checksum of the boot node.
- Kernel::UInt8 fDriveKind; /// @brief Kind of the drive. (Hard Drive, Solid State Drive, Optical
+ Kernel::UInt8 fDiskKind; /// @brief Kind of the drive. (Hard Drive, Solid State Drive, Optical
/// Drive, etc).
Kernel::UInt8 fEncoding; /// @brief Encoding of the filesystem. (UTF-8, UTF-16, etc).
Kernel::UInt64 fStartIND; /// @brief Start of the INode tree.
@@ -332,7 +332,7 @@ inline const Char* hefs_file_flags_to_string(UInt32 flags) noexcept { }
} // namespace Kernel::Detail
-namespace Kernel {
+namespace Kernel::HeFS {
/// @brief HeFS filesystem parser class.
/// @details This class is used to parse the HeFS filesystem.
class HeFileSystemParser final {
@@ -351,17 +351,13 @@ class HeFileSystemParser final { /// @brief Make a EPM+HeFS drive out of the disk.
/// @param drive The drive to write on.
/// @return If it was sucessful, see err_local_get().
- _Output Bool FormatEPM(_Input _Output DriveTrait* drive, _Input const Lba end_lba,
- _Input const Int32 flags, const Char* part_name);
-
- /// @brief Make a GPT+HeFS drive out of the disk.
- /// @param drive The drive to write on.
- /// @return If it was sucessful, see err_local_get().
- _Output Bool FormatGPT(_Input _Output DriveTrait* drive, _Input const Lba end_lba,
- _Input const Int32 flags, const Char* part_name);
+ _Output Bool Format(_Input _Output DriveTrait* drive, _Input const Int32 flags,
+ const Utf16Char* part_name);
public:
UInt32 mDriveIndex{MountpointInterface::kDriveIndexA}; /// @brief The drive index which this
/// filesystem is mounted on.
};
-} // namespace Kernel
\ No newline at end of file +
+Boolean fs_init_hefs(Void) noexcept;
+} // namespace Kernel::HeFS
\ No newline at end of file |
