[LTP] [PATCH v1] Fix memcontrol tests under Tumbleweed
Cyril Hrubis
chrubis@suse.cz
Thu Oct 12 11:19:44 CEST 2023
Hi!
> These tests use `all_filesystems` in combination with
> `dev_min_size` which does not work on Tumbleweed as it results
> in:
>
> ```
> tst_test.c:1644: TINFO: === Testing on xfs ===
> tst_test.c:1099: TINFO: Formatting /dev/loop0 with xfs opts='' extra opts=''
> Filesystem must be larger than 300MB.
> …
> tst_test.c:1105: TBROK: mkfs.xfs failed with exit code 1
> ```
>
> This is likely a limitation introduced in newer kernel versions.
>
> Increasing `dev_min_size` to 300 fixes the tests. In
> `memcontrol03` and `memcontrol04` the `dev_min_size` setting
> can be dropped completely.
Shouldn't we just remove all of dev_min_size records?
We already have DEV_SIZE_MB set to 300 in lib/tst_device.c so with no
limits we will use the default 300Mb.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list