diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/user/app/login/login.c | 2 | ||||
-rw-r--r-- | src/user/lib/fs/misc.c | 8 | ||||
-rw-r--r-- | src/user/lib/fs/misc.h | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/user/app/login/login.c b/src/user/app/login/login.c index 13b5235..70de5b3 100644 --- a/src/user/app/login/login.c +++ b/src/user/app/login/login.c @@ -47,7 +47,7 @@ static void drv(const char *user) { } buf[res.len] = '\0'; - // TODO use fs_delegate + // TODO use forward_open if (segcmp(buf, 1, "Users") && segcmp(buf, 2, user)) { // allow full rw access to /Users/$user/** diff --git a/src/user/lib/fs/misc.c b/src/user/lib/fs/misc.c index c86ec64..059e1eb 100644 --- a/src/user/lib/fs/misc.c +++ b/src/user/lib/fs/misc.c @@ -35,7 +35,7 @@ static int dir_seglen(const char *path) { return len; } -void fs_delegate(handle_t reqh, const char *path, long len, int flags) { +void forward_open(handle_t reqh, const char *path, long len, int flags) { // TODO use threads // TODO solve for more complex cases, e.g. fs_union /* done in a separate thread/process because open() can block, @@ -73,7 +73,7 @@ void fs_passthru(const char *prefix) { memcpy(buf, prefix, prefix_len); res.len += prefix_len; } - fs_delegate(reqh, buf, res.len, res.flags); + forward_open(reqh, buf, res.len, res.flags); break; default: @@ -123,7 +123,7 @@ void fs_whitelist(const char **list) { } } if (passthru) { - fs_delegate(reqh, buf, res.len, res.flags); + forward_open(reqh, buf, res.len, res.flags); } else if (inject) { // TODO all the inject points could be precomputed ipath = malloc(res.len + 1); @@ -258,7 +258,7 @@ void fs_dir_inject(const char *path) { data->inject_len = dir_seglen(data->inject); _syscall_fs_respond(reqh, data, 0, 0); } else { - fs_delegate(reqh, buf, res.len, res.flags); + forward_open(reqh, buf, res.len, res.flags); } break; diff --git a/src/user/lib/fs/misc.h b/src/user/lib/fs/misc.h index 87e1be2..d90100d 100644 --- a/src/user/lib/fs/misc.h +++ b/src/user/lib/fs/misc.h @@ -4,7 +4,7 @@ bool fork2_n_mount(const char *path); -void fs_delegate(handle_t reqh, const char *path, long len, int flags); +void forward_open(handle_t reqh, const char *path, long len, int flags); void fs_passthru(const char *prefix); void fs_whitelist(const char **list); |