Unify VFS status codes and normal system status codes
All checks were successful
Build documentation / build-and-deploy (push) Successful in 24s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 24s
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include <libk/lengthof.h>
|
||||
#include <libk/std.h>
|
||||
#include <libk/string.h>
|
||||
#include <m/status.h>
|
||||
#include <mm/liballoc.h>
|
||||
#include <sync/spin_lock.h>
|
||||
#include <sys/debug.h>
|
||||
@@ -78,7 +79,7 @@ int vfs_describe (const char* mountpoint, const char* path, struct fs_desc_buffe
|
||||
struct vfs_mountpoint* vmp = vfs_find_mountpoint (mountpoint);
|
||||
|
||||
if (vmp == NULL)
|
||||
return -VFS_NOT_FOUND;
|
||||
return -ST_NOT_FOUND;
|
||||
|
||||
spin_lock (&vmp->lock);
|
||||
|
||||
@@ -93,7 +94,7 @@ int vfs_read (const char* mountpoint, const char* path, uint8_t* buffer, size_t
|
||||
struct vfs_mountpoint* vmp = vfs_find_mountpoint (mountpoint);
|
||||
|
||||
if (vmp == NULL)
|
||||
return -VFS_NOT_FOUND;
|
||||
return -ST_NOT_FOUND;
|
||||
|
||||
spin_lock (&vmp->lock);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user