[LTP] [PATCH v4] lib: LTP_SINGLE_FS_TYPE and LTP_FORCE_SINGLE_FS_TYPE
Li Wang
liwang@redhat.com
Tue May 27 11:38:29 CEST 2025
On Tue, May 27, 2025 at 5:31 PM Cyril Hrubis <chrubis@suse.cz> wrote:
>
> 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.
It should be fine by now.
--
Regards,
Li Wang
More information about the ltp
mailing list