VFS: Add support for an implementation-defined value
This commit is contained in:
parent
5eae93bbb0
commit
c2a08060cf
@ -27,24 +27,25 @@ namespace VFS
|
|||||||
struct Node
|
struct Node
|
||||||
{
|
{
|
||||||
char name[NAME_MAX];
|
char name[NAME_MAX];
|
||||||
uint64_t inode;
|
|
||||||
uint64_t length;
|
|
||||||
int type;
|
int type;
|
||||||
int flags;
|
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_read read_func;
|
||||||
node_finddir find_func;
|
node_finddir find_func;
|
||||||
node_readdir readdir_func;
|
node_readdir readdir_func;
|
||||||
node_mkdir mkdir_func;
|
node_mkdir mkdir_func;
|
||||||
node_write write_func;
|
node_write write_func;
|
||||||
node_block block_func;
|
node_block block_func;
|
||||||
int tty = 0;
|
|
||||||
Node* link;
|
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);
|
ssize_t read(Node* node, size_t offset, size_t length, char* buffer);
|
||||||
|
Loading…
Reference in New Issue
Block a user