[LTP] [PATCH v2] Testing statx syscall

Cyril Hrubis chrubis@suse.cz
Thu Jul 19 14:58:50 CEST 2018


Hi!
> >> Also, since only ext4 supports these attribute flags for now, we have
> >> used
> >> that alone in our test case.
> >
> > Okay then, if it's supported only by ext4 then we should go with that
> > for now, but we should make sure that mkfs.ext4 is present and that the
> > kernel supports ext4. We do have a functions for that in the C test
> > library.
> >
> >> Also we have used script because we don't have any equivalent for
> >> tune2fs
> >> and e4crypt.
> >
> > Looking closer, the tune2fs writes some bytes to the device, indeed that
> > is something we do not want to replicate in our tests. But we can call
> > the binary easily from the C test as well.
> >
> We are unable to understand this part, Can you help us with this please??

I was just trying to say that we can execute tune2fs from the C
testacase as well. Have a look at how we use tst_run_cmd() in the
syscalls/quotactl/quotactl01.c.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list