Replaced the last ERR_VFS_* error codes with appropriate public ones.

Maybe we want to define B_* codes for this, though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12249 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2005-04-05 13:53:37 +00:00
parent f05e261fd7
commit a11ef9a454

View File

@ -28,7 +28,6 @@
#include <file_cache.h>
#include <khash.h>
#include <lock.h>
#include <kerrors.h>
#include <fd.h>
#include <fs/node_monitor.h>
#include <util/kernel_cpp.h>
@ -4667,7 +4666,7 @@ fs_mount(char *path, const char *device, const char *fsName, uint32 flags,
}
if (covered_vnode->mount->root_vnode == covered_vnode) {
err = ERR_VFS_ALREADY_MOUNTPOINT;
err = B_BUSY;
goto err5;
}
@ -4750,7 +4749,7 @@ fs_unmount(char *path, uint32 flags, bool kernel)
if (mount->root_vnode != vnode) {
// not mountpoint
put_vnode(vnode);
return ERR_VFS_NOT_MOUNTPOINT;
return B_BAD_VALUE;
}
// if the volume is associated with a partition, lock the device of the