aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/fs/vfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/fs/vfs.c')
-rw-r--r--src/kernel/fs/vfs.c48
1 files changed, 0 insertions, 48 deletions
diff --git a/src/kernel/fs/vfs.c b/src/kernel/fs/vfs.c
deleted file mode 100644
index 6471f1b..0000000
--- a/src/kernel/fs/vfs.c
+++ /dev/null
@@ -1,48 +0,0 @@
-#include <stddef.h>
-#include <kernel/fs/vfs.h>
-
-struct fs_node *fs_root = NULL;
-
-uint32_t read_fs_node(struct fs_node *node, size_t offset, size_t size, char *buf)
-{
- if (node->read != NULL)
- return node->read(node, offset, size, buf);
- else
- return 0;
-}
-
-uint32_t write_fs_node(struct fs_node *node, size_t offset, size_t size, char *buf)
-{
- if (node->write != NULL)
- return node->write(node, offset, size, buf);
- else
- return 0;
-}
-
-void open_fs_node(struct fs_node *node, bool read, bool write)
-{
- if (node->open != NULL)
- node->open(node);
-}
-
-void close_fs_node(struct fs_node *node)
-{
- if (node->close != NULL)
- node->close(node);
-}
-
-struct dir_entry *read_dir_node(struct fs_node *node, size_t index)
-{
- if ((node->type & DIR_NODE) != 0 && node->read_dir != NULL)
- return node->read_dir(node, index);
- else
- return NULL;
-}
-
-struct fs_node *find_dir_node(struct fs_node *node, char *name)
-{
- if ((node->type & DIR_NODE) != 0 && node->find_dir != NULL)
- return node->find_dir(node, name);
- else
- return NULL;
-} \ No newline at end of file