vfs: add follow_path function

This commit is contained in:
2025-09-23 19:38:14 +03:00
parent 1fb777adb0
commit f697fab390
4 changed files with 85 additions and 3 deletions
+14
View File
@@ -131,6 +131,20 @@ void kmain(unsigned int magic, unsigned int info)
mount_fs();
l9660_dir* dir = (l9660_dir*)malloc(sizeof(l9660_dir));
l9660_file* file = (l9660_file*)malloc(sizeof(l9660_file));
follow_path("/bin/bash.", file, dir);
//////////////
l9660_seek(file, L9660_SEEK_END, 0);
uint32_t file_size = l9660_tell(file);
debug_log("file_size: %X\n", file_size);
l9660_seek(file, L9660_SEEK_SET, 0);
free(file);
free(dir);
//////////////
exec_from_file("caller.", ".");
while(1)