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

Cyril Hrubis chrubis@suse.cz
Mon Nov 29 15:23:00 CET 2021


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:

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

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list