diff --git a/src/kernel/core/fs/vfs.c b/src/kernel/core/fs/vfs.c index 685b77921b..99836941e3 100755 --- a/src/kernel/core/fs/vfs.c +++ b/src/kernel/core/fs/vfs.c @@ -34,9 +34,7 @@ #include #include -#include -#include "rootfs.h" -#include "bootfs.h" +#include "builtin_fs.h" #include #include @@ -1737,7 +1735,7 @@ vfs_bootstrap_all_filesystems(void) // bootstrap the bootfs bootstrap_bootfs(); - sys_create_dir("/boot",0755); + sys_create_dir("/boot", 0755); err = sys_mount("/boot", NULL, "bootfs", NULL); if (err < 0) panic("error mounting bootfs\n"); @@ -1745,11 +1743,19 @@ vfs_bootstrap_all_filesystems(void) // bootstrap the devfs bootstrap_devfs(); - sys_create_dir("/dev",0755); + sys_create_dir("/dev", 0755); err = sys_mount("/dev", NULL, "devfs", NULL); if (err < 0) panic("error mounting devfs\n"); + // bootstrap the pipefs + bootstrap_pipefs(); + + sys_create_dir("/pipe", 0755); + err = sys_mount("/pipe", NULL, "pipefs", NULL); + if (err < 0) + panic("error mounting pipefs\n"); + return B_NO_ERROR; } @@ -3166,7 +3172,7 @@ fs_mount(char *path, const char *device, const char *fsName, void *args, bool ke goto err2; } - recursive_lock_create(&mount->rlock); + recursive_lock_init(&mount->rlock, "mount rlock"); mount->id = gNextMountID++; mount->unmounting = false;