From: James Simmons Date: Tue, 9 Oct 2012 14:36:12 +0000 (-0400) Subject: LU-2123 tests: sanity 57 and 129 can't detect fstype X-Git-Tag: 2.3.54~43 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=da96484610ce5215a31ce06f0da9b24ed6ad4f55 LU-2123 tests: sanity 57 and 129 can't detect fstype In sanity test 57a,57b and 129 the function facet_type_fstype is used to determine the file system backend. This function does not actually exist so this test never run for the ldiskfs case. The fix is to use the proper function which is facet_fstype. Signed-off-by: James Simmons Change-Id: Ia9766a3a2200c6ce2d48ff0265eb73a4d71c06e7 Reviewed-on: http://review.whamcloud.com/4230 Tested-by: Hudson Reviewed-by: Andreas Dilger Reviewed-by: Li Wei Tested-by: Maloo Reviewed-by: Yu Jian --- diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 27970e0..d38300b 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -4012,7 +4012,7 @@ run_test 56w "check lfs_migrate -c stripe_count works" test_57a() { # note test will not do anything if MDS is not local - if [ "$(facet_type_fstype MDS)" != ldiskfs ]; then + if [ "$(facet_fstype $SINGLEMDS)" != ldiskfs ]; then skip "Only applicable to ldiskfs-based MDTs" return fi @@ -4032,7 +4032,7 @@ test_57a() { run_test 57a "verify MDS filesystem created with large inodes ==" test_57b() { - if [ "$(facet_type_fstype MDS)" != ldiskfs ]; then + if [ "$(facet_fstype $SINGLEMDS)" != ldiskfs ]; then skip "Only applicable to ldiskfs-based MDTs" return fi @@ -7093,7 +7093,7 @@ set_dir_limits () { done } test_129() { - if [ "$(facet_type_fstype MDS)" != ldiskfs ]; then + if [ "$(facet_fstype $SINGLEMDS)" != ldiskfs ]; then skip "Only applicable to ldiskfs-based MDTs" return fi