Author: korli Date: 2010-10-18 00:12:30 +0200 (Mon, 18 Oct 2010) New Revision: 38992 Changeset: http://dev.haiku-os.org/changeset/38992 Modified: haiku/trunk/src/add-ons/kernel/file_systems/ext2/Volume.cpp Log: added some logs in case of errors. Modified: haiku/trunk/src/add-ons/kernel/file_systems/ext2/Volume.cpp =================================================================== --- haiku/trunk/src/add-ons/kernel/file_systems/ext2/Volume.cpp 2010-10-17 20:17:23 UTC (rev 38991) +++ haiku/trunk/src/add-ons/kernel/file_systems/ext2/Volume.cpp 2010-10-17 22:12:30 UTC (rev 38992) @@ -371,30 +371,38 @@ TRACE("Volume::Mount(): Checking if journal was initialized\n"); status = fJournal->InitCheck(); - if (status != B_OK) + if (status != B_OK) { + FATAL("could not initialize journal!\n"); return status; + } // TODO: Only recover if asked to TRACE("Volume::Mount(): Asking journal to recover\n"); status = fJournal->Recover(); - if (status != B_OK) + if (status != B_OK) { + FATAL("could not recover journal!\n"); return status; + } TRACE("Volume::Mount(): Restart journal log\n"); status = fJournal->StartLog(); - if (status != B_OK) + if (status != B_OK) { + FATAL("could not initialize start journal!\n"); return status; + } // Initialize allocators TRACE("Volume::Mount(): Initialize block allocator\n"); status = fBlockAllocator.Initialize(); - if (status != B_OK) + if (status != B_OK) { + FATAL("could not initialize block allocator!\n"); return status; + } // ready status = get_vnode(fFSVolume, EXT2_ROOT_NODE, (void**)&fRootNode); if (status != B_OK) { - TRACE("could not create root node: get_vnode() failed!\n"); + FATAL("could not create root node: get_vnode() failed!\n"); return status; }