[LTP] [PATCH v2 2/2] zram/zram_lib.sh: Apply tst_supported_fs for shell

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


Hi!
>  		# if requested fs not supported default it to ext2
> -		which mkfs.$fs > /dev/null 2>&1 || fs=ext2
> +		tst_supported_fs $fs > /dev/null 2>&1
> +		[ $? -eq 0 ] && fs=ext2

Should just:

	tst_supported_fs $fs || fs=ext2

suffice here?

(assuming that tst_supported_fs returns 0 on success)

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list