diff options
author | dzwdz | 2022-09-20 23:28:06 +0200 |
---|---|---|
committer | dzwdz | 2022-09-20 23:28:06 +0200 |
commit | 917833cbe99c2083895f7ca28af218270de964d1 (patch) | |
tree | d70bbc7a6c115ed1931f7bab3ca4515b0f8a139b /src/user/lib/fs/misc.c | |
parent | 76bc59944ad60157670927b89425246e249efe5f (diff) |
user: s/fs_delegate/forward_open
Diffstat (limited to 'src/user/lib/fs/misc.c')
-rw-r--r-- | src/user/lib/fs/misc.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; |