From 16c5b566d04e6cbf63f871bd569d4636a9e90d62 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 25 Jul 2020 00:12:57 +0200 Subject: Added fs wrapper --- src/inc/fs.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/inc') diff --git a/src/inc/fs.h b/src/inc/fs.h index 222939b..b521ca6 100644 --- a/src/inc/fs.h +++ b/src/inc/fs.h @@ -73,6 +73,7 @@ struct inode { u32 fragment_addr; u8 os_specific_val2[12]; }; + #define INODE_SIZE (sizeof(struct inode)) struct dirent { @@ -93,7 +94,8 @@ struct file { int find_inode(const char *name, int dir_inode); struct inode *get_inode(int i); -void *read_file(struct inode *in); +void *read_inode(struct inode *in); +void *read_file(const char *name, int dir_inode); void ls_root(); // DEMO ;) #endif -- cgit v1.2.3