From be9ade5ac65209277dc18f8eb9b03a55e2b9e6ad Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 25 Jul 2020 15:45:36 +0200 Subject: Added directory support --- src/inc/fs.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/inc') diff --git a/src/inc/fs.h b/src/inc/fs.h index b521ca6..775a1ce 100644 --- a/src/inc/fs.h +++ b/src/inc/fs.h @@ -8,6 +8,7 @@ #define EXT2_BOOT 0 #define EXT2_SUPER 1 +#define EXT2_ROOT 2 #define EXT2_MAGIC 0x0000EF53 struct superblock { @@ -95,7 +96,7 @@ struct file { int find_inode(const char *name, int dir_inode); struct inode *get_inode(int i); void *read_inode(struct inode *in); -void *read_file(const char *name, int dir_inode); +void *read_file(char *path); void ls_root(); // DEMO ;) #endif -- cgit v1.2.3