From 479b09b2dfe907e5662527d546d3ceb34d92d5f7 Mon Sep 17 00:00:00 2001 From: DH Date: Mon, 10 Nov 2025 01:07:33 +0300 Subject: [PATCH] orbis: add statfs file api --- kernel/orbis/include/orbis/file.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kernel/orbis/include/orbis/file.hpp b/kernel/orbis/include/orbis/file.hpp index b32b01466..1be2edb5e 100644 --- a/kernel/orbis/include/orbis/file.hpp +++ b/kernel/orbis/include/orbis/file.hpp @@ -1,11 +1,11 @@ #pragma once +#include "IoDevice.hpp" #include "KernelAllocator.hpp" #include "error/ErrorCode.hpp" #include "note.hpp" #include "rx/Rc.hpp" #include "rx/SharedMutex.hpp" -#include "IoDevice.hpp" #include "stat.hpp" #include @@ -14,6 +14,7 @@ struct File; struct KNote; struct Thread; struct Stat; +struct StatFs; struct Uio; struct SocketAddress; struct msghdr; @@ -34,6 +35,7 @@ struct FileOps { ErrorCode (*kqfilter)(File *file, KNote *kn, Thread *thread) = nullptr; ErrorCode (*stat)(File *file, Stat *sb, Thread *thread) = nullptr; + ErrorCode (*statfs)(File *file, StatFs *sb, Thread *thread) = nullptr; ErrorCode (*mkdir)(File *file, const char *path, std::int32_t mode) = nullptr;