[LTP] [PATCH v4] lib: LTP_SINGLE_FS_TYPE and LTP_FORCE_SINGLE_FS_TYPE

Cyril Hrubis chrubis@suse.cz
Tue May 27 11:42:23 CEST 2025


Hi!
> > > One more thing I'm a bit hesitant about, do we need to explicitly set
> > > fs_types[1] to NULL here?
> >
> > It's a static variable so the whole array is initialized to NULL by the
> > compiler.
> 
> True, unless the function  tst_get_supported_fs_types() is being called
> many times (which could change the fs_types contents), but so far I
> find it only been used once in tst_test.c.

Indeed, it's a function that's used only from within the tst_test.c and
not supposed to be used in tests.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list