Unify VFS status codes and normal system status codes
All checks were successful
Build documentation / build-and-deploy (push) Successful in 24s

This commit is contained in:
2026-02-12 15:56:37 +01:00
parent fb54483e42
commit f37c34958e
5 changed files with 17 additions and 17 deletions

View File

@@ -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);