summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/ext2.c4
-rw-r--r--fs/ext2.h3
2 files changed, 5 insertions, 2 deletions
diff --git a/fs/ext2.c b/fs/ext2.c
index 55322dd..a530ce6 100644
--- a/fs/ext2.c
+++ b/fs/ext2.c
@@ -4,10 +4,12 @@
#define FOOLOS_MODULE_NAME "ext2"
#include <stdbool.h>
+#include <stdint.h>
-#include "lib/int/stdint.h"
+#include "lib/string/string.h"
#include "lib/logger/log.h"
#include "fs.h"
+#include "ext2.h"
typedef struct ext2_superblock_struct
{
diff --git a/fs/ext2.h b/fs/ext2.h
index a5f46b3..1307347 100644
--- a/fs/ext2.h
+++ b/fs/ext2.h
@@ -1,5 +1,6 @@
-#include "lib/int/stdint.h"
+#include <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);
+int ext2_filename_to_inode(uint8_t *ram, char *path);