From 99e15199ef24d4f262683b47a529f1b239c4dcd9 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Fri, 5 Aug 2022 15:54:32 +0200 Subject: add _syscall_getsize --- src/user/bootstrap/tar.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/user/bootstrap/tar.c') 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; -- cgit v1.2.3