summaryrefslogtreecommitdiffhomepage
path: root/Private/FSKit
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-04-30 08:15:54 +0200
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-04-30 08:15:54 +0200
commitf86125cf437fb49587d588413d69646959a58541 (patch)
tree045a19e28860280a29bb8fc218a6909343691878 /Private/FSKit
parent77423c4fa55a060c5cf710bbe5c4de02fce43e97 (diff)
MHR-18: Quality assurance of the filesystem.
- File/Directory removal and creation. - Read/Write support. - Sanitu check and catalog validation. Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Private/FSKit')
-rw-r--r--Private/FSKit/NewFS.hxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/Private/FSKit/NewFS.hxx b/Private/FSKit/NewFS.hxx
index 2a499ab7..b461666d 100644
--- a/Private/FSKit/NewFS.hxx
+++ b/Private/FSKit/NewFS.hxx
@@ -43,8 +43,8 @@ default.
/// @brief Partition GUID on EPM and GPT disks.
#define kNewFSUUID "@{DD997393-9CCE-4288-A8D5-C0FDE3908DBE}"
-#define kNewFSVersionInteger 0x123
-#define kNewFSVerionString "1.23"
+#define kNewFSVersionInteger 0x124
+#define kNewFSVerionString "1.24"
/// @brief Standard fork types.
#define kNewFSDataFork "data"
@@ -115,7 +115,9 @@ struct PACKED NewCatalog final {
NewCharType Mime[kNewFSMimeNameLen];
/// Catalog status flag.
- NewOS::Int32 Flags;
+ NewOS::UInt16 Flags;
+ /// Custom catalog flags.
+ NewOS::UInt16 FileFlags;
/// Catalog kind.
NewOS::Int32 Kind;
@@ -237,7 +239,7 @@ class NewFSParser final {
bool WriteCatalog(_Input _Output NewCatalog* catalog,
voidPtr data, SizeT sizeOfData);
- VoidPtr ReadCatalog(_Input _Output const char* catalogName,
+ VoidPtr ReadCatalog(_Input _Output NewCatalog* catalog,
SizeT dataSz);
bool Seek(_Input _Output NewCatalog* catalog, SizeT off);