[LTP] [PATCH] tst_supported_fs: Implement checking paths against skiplist

Petr Vorel pvorel@suse.cz
Fri Sep 23 12:00:16 CEST 2022


Hi all,

> Implement tst_supported_fs feature suggested by pvorel in his patch:
> tst_test.sh: Fix filesystem support detection
FYI there is still be need to detect filesystem in particular directory in
ima_setup.sh [1] to avoid df dependency:

if [ "$(df -T $TMPDIR | tail -1 | awk '{print $2}')" != "tmpfs" -a -n "$TST_NEEDS_DEVICE" ]; then
	unset TST_NEEDS_DEVICE
fi

But I guess I'll just reuse the exit code of: ./tst_supported_fs -d $TMPDIR -s "tmpfs"

Kind regards,
Petr

[1] https://github.com/linux-test-project/ltp/blob/74e4a5c6fb42a1231c149c57efbca345aa93777d/testcases/kernel/security/integrity/ima/tests/ima_setup.sh#L355

> Although the tst_fs_type_name() functions could use some improvements,
> e.g. ext4 must be specified in skiplist as "ext2/ext3/ext4" to get properly
> skipped and vfat is missing from the list of known filesystems.



More information about the ltp mailing list