aboutsummaryrefslogtreecommitdiff
path: root/src/inc
diff options
context:
space:
mode:
authorMarvin Borner2020-07-25 15:45:36 +0200
committerMarvin Borner2020-07-25 15:45:36 +0200
commitbe9ade5ac65209277dc18f8eb9b03a55e2b9e6ad (patch)
tree0c50fa74e449a9f1acb95a9011bb79ffd07106b5 /src/inc
parentba7ed9c4b1137ad76e60a117e061bd3da1be1f61 (diff)
Added directory support
Diffstat (limited to 'src/inc')
-rw-r--r--src/inc/fs.h3
1 files changed, 2 insertions, 1 deletions
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