[LTP] [PATCH v5 03/10] tst_supported_fs: Print TCONF if no filesystem supported

Cyril Hrubis chrubis@suse.cz
Mon Sep 12 16:42:51 CEST 2022


Hi!
> Although this is unlikely, it can happen.
> This means 32 (TCONF) instead of 0 exit code when searching for all
> filesystems and 32 instead of 1 when searching for a particular
> filesystem.
> 
> Signed-off-by: Petr Vorel <pvorel@suse.cz>
> ---
> New in v5
> 
> NOTE:
> 
> Although this will later leads to duplicating message (see below) it's
> IMHO better because LVM scripts and zram01.sh use this helper directly.
> 
> Tests added in later commits which demonstrates TCONF:

Shouldn't we rather than this add tst_res(TCONF, "...") messages to the
lib/tst_supported_fs_types.c so that we get consistent messages between
C and shell?

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list