diff options
author | dzwdz | 2022-09-20 23:35:33 +0200 |
---|---|---|
committer | dzwdz | 2022-09-20 23:35:33 +0200 |
commit | 3b8b63bf133e855d942abb67de931ce08b7a4452 (patch) | |
tree | 6df1767574053f61aab918d22374ef15465478ed /src/user/bootstrap | |
parent | 917833cbe99c2083895f7ca28af218270de964d1 (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/bootstrap')
-rw-r--r-- | src/user/bootstrap/tar.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/user/bootstrap/tar.c b/src/user/bootstrap/tar.c index 752c86e..2968995 100644 --- a/src/user/bootstrap/tar.c +++ b/src/user/bootstrap/tar.c @@ -14,7 +14,7 @@ static void *tar_open(const char *path, int len, void *base, size_t base_len); static char tar_type(void *meta); static void tar_dirbuild(struct dirbuild *db, const char *meta, void *base, size_t base_len); -static void tar_read(struct fs_wait_response *res, void *base, size_t base_len); +static void tar_read(struct ufs_request *res, void *base, size_t base_len); static int tar_size(void *sector); static int oct_parse(char *str, size_t len); @@ -24,7 +24,7 @@ static const char *root_fakemeta = ""; /* see comment in tar_open */ void tar_driver(void *base) { static char buf[BUF_SIZE]; - struct fs_wait_response res; + struct ufs_request res; void *ptr; while (!c0_fs_wait(buf, BUF_SIZE, &res)) { switch (res.op) { @@ -99,7 +99,7 @@ static void tar_dirbuild(struct dirbuild *db, const char *meta, void *base, size } } -static void tar_read(struct fs_wait_response *res, void *base, size_t base_len) { +static void tar_read(struct ufs_request *res, void *base, size_t base_len) { void *meta = (void*)res->id; static char buf[BUF_SIZE]; // TODO reuse a single buffer for both tar_driver and tar_read |