From c2a08060cf830806be78dd9707158147b55ffe0e Mon Sep 17 00:00:00 2001 From: apio Date: Sun, 30 Oct 2022 20:53:45 +0100 Subject: [PATCH] VFS: Add support for an implementation-defined value --- kernel/include/fs/VFS.h | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/kernel/include/fs/VFS.h b/kernel/include/fs/VFS.h index a8111177..67a63640 100644 --- a/kernel/include/fs/VFS.h +++ b/kernel/include/fs/VFS.h @@ -27,24 +27,25 @@ namespace VFS struct Node { char name[NAME_MAX]; - uint64_t inode; - uint64_t length; int type; int flags; + int tty = 0; + int uid; + int gid; + mode_t mode; + uint64_t impl; + uint64_t atime; + uint64_t ctime; + uint64_t mtime; + uint64_t inode; + uint64_t length; node_read read_func; node_finddir find_func; node_readdir readdir_func; node_mkdir mkdir_func; node_write write_func; node_block block_func; - int tty = 0; Node* link; - int uid; - int gid; - uint64_t atime; - uint64_t ctime; - uint64_t mtime; - mode_t mode; }; ssize_t read(Node* node, size_t offset, size_t length, char* buffer);