ext2: add ability to create files

This commit is contained in:
Michael Shaw 2023-10-23 17:03:06 -04:00
commit 19f32aef3f
7 changed files with 357 additions and 11 deletions

View file

@ -6,6 +6,8 @@
#include <kernel/block.h>
#include <kernel/gpt.h>
#include <fs/vfs.h>
#define EXT2_SUPER_MAGIC 0xEF53
#define EXT2_ROOT_INO 2
#define EXT2_SUPERBLOCK_BLOCKNO 1
@ -132,7 +134,7 @@ struct ext2_dir_entry {
uint32_t inode;
uint16_t rec_len;
uint8_t name_len;
uint8_t file_type;
ftype_t file_type;
char name[];
} PACKED;