[LTP] [PATCH v2 1/2] lib: Factor out is_supported() && Add tst_supported_fs for shell

Cyril Hrubis chrubis@suse.cz
Thu Jul 19 14:27:37 CEST 2018


Hi!
> +	printf("Usage: tst_supported_fs [fs_type]\n");
> +	printf("   If a specified fs_type is supported, return 1\n");
> +	printf("   If a specified fs_type isn't supported, return 0\n");

Also this is a bit confusing since in shell 0 == true, hence it would be
a bit better to return !tst_fs_is_supported(argv[1]);

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list