summaryrefslogtreecommitdiff
path: root/src/user/lib/fs
diff options
context:
space:
mode:
authordzwdz2023-08-10 00:07:35 +0200
committerdzwdz2023-08-10 00:07:35 +0200
commitfe2767219e22eda853cb1ad30c44c49afc1bed66 (patch)
tree251531bc8cef34b8d7c31d421ba3a0ba9020198c /src/user/lib/fs
parent6126525ed2ad3fb2543c43dbca6b01106af02180 (diff)
user/fs: no longer inject MOUNT_ATs by default
arguably the wrong choice from an usability standpoint, but the right choice from a performance standpoint. there's definitely a nicer way to do this
Diffstat (limited to 'src/user/lib/fs')
-rw-r--r--src/user/lib/fs/misc.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/user/lib/fs/misc.c b/src/user/lib/fs/misc.c
index 2a39e9a..a23f05f 100644
--- a/src/user/lib/fs/misc.c
+++ b/src/user/lib/fs/misc.c
@@ -154,20 +154,13 @@ hid_t ufs_wait(char *buf, size_t len, struct ufs_request *req) {
return reqh;
}
-bool mount_at_pred(const char *path) {
+bool mount_at(const char *path) {
// TODO preprocess path - simplify & ensure trailing slash
if (!fork2_n_mount(path)) {
/* child -> go into the for body */
_klogf("%s: impl", path);
- setproctitle("i'%s'", path);
+ setproctitle("%s", path);
return true;
}
-
- if (strcmp("/", path) && !fork2_n_mount("/")) {
- _klogf("%s: dir", path);
- setproctitle("d'%s'", path);
- fs_dirinject(path);
- exit(1);
- }
return false; /* continue after the for loop */
}