summaryrefslogtreecommitdiff
path: root/src/user/app/tmpfs/tmpfs.c
diff options
context:
space:
mode:
authordzwdz2022-09-20 23:35:33 +0200
committerdzwdz2022-09-20 23:35:33 +0200
commit3b8b63bf133e855d942abb67de931ce08b7a4452 (patch)
tree6df1767574053f61aab918d22374ef15465478ed /src/user/app/tmpfs/tmpfs.c
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/app/tmpfs/tmpfs.c')
-rw-r--r--src/user/app/tmpfs/tmpfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/user/app/tmpfs/tmpfs.c b/src/user/app/tmpfs/tmpfs.c
index 0d3fe36..7614d92 100644
--- a/src/user/app/tmpfs/tmpfs.c
+++ b/src/user/app/tmpfs/tmpfs.c
@@ -37,7 +37,7 @@ static struct node *lookup(struct node *parent, const char *path, size_t len) {
return NULL;
}
-static struct node *tmpfs_open(const char *path, struct fs_wait_response *res) {
+static struct node *tmpfs_open(const char *path, struct ufs_request *res) {
/* *path is not null terminated! */
struct node *node = &special_root;
if (res->len == 0) return NULL;
@@ -103,7 +103,7 @@ static long remove_node(struct node *node) {
int main(void) {
const size_t buflen = 4096;
char *buf = malloc(buflen);
- struct fs_wait_response res;
+ struct ufs_request res;
struct node *ptr;
while (!c0_fs_wait(buf, buflen, &res)) {
switch (res.op) {