int Client::preadv(int fd, const struct iovec *iov, int iovcnt, loff_t offset)
{
if (iovcnt < 0)
- return -CEPHFS_EINVAL;
+ return -EINVAL;
return _preadv_pwritev(fd, iov, iovcnt, offset, false);
}
int Client::pwritev(int fd, const struct iovec *iov, int iovcnt, int64_t offset)
{
if (iovcnt < 0)
- return -CEPHFS_EINVAL;
+ return -EINVAL;
return _preadv_pwritev(fd, iov, iovcnt, offset, true);
}
if (fh->flags & O_PATH)
return -EBADF;
#endif
- if(iovcnt < 0) {
- return -EINVAL;
- }
loff_t totallen = 0;
for (unsigned i = 0; i < iovcnt; i++) {
totallen += iov[i].iov_len;