From ecb21fa760b13cc910ed44c23fa7e301b66720c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Fri, 27 Jun 2003 03:46:27 +0000 Subject: [PATCH] Now bootstraps the pipe file system. Updated due to recursive_lock_init() change. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3684 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/core/fs/vfs.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) 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;