remove_vnode() will now return an error code if the vnode to be removed did not exist.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21614 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2007-07-15 12:38:13 +00:00
parent f29a0687cf
commit bd1877933f
1 changed files with 3 additions and 3 deletions

View File

@ -2631,11 +2631,11 @@ remove_vnode(dev_t mountID, ino_t vnodeID)
free_vnode(vnode, true);
}
return B_OK;
return vnode != NULL ? B_OK : B_ENTRY_NOT_FOUND;
}
extern "C" status_t
extern "C" status_t
unremove_vnode(dev_t mountID, ino_t vnodeID)
{
struct vnode *vnode;
@ -2651,7 +2651,7 @@ unremove_vnode(dev_t mountID, ino_t vnodeID)
}
extern "C" status_t
extern "C" status_t
get_vnode_removed(dev_t mountID, ino_t vnodeID, bool* removed)
{
mutex_lock(&sVnodeMutex);