diff options
author | dzwdz | 2022-08-05 15:54:32 +0200 |
---|---|---|
committer | dzwdz | 2022-08-05 15:54:32 +0200 |
commit | 99e15199ef24d4f262683b47a529f1b239c4dcd9 (patch) | |
tree | 7d4514964c91fc1c46da39cb830fdec165166730 /src/user/bootstrap | |
parent | 0f3c70649a3d8035b0c0f9658705505948b2c60a (diff) |
add _syscall_getsize
Diffstat (limited to 'src/user/bootstrap')
-rw-r--r-- | src/user/bootstrap/tar.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/user/bootstrap/tar.c b/src/user/bootstrap/tar.c index 150a993..0356987 100644 --- a/src/user/bootstrap/tar.c +++ b/src/user/bootstrap/tar.c @@ -33,6 +33,11 @@ void tar_driver(void *base) { tar_read(&res, base, ~0); break; + case VFSOP_GETSIZE: + // TODO works weirdly on directories / the root dir + _syscall_fs_respond(NULL, tar_size(res.id), 0); + break; + default: _syscall_fs_respond(NULL, -1, 0); // unsupported break; |