From aa8a096ad429640e752d69a89c572da35493d4c0 Mon Sep 17 00:00:00 2001 From: Amlal Date: Thu, 20 Feb 2025 11:58:55 +0100 Subject: FS, DriveMgr, AHCI: Actively working on it. PagingMgr: Define get_phys_address in C++ source directly. Signed-off-by: Amlal --- dev/Kernel/src/FS/NeFS.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'dev/Kernel/src/FS') 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) { // ========================== // -- cgit v1.2.3