Commit cc19b037 authored by Marc Vef's avatar Marc Vef
Browse files

Merge branch '82-pwritev-operation' into 'master'

Resolve "pwritev: Operation not supported"

Closes #82

See merge request hpc/gekkofs!34

Signed-off: Marc Vef
parents a6bbdbb5 53e93964
Loading
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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(gkfs::syscall::gkfs_pwritev(fd, iov, iovcnt, pos_l));
    }
    return syscall_no_intercept(SYS_pwritev, fd, iov, iovcnt);
}