On Thu, Mar 29, 2018 at 07:09:10PM +0800, Fam Zheng wrote: > +static ssize_t handle_aiocb_copy_range(RawPosixAIOData *aiocb) > +{ > +#ifndef HAS_COPY_FILE_RANGE > + return -ENOTSUP; > +#else > + uint64_t bytes = aiocb->aio_nbytes; > + off_t in_off = aiocb->aio_offset; > + off_t out_off = aiocb->offset2; > + > + while (bytes) { > + ssize_t ret = copy_file_range(aiocb->aio_fildes, &in_off, > + aiocb->fd2, &out_off, > + bytes, 0); > + if (ret < 0) { > + return -errno; > + }
EINTR should retry.
signature.asc
Description: PGP signature