This patch adds 4 new syscalls that map one-to-one to the four functions listed in the title above. These are required to run SeaweedFS on OSv.
Refs #1188 Signed-off-by: Waldemar Kozaczuk <[email protected]> --- linux.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/linux.cc b/linux.cc index d3823d00..c9b6b7b6 100644 --- a/linux.cc +++ b/linux.cc @@ -38,6 +38,7 @@ #include <sys/file.h> #include <sys/unistd.h> #include <sys/random.h> +#include <sys/vfs.h> #include <unordered_map> @@ -490,6 +491,10 @@ OSV_LIBC_API long syscall(long number, ...) #endif SYSCALL3(mkdirat, int, char*, mode_t); SYSCALL3(tgkill, int, int, int); + SYSCALL0(getgid); + SYSCALL0(getuid); + SYSCALL3(lseek, int, off_t, int); + SYSCALL2(statfs, const char *, struct statfs *); } debug_always("syscall(): unimplemented system call %d\n", number); -- 2.34.1 -- You received this message because you are subscribed to the Google Groups "OSv Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/osv-dev/20220516164321.130748-1-jwkozaczuk%40gmail.com.
