[LTP] [PATCH v2] statmount.h: add check for STATMOUNT_MNT_NS_ID
Andrea Cervesato
andrea.cervesato@suse.com
Fri Sep 26 10:13:24 CEST 2025
On 9/26/25 10:04 AM, Cyril Hrubis wrote:
> This has to be unfortunately there because the field is present if we
> are using lapi fallback or if we have new enough system headers. So
> either we open code the ifdefs in the test, or define the macro like
> this.
Why not just using "#if!defined(HAVE_STRUCT_STATMOUNT) ||
defined(HAVE_STRUCT_STATMOUNT_MNT_NS_ID)" inside the statmount09 test
then? These LTP_HAVE_* wrappers are a bit weird because they are mixing
with internal LTP macros, also considering the fact we are not testing
"struct statmount.mnt_ns_id" anywhere else but in statmount09.
--
Andrea Cervesato
andrea.cervesato@suse.com
More information about the ltp
mailing list