summaryrefslogtreecommitdiff
path: root/src/user/lib/fs
diff options
context:
space:
mode:
authordzwdz2022-09-20 23:35:33 +0200
committerdzwdz2022-09-20 23:35:33 +0200
commit3b8b63bf133e855d942abb67de931ce08b7a4452 (patch)
tree6df1767574053f61aab918d22374ef15465478ed /src/user/lib/fs
parent917833cbe99c2083895f7ca28af218270de964d1 (diff)
shared: rename ufs_request to better fit its role in userland
The old name could have suggested that it held a response to a request received by fs_wait. The new name is unfortunately very similar to the `struct vfs_request` already used internally in the kernel, but it's better at conveying that it contains a filesystem request yet to be handled. vfs_request - virtual filesystem request (a bad name in hindsight) ufs_request - user filesystem request
Diffstat (limited to 'src/user/lib/fs')
-rw-r--r--src/user/lib/fs/misc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/user/lib/fs/misc.c b/src/user/lib/fs/misc.c
index 059e1eb..3a04649 100644
--- a/src/user/lib/fs/misc.c
+++ b/src/user/lib/fs/misc.c
@@ -58,7 +58,7 @@ void fs_passthru(const char *prefix) {
if (!buf) exit(1);
for (;;) {
- struct fs_wait_response res;
+ struct ufs_request res;
handle_t reqh = _syscall_fs_wait(buf, buflen, &res);
if (reqh < 0) break;
switch (res.op) {
@@ -89,7 +89,7 @@ void fs_whitelist(const char **list) {
char *buf = malloc(buflen);
if (!buf) exit(1);
for (;;) {
- struct fs_wait_response res;
+ struct ufs_request res;
handle_t reqh = _syscall_fs_wait(buf, buflen, &res);
if (reqh < 0) break;
@@ -163,7 +163,7 @@ void fs_whitelist(const char **list) {
}
void fs_union(const char **list) {
- struct fs_wait_response res;
+ struct ufs_request res;
/* the buffer is split into two halves:
* the second one is filled out with the path by fs_wait
@@ -241,7 +241,7 @@ void fs_dir_inject(const char *path) {
if (!buf) exit(1);
for (;;) {
- struct fs_wait_response res;
+ struct ufs_request res;
handle_t reqh = _syscall_fs_wait(buf, buflen, &res);
if (reqh < 0) break;
struct fs_dir_handle *data = res.id;