[LTP] [PATCH] open_posix_testsuite/lio_listio/2-1: increase number of requests

Jan Stancek jstancek@redhat.com
Mon Nov 29 15:23:41 CET 2021


On Mon, Nov 29, 2021 at 3:21 PM Cyril Hrubis <chrubis@suse.cz> wrote:
>
> Hi!
> > >  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?
>
> Ah, it's the same file, that means that it will be just 256kB, that is
> fine. Well it would be better to unlink() the file at the end of the
> test, but regardless:

Yes, should be only 256kB.

>
> Reviewed-by: Cyril Hrubis <chrubis@suse.cz>

Thanks, pushed.

>
> --
> Cyril Hrubis
> chrubis@suse.cz
>



More information about the ltp mailing list