From 30601e14f216488ee3a36dc44ab0ed56da7ccdb2 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 25 Apr 2020 15:31:09 +0200 Subject: Working ext2 filereader As soon as I implement indirect block pointers, the resources will hopefully work again :) --- src/kernel/fs/ext2.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/kernel/fs/ext2.h') diff --git a/src/kernel/fs/ext2.h b/src/kernel/fs/ext2.h index f9c977c..7fbe493 100644 --- a/src/kernel/fs/ext2.h +++ b/src/kernel/fs/ext2.h @@ -33,12 +33,12 @@ struct ext2_superblock { uint16_t mounts_since_fsck; uint16_t max_mounts_since_fsck; uint16_t signature; - uint16_t state; + uint16_t state; // 1 clean; 2 errors uint16_t error_action; uint16_t minor_version; uint32_t last_fsck_time; uint32_t max_time_since_fsck; - uint32_t creator_OS_id; + uint32_t creator_os_id; uint32_t major_version; uint16_t res_block_uid; uint16_t res_block_gid; @@ -137,4 +137,6 @@ bool ext2_next_dirent(struct ext2_file *file, struct ext2_dirent *dir); uint32_t ext2_find_in_dir(uint32_t dir_inode, const char *name); uint32_t ext2_look_up_path(char *path); +uint8_t *read_file(char *path); + #endif -- cgit v1.2.3