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

Petr Vorel pvorel@suse.cz
Tue Dec 14 17:39:07 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.

Kind regards,
Petr

[1] https://lore.kernel.org/ltp/20211213121417.21825-1-andrea.cervesato@suse.com/



More information about the ltp mailing list