diff options
author | Marvin Borner | 2020-07-25 00:12:57 +0200 |
---|---|---|
committer | Marvin Borner | 2020-07-25 00:12:57 +0200 |
commit | 16c5b566d04e6cbf63f871bd569d4636a9e90d62 (patch) | |
tree | 3cc851f5608b33f7c0f690ef319e4aa5e6c2ebda /src/inc/fs.h | |
parent | e83d78eb48eaaeca83bb21a9da4f98904eed4671 (diff) |
Added fs wrapper
Diffstat (limited to 'src/inc/fs.h')
-rw-r--r-- | src/inc/fs.h | 4 |
1 files changed, 3 insertions, 1 deletions
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 |