aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndi Kleen <ak@linux.intel.com>2009-12-08 15:54:35 +0100
committerAndi Kleen <ak@linux.intel.com>2009-12-08 15:54:35 +0100
commit3d35af8b3ea31539ce1c21664c54c024dd00a301 (patch)
tree8eaeec7e4d2fc835eb07cff4c3d667efcc6a1f7e
parentc9868533d95e1181456d955dabab43cddb311532 (diff)
downloadmce-test-3d35af8b3ea31539ce1c21664c54c024dd00a301.tar.gz
Enable hwpoison filter if needed
This is to handle kernel where the filter defaults to off. Signed-off-by: Andi Kleen <ak@linux.intel.com>
-rwxr-xr-xstress/hwpoison.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/stress/hwpoison.sh b/stress/hwpoison.sh
index aa23ba6..7836b60 100755
--- a/stress/hwpoison.sh
+++ b/stress/hwpoison.sh
@@ -165,6 +165,8 @@ setup_errinj()
if [ $g_madvise -eq 1 ]; then
[ -f "$debugfs/hwpoison/corrupt-filter-enable" ] && echo 0 > $debugfs/hwpoison/corrupt-filter-enable
return
+ else
+ [ -f "$debugfs/hwpoison/corrupt-filter-enable" ] && echo 1 > $debugfs/hwpoison/corrupt-filter-enable
fi
if [ $g_netfs -eq 0 ]; then
dev_major=0x`/usr/bin/stat --format=%t $g_dev` > /dev/null 2>&1