Fix readdir for ext2

This commit is contained in:
Mark
2019-12-30 04:06:16 +02:00
parent 3d807708cf
commit 689d0d9534
7 changed files with 78 additions and 5 deletions
+3
View File
@@ -2,6 +2,8 @@
#include "sys/types.h"
#include "sys/dev.h"
struct vfs_node;
struct blkdev {
void *dev_data;
struct dev_entry *ent;
@@ -15,6 +17,7 @@ struct blkdev {
ssize_t blk_read(struct blkdev *blk, void *buf, size_t off, size_t count);
ssize_t blk_write(struct blkdev *blk, const void *buf, size_t off, size_t count);
int blk_mount_auto(struct vfs_node *at, struct blkdev *blkdev, const char *opt);
struct blkdev *blk_by_name(const char *name);
int blk_enumerate_partitions(struct blkdev *blk);
+1
View File
@@ -91,6 +91,7 @@ void vfs_node_free(struct vfs_node *n);
*/
struct vfs_node *vfs_node_create(const char *name, vnode_t *vn);
int vfs_mount_internal(struct vfs_node *at, void *blkdev, const char *fs_name, const char *opt);
/**
* @brief Create a mountpoint in a filesystem tree so that
* a "source" directory actually refers to the root