Whamcloud - gitweb
LU-409: only load llite_lloop module if kernel < 2.6.32 or LOAD_LLOOP
authorRichard Henwood <rhenwood@whamcloud.com>
Wed, 22 Jun 2011 02:38:28 +0000 (22:38 -0400)
committerOleg Drokin <green@whamcloud.com>
Wed, 22 Jun 2011 15:38:49 +0000 (08:38 -0700)
commitff9f95abb13642fd2a1a183e2f92f390ffdbb1ae
tree346fb62d49208c01464d36b6a433118494a59709
parent67cc8e60d123e1c23580c61212087c07a3dfd59f
LU-409: only load llite_lloop module if kernel < 2.6.32 or LOAD_LLOOP

The change of block device interface in kernel 2.6.32-131 caused
the llite_lloop module to fail. llite_lloop module is currently
unsupported. This change introduces a test for kernel version
to prohibit loading a module with a kernel >= 2.6.32. A LOAD_LLOOP
flag (default false) is provided to ignore the kernel test and force
loading of llite_lloop if desired.

A related version of this change for b1_8 is:
http://review.whamcloud.com/954

Change-Id: I63ebc7a8e0a8de6d34ffce5fd625df6db7216d32
Signed-off-by: Richard Henwood <rhenwood@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/956
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Yang Sheng <ys@whamcloud.com>
Tested-by: Hudson
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/test-framework.sh