added some logs in case of errors.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38992 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -371,30 +371,38 @@ Volume::Mount(const char* deviceName, uint32 flags)
|
|||||||
|
|
||||||
TRACE("Volume::Mount(): Checking if journal was initialized\n");
|
TRACE("Volume::Mount(): Checking if journal was initialized\n");
|
||||||
status = fJournal->InitCheck();
|
status = fJournal->InitCheck();
|
||||||
if (status != B_OK)
|
if (status != B_OK) {
|
||||||
|
FATAL("could not initialize journal!\n");
|
||||||
return status;
|
return status;
|
||||||
|
}
|
||||||
|
|
||||||
// TODO: Only recover if asked to
|
// TODO: Only recover if asked to
|
||||||
TRACE("Volume::Mount(): Asking journal to recover\n");
|
TRACE("Volume::Mount(): Asking journal to recover\n");
|
||||||
status = fJournal->Recover();
|
status = fJournal->Recover();
|
||||||
if (status != B_OK)
|
if (status != B_OK) {
|
||||||
|
FATAL("could not recover journal!\n");
|
||||||
return status;
|
return status;
|
||||||
|
}
|
||||||
|
|
||||||
TRACE("Volume::Mount(): Restart journal log\n");
|
TRACE("Volume::Mount(): Restart journal log\n");
|
||||||
status = fJournal->StartLog();
|
status = fJournal->StartLog();
|
||||||
if (status != B_OK)
|
if (status != B_OK) {
|
||||||
|
FATAL("could not initialize start journal!\n");
|
||||||
return status;
|
return status;
|
||||||
|
}
|
||||||
|
|
||||||
// Initialize allocators
|
// Initialize allocators
|
||||||
TRACE("Volume::Mount(): Initialize block allocator\n");
|
TRACE("Volume::Mount(): Initialize block allocator\n");
|
||||||
status = fBlockAllocator.Initialize();
|
status = fBlockAllocator.Initialize();
|
||||||
if (status != B_OK)
|
if (status != B_OK) {
|
||||||
|
FATAL("could not initialize block allocator!\n");
|
||||||
return status;
|
return status;
|
||||||
|
}
|
||||||
|
|
||||||
// ready
|
// ready
|
||||||
status = get_vnode(fFSVolume, EXT2_ROOT_NODE, (void**)&fRootNode);
|
status = get_vnode(fFSVolume, EXT2_ROOT_NODE, (void**)&fRootNode);
|
||||||
if (status != B_OK) {
|
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;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user