diff options
| author | Amlal <amlal.elmahrouss@icloud.com> | 2025-02-20 11:58:55 +0100 |
|---|---|---|
| committer | Amlal <amlal.elmahrouss@icloud.com> | 2025-02-20 11:58:55 +0100 |
| commit | aa8a096ad429640e752d69a89c572da35493d4c0 (patch) | |
| tree | 4616c7cf8f8baedfa91e46eba9a6c76ab10de7a2 /dev/Kernel/src/FS | |
| parent | 807dbca22a151713ff7b7527cbf66b6c350ed938 (diff) | |
FS, DriveMgr, AHCI: Actively working on it.
PagingMgr: Define get_phys_address in C++ source directly.
Signed-off-by: Amlal <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/Kernel/src/FS')
| -rw-r--r-- | dev/Kernel/src/FS/NeFS.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/dev/Kernel/src/FS/NeFS.cc b/dev/Kernel/src/FS/NeFS.cc index 24a03704..4a3370f5 100644 --- a/dev/Kernel/src/FS/NeFS.cc +++ b/dev/Kernel/src/FS/NeFS.cc @@ -326,6 +326,9 @@ _Output NEFS_CATALOG_STRUCT* NeFileSystemParser::CreateCatalog(_Input const Char out_lba = blk_nefs->StartCatalog; } + if (drive.fPacket.fPacketReadOnly) + return nullptr; + NEFS_CATALOG_STRUCT* child_catalog = new NEFS_CATALOG_STRUCT(); child_catalog->ResourceForkSize = 0UL; @@ -371,6 +374,8 @@ _Output NEFS_CATALOG_STRUCT* NeFileSystemParser::CreateCatalog(_Input const Char return nullptr; } + kout << "Start finding catalog to allocate or empty space...\r"; + while (start_free >= part_block->StartCatalog) { // ========================== // |
