[LTP] [PATCH] open_posix_testsuite/lio_listio/2-1: increase number of requests
Cyril Hrubis
chrubis@suse.cz
Mon Nov 29 15:15:35 CET 2021
Hi!
> -#define NUM_AIOCBS 10
> +#define NUM_AIOCBS 256
> #define BUF_SIZE 1024
>
> static volatile int received_selected;
> @@ -98,7 +98,7 @@ int main(void)
> memset(aiocbs[i], 0, sizeof(struct aiocb));
>
> aiocbs[i]->aio_fildes = fd;
> - aiocbs[i]->aio_offset = 0;
> + aiocbs[i]->aio_offset = i * BUF_SIZE;
The only concern I have is that if the filesystem does not support
sparse files this will eat up 256MB right?
> aiocbs[i]->aio_buf = &bufs[i * BUF_SIZE];
> aiocbs[i]->aio_nbytes = BUF_SIZE;
> aiocbs[i]->aio_lio_opcode = LIO_WRITE;
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list