[LTP] [PATCH v4] Refactoring dio_append.c using LTP API

Cyril Hrubis chrubis@suse.cz
Wed Dec 15 12:35:16 CET 2021


Hi!
> > > I wonder what I'm missing:
> > > ./dio_append
> > > tst_test.c:1409: TINFO: Timeout per run is 0h 05m 00s
> > > dio_append.c:69: TINFO: Parent append to file
> > > common.h:45: TBROK: open(dio_append,16449,0666) failed: EINVAL (22)
> 
> > That's an O_DIRECT open() EINVAL probably means that O_DIRECT is not
> > supported. Is your /tmp/ on tmpfs?
> Yes. As we cannot use SAFE_OPEN() in io_read_eof() [1], there should be check
> for errno I guess.

Maybe it would be a bit cleaner to add a check that would attempt to
open a dummy file in the test setup and exit the O_DIRECT tests before
they attempt to fork children...

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list