diff options
author | Marvin Borner | 2020-04-25 15:31:09 +0200 |
---|---|---|
committer | Marvin Borner | 2020-04-25 15:31:09 +0200 |
commit | 30601e14f216488ee3a36dc44ab0ed56da7ccdb2 (patch) | |
tree | 3bef128513ce569b64788853d688179ac7562096 /src/kernel/fs/ext2.h | |
parent | 24175ce2a37d6f5d9ba367f942fabce681ee9e4a (diff) |
Working ext2 filereader
As soon as I implement indirect block pointers, the resources will
hopefully work again :)
Diffstat (limited to 'src/kernel/fs/ext2.h')
-rw-r--r-- | src/kernel/fs/ext2.h | 6 |
1 files changed, 4 insertions, 2 deletions
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 |