summaryrefslogtreecommitdiffhomepage
path: root/dev/kernel/FSKit
diff options
context:
space:
mode:
authorAmlal <amlal@nekernel.org>2025-04-29 08:54:34 +0200
committerAmlal <amlal@nekernel.org>2025-04-29 08:54:34 +0200
commitaa50b4980a84128fed32139758a00e215ee54a78 (patch)
treec199b57917210d66669e5771cd1ce67202ea225a /dev/kernel/FSKit
parenta435ad97c1dac5282e148e6dac2d82aabcb553e5 (diff)
kernel: Figuring out the EPM header bug; where it gets duplicated when writing an IND. (HeFS)
Signed-off-by: Amlal <amlal@nekernel.org>
Diffstat (limited to 'dev/kernel/FSKit')
-rw-r--r--dev/kernel/FSKit/HeFS.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/dev/kernel/FSKit/HeFS.h b/dev/kernel/FSKit/HeFS.h
index b236ff7b..80ef6646 100644
--- a/dev/kernel/FSKit/HeFS.h
+++ b/dev/kernel/FSKit/HeFS.h
@@ -28,7 +28,7 @@
#define kHeFSDefaultVoluneName u8"HeFS Volume"
-#define kHeFSINDStartLBA (sizeof(HEFS_BOOT_NODE))
+#define kHeFSINDStartOffset (sizeof(HEFS_INDEX_NODE_DIRECTORY))
#define kHeFSSearchAllStr u8"*"
@@ -131,7 +131,7 @@ inline constexpr Kernel::ATime kHeFSTimeMax = 0xFFFFFFFFFFFFFFFF - 1;
/// @details This structure is used to store the file information of a file.
/// @note The index node is a special type of INode that contains the file information.
/// @note The index node is used to store the file information of a file.
-struct PACKED ALIGN(8) HEFS_INDEX_NODE final {
+struct PACKED HEFS_INDEX_NODE final {
Kernel::Utf8Char fName[kHeFSFileNameLen]; /// @brief File name.
Kernel::UInt32 fFlags; /// @brief File flags.
Kernel::UInt16 fKind; /// @brief File kind. (Regular, Directory, Block, Character, FIFO, Socket,
@@ -148,7 +148,7 @@ struct PACKED ALIGN(8) HEFS_INDEX_NODE final {
Kernel::UInt64 fBlock[kHeFSBlockCount]; /// @brief block slice.
- Kernel::Char fPad[62];
+ Kernel::Char fPad[69];
};
enum {
@@ -161,7 +161,7 @@ enum {
/// @brief HeFS directory node.
/// @details This structure is used to store the directory information of a file.
/// @note The directory node is a special type of INode that contains the directory entries.
-struct PACKED ALIGN(8) HEFS_INDEX_NODE_DIRECTORY final {
+struct PACKED HEFS_INDEX_NODE_DIRECTORY final {
Kernel::Utf8Char fName[kHeFSFileNameLen]; /// @brief Directory name.
Kernel::UInt32 fFlags; /// @brief File flags.
@@ -185,7 +185,7 @@ struct PACKED ALIGN(8) HEFS_INDEX_NODE_DIRECTORY final {
Kernel::UInt8 fColor; /// @brief Color of the node. (Red or Black).
Kernel::Lba fNext, fPrev, fChild, fParent; /// @brief Red-black tree pointers.
- Kernel::Char fPad[32];
+ Kernel::Char fPad[33];
};
namespace Kernel::Detail {