diff options
Diffstat (limited to 'fs')
| -rw-r--r-- | fs/ext2.h | 4 | ||||
| -rw-r--r-- | fs/fs.c | 2 | ||||
| -rw-r--r-- | fs/fs.h | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/fs/ext2.h b/fs/ext2.h new file mode 100644 index 0000000..e74d55f --- /dev/null +++ b/fs/ext2.h @@ -0,0 +1,4 @@ +#include "lib/int/stdint.h" +int ext2_check(uint8_t *ram); +int ext2_inode_content(char *ram,int inode_nr,uint8_t *ramdest,int max); +int ext2_read_dir(uint8_t *ram, int inode_nr,fs_dirent *dirs,int max); @@ -1,6 +1,8 @@ // abstraction layer for filesystems #include <lib/int/stdint.h> #include "fs.h" +#include "ext2.h" + // // returns number of entries in the directory specified by name. // fills 0-max into *dirs @@ -15,5 +15,6 @@ typedef struct fs_dirent_struct uint8_t type; char name[256]; }fs_dirent; +int fs_readdir(const char *name,fs_dirent *dirs,int max); #endif |
