aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/fs/vfs.c
diff options
context:
space:
mode:
authorMarvin Borner2020-04-24 20:44:36 +0200
committerMarvin Borner2020-04-24 20:44:36 +0200
commit24175ce2a37d6f5d9ba367f942fabce681ee9e4a (patch)
tree829c4f13f8283298207b86b6a339763a10d3c521 /src/kernel/fs/vfs.c
parentcd1d0115f0b873e155a2435f932f3f2865d72ce9 (diff)
Removed vfs again...
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