* Give a more detailed error message in case someone just tried to access a
deleted inode (which might always happen when accessing an inode by ID), for example by using the BDirectory(node_ref&) constructor. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28213 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
552c8edcd1
commit
218f8c8632
|
@ -267,7 +267,12 @@ bfs_get_vnode(fs_volume* _volume, ino_t id, fs_vnode* _node, int* _type,
|
|||
|
||||
status_t status = node->InitCheck(volume);
|
||||
if (status < B_OK) {
|
||||
FATAL(("inode at %Ld is corrupt!\n", id));
|
||||
if ((node->Flags() & INODE_DELETED) != 0) {
|
||||
INFORM(("inode at %Ld is already deleted!\n", id));
|
||||
} else {
|
||||
FATAL(("inode at %Ld could not be read: %s!\n", id,
|
||||
strerror(status)));
|
||||
}
|
||||
return status;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue