summaryrefslogtreecommitdiff
path: root/src/user/bootstrap/tar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/user/bootstrap/tar.c')
-rw-r--r--src/user/bootstrap/tar.c5
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;