2 ################################################################################
4 ## Copyright (c) International Business Machines Corp., 2009 ##
6 ## This program is free software; you can redistribute it and/or modify ##
7 ## it under the terms of the GNU General Public License as published by ##
8 ## the Free Software Foundation; either version 2 of the License, or ##
9 ## (at your option) any later version. ##
11 ## This program is distributed in the hope that it will be useful, but ##
12 ## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ##
13 ## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ##
14 ## for more details. ##
16 ## You should have received a copy of the GNU General Public License ##
17 ## along with this program; if not, write to the Free Software ##
18 ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ##
20 ################################################################################
22 # File : restore_kernel_faults_default.sh ##
24 # Usage: restore_kernel_faults_default.sh ##
26 # Description: This is a simple script that will restore the /debugfs/fail* ##
27 # entries to their default values ##
29 # Author: Subrata Modak <subrata@linux.vnet.ibm.com> ##
31 # History: Aug 11 2009 - Created - Subrata Modak. ##
32 # Aug 17 2009 - Changed debugfs mount point - Subrata Modak. ##
33 ################################################################################
35 echo 0 > /sys
/kernel
/debug
/fail_io_timeout
/reject-end
36 echo 0 > /sys
/kernel
/debug
/fail_io_timeout
/reject-start
37 echo 4294967295 > /sys
/kernel
/debug
/fail_io_timeout
/require-end
38 echo 0 > /sys
/kernel
/debug
/fail_io_timeout
/require-start
39 echo 32 > /sys
/kernel
/debug
/fail_io_timeout
/stacktrace-depth
40 echo N
> /sys
/kernel
/debug
/fail_io_timeout
/task-filter
41 echo 2 > /sys
/kernel
/debug
/fail_io_timeout
/verbose
42 echo 0 > /sys
/kernel
/debug
/fail_io_timeout
/space
43 echo 1 > /sys
/kernel
/debug
/fail_io_timeout
/times
44 echo 1 > /sys
/kernel
/debug
/fail_io_timeout
/interval
45 echo 0 > /sys
/kernel
/debug
/fail_io_timeout
/probability
47 echo 0 > /sys
/kernel
/debug
/fail_make_request
/reject-end
48 echo 0 > /sys
/kernel
/debug
/fail_make_request
/reject-start
49 echo 4294967295 > /sys
/kernel
/debug
/fail_make_request
/require-end
50 echo 0 > /sys
/kernel
/debug
/fail_make_request
/require-start
51 echo 32 > /sys
/kernel
/debug
/fail_make_request
/stacktrace-depth
52 echo N
> /sys
/kernel
/debug
/fail_make_request
/task-filter
53 echo 2 > /sys
/kernel
/debug
/fail_make_request
/verbose
54 echo 0 > /sys
/kernel
/debug
/fail_make_request
/space
55 echo 1 > /sys
/kernel
/debug
/fail_make_request
/times
56 echo 1 > /sys
/kernel
/debug
/fail_make_request
/interval
57 echo 0 > /sys
/kernel
/debug
/fail_make_request
/probability
59 echo 1 > /sys
/kernel
/debug
/fail_page_alloc
/min-order
60 echo Y
> /sys
/kernel
/debug
/fail_page_alloc
/ignore-gfp-highmem
61 echo Y
> /sys
/kernel
/debug
/fail_page_alloc
/ignore-gfp-wait
62 echo 0 > /sys
/kernel
/debug
/fail_page_alloc
/reject-end
63 echo 0 > /sys
/kernel
/debug
/fail_page_alloc
/reject-start
64 echo 4294967295 > /sys
/kernel
/debug
/fail_page_alloc
/require-end
65 echo 0 > /sys
/kernel
/debug
/fail_page_alloc
/require-start
66 echo 32 > /sys
/kernel
/debug
/fail_page_alloc
/stacktrace-depth
67 echo N
> /sys
/kernel
/debug
/fail_page_alloc
/task-filter
68 echo 2 > /sys
/kernel
/debug
/fail_page_alloc
/verbose
69 echo 0 > /sys
/kernel
/debug
/fail_page_alloc
/space
70 echo 1 > /sys
/kernel
/debug
/fail_page_alloc
/times
71 echo 1 > /sys
/kernel
/debug
/fail_page_alloc
/interval
72 echo 0 > /sys
/kernel
/debug
/fail_page_alloc
/probability
74 echo Y
> /sys
/kernel
/debug
/failslab
/ignore-gfp-wait
75 echo 0 > /sys
/kernel
/debug
/failslab
/reject-end
76 echo 0 > /sys
/kernel
/debug
/failslab
/reject-start
77 echo 4294967295 > /sys
/kernel
/debug
/failslab
/require-end
78 echo 0 > /sys
/kernel
/debug
/failslab
/require-start
79 echo 32 > /sys
/kernel
/debug
/failslab
/stacktrace-depth
80 echo N
> /sys
/kernel
/debug
/failslab
/task-filter
81 echo 2 > /sys
/kernel
/debug
/failslab
/verbose
82 echo 0 > /sys
/kernel
/debug
/failslab
/space
83 echo 1 > /sys
/kernel
/debug
/failslab
/times
84 echo 1 > /sys
/kernel
/debug
/failslab
/interval
85 echo 0 > /sys
/kernel
/debug
/failslab
/probability