summaryrefslogtreecommitdiffhomepage
path: root/Private/FSKit
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@el-mahrouss-logic.com>2024-03-26 18:36:09 +0100
committerAmlal El Mahrouss <amlal@el-mahrouss-logic.com>2024-03-26 18:36:09 +0100
commit9a0c2664b0ca5634aa557b0761139cccfb0fe753 (patch)
tree004c49f89076c8b1f6f5ab9db031c4e010bfe95f /Private/FSKit
parent66e4f909bd1a495d3f1c34d2e1b5cd71099ab1ae (diff)
Kernel: Add NewFS support: initial commit.
Signed-off-by: Amlal El Mahrouss <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'Private/FSKit')
-rw-r--r--Private/FSKit/NewFS.hxx33
1 files changed, 7 insertions, 26 deletions
diff --git a/Private/FSKit/NewFS.hxx b/Private/FSKit/NewFS.hxx
index 8e306180..9645d29c 100644
--- a/Private/FSKit/NewFS.hxx
+++ b/Private/FSKit/NewFS.hxx
@@ -21,7 +21,7 @@
#include <NewKit/Defines.hpp>
/**
- @brief New File System.
+ @brief New File System specification.
@author Amlal EL Mahrouss
*/
@@ -89,34 +89,15 @@
typedef HCore::Char NewCharType;
enum {
- kNewFSHardDrive = 0xC0, // Hard Drive
+ kNewFSHardDrive = 0xC0, // Hard Drive (SSD, HDD)
kNewFSOpticalDrive = 0x0C, // Blu-Ray/DVD
kNewFSMassStorageDevice = 0xCC, // USB
- kNewFSUnknown = 0xFF, // unknown device or unsupported (floppy)
- kNewFSDriveCount = 4,
+ kNewFSScsi = 0xC4, // SCSI Hard Drive
+ kNewFSUnknown = 0xFF, // Unknown device. (floppy)
+ kNewFSDriveCount = 5,
};
-/// @brief NewFS filesystem block.
-/// @author Amlal El Mahrouss.
-struct PACKED NewBootBlock final {
- NewCharType Ident[kNewFSIdentLen];
- NewCharType Shell[kNewFSNodeNameLen];
-
- HCore::Int64 NumParts; // number of sub-partitions.
- HCore::Int64 FreeSectors;
- HCore::Int64 SectorCount;
- HCore::Int64 SectorSz;
-
- HCore::Int64 DiskSize; // size of media.
- HCore::Int32 DiskKind; // kind of disk.
-
- HCore::Lba FirstPartBlock;
- HCore::Lba LastPartBlock;
-
- NewCharType Pad[kNewFSPadLen];
-};
-
-/// @brief File catalog type.
+/// @brief Ccatalog type.
struct PACKED NewCatalog final {
NewCharType Name[kNewFSNodeNameLen];
@@ -130,7 +111,7 @@ struct PACKED NewCatalog final {
HCore::Lba PrevSibling;
};
-/// @brief File fork type.
+/// @brief Fork type.
struct PACKED NewFork final {
NewCharType Name[kNewFSNodeNameLen];