From fecb3db77a39425360a00a6dd927bad4c4bfb56e Mon Sep 17 00:00:00 2001 From: Jean Luca Bez Date: Fri, 28 Feb 2020 13:56:53 +0100 Subject: [PATCH 1/2] This fixes #82 by adding support to pwritev operations --- src/client/hooks.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/client/hooks.cpp b/src/client/hooks.cpp index dbe2b8655..54408e5d7 100644 --- a/src/client/hooks.cpp +++ b/src/client/hooks.cpp @@ -219,8 +219,7 @@ int hook_pwritev(unsigned long fd, const struct iovec* iov, unsigned long iovcnt __func__, fd, fmt::ptr(iov), iovcnt, pos_l, pos_h); if (CTX->file_map()->exist(fd)) { - LOG(WARNING, "{}() Not supported", __func__); - return -ENOTSUP; + return with_errno(adafs_pwritev(fd, iov, iovcnt, pos_l)); } return syscall_no_intercept(SYS_pwritev, fd, iov, iovcnt); } -- GitLab From a958ac2dc7651b5c6304201a9ee789e8a777b322 Mon Sep 17 00:00:00 2001 From: Jean Luca Bez Date: Fri, 28 Feb 2020 14:29:25 +0100 Subject: [PATCH 2/2] rename to new standard --- src/client/hooks.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/hooks.cpp b/src/client/hooks.cpp index 54408e5d7..dc5db1377 100644 --- a/src/client/hooks.cpp +++ b/src/client/hooks.cpp @@ -219,7 +219,7 @@ int hook_pwritev(unsigned long fd, const struct iovec* iov, unsigned long iovcnt __func__, fd, fmt::ptr(iov), iovcnt, pos_l, pos_h); if (CTX->file_map()->exist(fd)) { - return with_errno(adafs_pwritev(fd, iov, iovcnt, pos_l)); + return with_errno(gkfs::syscall::gkfs_pwritev(fd, iov, iovcnt, pos_l)); } return syscall_no_intercept(SYS_pwritev, fd, iov, iovcnt); } -- GitLab