[LTP] [PATCH V2 02/10] lapi/fsmount.h: Add fsopen_supported_by_kernel()

Petr Vorel pvorel@suse.cz
Thu Feb 20 09:01:55 CET 2020


Hi Viresh,

...
> +++ b/include/lapi/fsmount.h
...
> +void fsopen_supported_by_kernel(void)
> +{
> +	if ((tst_kvercmp(5, 2, 0)) < 0) {
> +		/* Check if the syscall is backported on an older kernel */
> +		TEST(syscall(__NR_fsopen, NULL, 0));
> +		if (TST_RET == -1 && TST_ERR == ENOSYS)
> +			tst_brk(TCONF, "Test not supporter on kernel version < v5.2");
typo supporter => supported.

Reviewed-by: Petr Vorel <pvorel@suse.cz>

Kind regards,
Petr


More information about the ltp mailing list