Kernel: Make readdir() available in created InitRD directories

This commit is contained in:
apio 2022-11-12 18:11:58 +01:00
parent bde9a97db5
commit 511bb7a8c1

View File

@ -226,6 +226,7 @@ int initrd_mkdir(VFS::Node* node, const char* name, mode_t mode) // FIXME: Retur
new_node.inode = inode;
new_node.find_func = initrd_scan_dir;
new_node.mkdir_func = initrd_mkdir;
new_node.readdir_func = initrd_read_dir;
new_node.length = 0;
new_node.type = VFS_DIRECTORY;
new_node.mode = mode;