From: Parinay Kondekar Date: Wed, 6 Apr 2016 04:43:45 +0000 (+0530) Subject: LU-7323 test: Unknown symbol mb_cache_create (err 0)" on RHEL7 X-Git-Tag: 2.8.53~67 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=0a338970c2c73e14cc9be65d360de85be28ca488 LU-7323 test: Unknown symbol mb_cache_create (err 0)" on RHEL7 The error message is seen if mbcache module isn't loaded. Before RHEL7 it was part of ext4, but EL7 have mbcache as separate module and needs an extra `modprobe mbcache` command before tests are run from local build dir. This fixes the function load_modules_local() in test-framework.sh Seagate-bug-id: MRP-3018 Change-Id: I7f1317355785c191287788bcb177d78b12231c97 Signed-off-by: Alexey Lyashkov Signed-off-by: Parinay Kondekar Reviewed-on: http://review.whamcloud.com/16900 Reviewed-by: Andreas Dilger Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Christopher J. Morrone Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index 7a9cb6b..b7ef7f4 100755 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -569,13 +569,15 @@ load_modules_local() { load_module lov/lov load_module mgc/mgc load_module obdecho/obdecho - if ! client_only; then - SYMLIST=/proc/kallsyms - grep -q crc16 $SYMLIST || { modprobe crc16 2>/dev/null || true; } - grep -q -w jbd $SYMLIST || { modprobe jbd 2>/dev/null || true; } - grep -q -w jbd2 $SYMLIST || { modprobe jbd2 2>/dev/null || true; } + if ! client_only; then + SYMLIST=/proc/kallsyms + grep -q crc16 $SYMLIST || + { modprobe crc16 2>/dev/null || true; } + grep -q -w jbd2 $SYMLIST || + { modprobe jbd2 2>/dev/null || true; } load_module lfsck/lfsck - [ "$LQUOTA" != "no" ] && load_module quota/lquota $LQUOTAOPTS + [ "$LQUOTA" != "no" ] && + load_module quota/lquota $LQUOTAOPTS if [[ $(node_fstypes $HOSTNAME) == *zfs* ]]; then modprobe zfs load_module osd-zfs/osd_zfs @@ -583,6 +585,8 @@ load_modules_local() { if [[ $(node_fstypes $HOSTNAME) == *ldiskfs* ]]; then grep -q exportfs_decode_fh $SYMLIST || { modprobe exportfs 2> /dev/null || true; } + grep -q -w mbcache $SYMLIST || + { modprobe mbcache 2>/dev/null || true; } load_module ../ldiskfs/ldiskfs load_module osd-ldiskfs/osd_ldiskfs fi @@ -594,7 +598,7 @@ load_modules_local() { load_module osp/osp load_module ofd/ofd load_module osp/osp - fi + fi load_module llite/lustre llite_lloop_enabled && load_module llite/llite_lloop