summaryrefslogtreecommitdiff
path: root/fs/ext2.c
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2023-10-23 22:13:19 +0200
committerAnton Kling <anton@kling.gg>2023-10-23 23:36:34 +0200
commite05d72ba8f09866b768f3da7776b807072ed7b9b (patch)
treedc9a1ec45802df7c74ddc9fdd78436b23122e44a /fs/ext2.c
parent6458875860cde6421a06031702788d9969e0a5db (diff)
VFS/libc: Create a syscall for mkdir and add the function to libc
Diffstat (limited to 'fs/ext2.c')
-rw-r--r--fs/ext2.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/ext2.c b/fs/ext2.c
index a0caaa5..51bb13a 100644
--- a/fs/ext2.c
+++ b/fs/ext2.c
@@ -504,7 +504,8 @@ vfs_inode_t *ext2_open(const char *path) {
return vfs_create_inode(inode_num, type, 1 /*has_data*/, 1 /*can_write*/,
1 /*is_open*/, NULL /*internal_object*/, file_size,
ext2_open, ext2_create_file, ext2_read, ext2_write,
- ext2_close, NULL /*get_vm_object*/);
+ ext2_close, ext2_create_directory,
+ NULL /*get_vm_object*/);
}
uint64_t end_of_last_entry_position(int dir_inode, uint64_t *entry_offset,
@@ -697,6 +698,7 @@ vfs_inode_t *ext2_mount(void) {
root->write = ext2_write;
root->close = ext2_close;
root->create_file = ext2_create_file;
+ root->create_directory = ext2_create_directory;
parse_superblock();
return root;
}