]> www.infradead.org Git - mtd-utils.git/commitdiff
ubi-tests: fm_param: Replace 'fm_auto' with 'fm_autoconvert'
authorZhihao Cheng <chengzhihao1@huawei.com>
Fri, 14 Jun 2019 12:19:50 +0000 (20:19 +0800)
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Sun, 16 Jun 2019 10:27:18 +0000 (12:27 +0200)
The value of fm_param should be 'fm_autoconvert' rather than 'fm_auto' when
fastmap is supported by kernel. Currently, following verbose will appear in
dmesg when fm_param is set to 'fm_auto':

  ubi: unknown parameter 'fm_auto' ignored

This patch replace 'fm_auto' with 'fm_autoconvert' for fm_param, so ubi
kernel module can receive correct parameters.

----------------------------------------

Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
tests/ubi-tests/ubi-stress-test.sh.in

index 42ccec52dfff111b0e470b2058046141cb3fbd60..657ef4b229adb5ec038876469095ff2f3187f892 100755 (executable)
@@ -117,7 +117,7 @@ run_test()
                fm_param=
        elif [ "$fm_supported" = "yes" ]; then
                fastmap="disabled"
-               fm_param="fm_auto"
+               fm_param="fm_autoconvert"
        else
                echo "Fastmap is not supported, skip"
                return 0