[LTP] [PATCH 1/2] syscalls/quotactl02.c: add Q_XGETNEXTQUOTA flag test

Cyril Hrubis chrubis@suse.cz
Tue Apr 11 16:30:50 CEST 2017


Hi!
> +# ifdef Q_XGETNEXTQUOTA
> +	{QCMD(Q_XSETQLIM, USRQUOTA), &set_dquota, check_qlim, Q_XGETNEXTQUOTA,
> +	"set and use Q_XGETNEXTQUOTA to get xfs disk quota limits"},
> +# endif

Can we, rather than this ifdef, define a fallback definition for the
flag (ideally in an header in lapi) and handle possible EINVAL as TCONF
in case that we run on an older kernel?

Otherwise it looks good.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list