summaryrefslogtreecommitdiff
path: root/src/init/fs/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/init/fs/misc.c')
-rw-r--r--src/init/fs/misc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/init/fs/misc.c b/src/init/fs/misc.c
index a8d9517..55d14fa 100644
--- a/src/init/fs/misc.c
+++ b/src/init/fs/misc.c
@@ -1,7 +1,15 @@
+#include <init/fs/misc.h>
#include <init/stdlib.h>
#include <shared/flags.h>
+#include <shared/mem.h>
#include <shared/syscalls.h>
+bool fork2_n_mount(const char *path) {
+ handle_t h = _syscall_fs_fork2();
+ if (h) _syscall_mount(h, path, strlen(path));
+ return h;
+}
+
void fs_passthru(void) {
struct fs_wait_response res;
int buf_size = 64;