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
This commit is contained in:
Axel Dörfler
2003-06-27 03:46:27 +00:00
parent 5843ebfbda
commit ecb21fa760
+10 -4
View File
@@ -34,9 +34,7 @@
#include <StorageDefs.h> #include <StorageDefs.h>
#include <fs_info.h> #include <fs_info.h>
#include <devfs.h> #include "builtin_fs.h"
#include "rootfs.h"
#include "bootfs.h"
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>
@@ -1750,6 +1748,14 @@ vfs_bootstrap_all_filesystems(void)
if (err < 0) if (err < 0)
panic("error mounting devfs\n"); 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; return B_NO_ERROR;
} }
@@ -3166,7 +3172,7 @@ fs_mount(char *path, const char *device, const char *fsName, void *args, bool ke
goto err2; goto err2;
} }
recursive_lock_create(&mount->rlock); recursive_lock_init(&mount->rlock, "mount rlock");
mount->id = gNextMountID++; mount->id = gNextMountID++;
mount->unmounting = false; mount->unmounting = false;