lib: fs: implement mounting filesystems; reading, writing from files
This commit is contained in:
@@ -3,7 +3,9 @@
|
||||
|
||||
#include "btree.h"
|
||||
|
||||
#include <fs/dentry.h>
|
||||
#include <fs/file.h>
|
||||
#include <fs/inode.h>
|
||||
|
||||
struct fs_file {
|
||||
/* id of the open file, equal to the koid of the port being used to
|
||||
@@ -12,6 +14,10 @@ struct fs_file {
|
||||
struct btree_node f_node;
|
||||
|
||||
const struct fs_file_ops *f_ops;
|
||||
|
||||
off_t f_seek;
|
||||
struct fs_inode *f_inode;
|
||||
struct fs_dentry *f_dent;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user