diff options
author | Kent Overstreet <kmo@daterainc.com> | 2013-09-10 17:27:42 -0400 |
---|---|---|
committer | Kent Overstreet <kmo@daterainc.com> | 2013-11-11 00:56:43 -0500 |
commit | 5ceaaad7047745c1c02150c39d3fb623b7948d48 (patch) | |
tree | c03201ceda61314a0ec4b521e5d2d4d89bb1f0c2 /drivers/md/bcache/sysfs.c | |
parent | 098fb25498214069e6bbf908515f2952dd7654d0 (diff) |
bcache: Bypass torture test
More testing ftw! Also, now verify mode doesn't break if you read dirty
data.
Signed-off-by: Kent Overstreet <kmo@daterainc.com>
Diffstat (limited to 'drivers/md/bcache/sysfs.c')
-rw-r--r-- | drivers/md/bcache/sysfs.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/md/bcache/sysfs.c b/drivers/md/bcache/sysfs.c index 194d43782ea4..80d4c2bee18a 100644 --- a/drivers/md/bcache/sysfs.c +++ b/drivers/md/bcache/sysfs.c | |||
@@ -99,6 +99,7 @@ rw_attribute(errors); | |||
99 | rw_attribute(io_error_limit); | 99 | rw_attribute(io_error_limit); |
100 | rw_attribute(io_error_halflife); | 100 | rw_attribute(io_error_halflife); |
101 | rw_attribute(verify); | 101 | rw_attribute(verify); |
102 | rw_attribute(bypass_torture_test); | ||
102 | rw_attribute(key_merging_disabled); | 103 | rw_attribute(key_merging_disabled); |
103 | rw_attribute(gc_always_rewrite); | 104 | rw_attribute(gc_always_rewrite); |
104 | rw_attribute(expensive_debug_checks); | 105 | rw_attribute(expensive_debug_checks); |
@@ -123,6 +124,7 @@ SHOW(__bch_cached_dev) | |||
123 | 124 | ||
124 | sysfs_printf(data_csum, "%i", dc->disk.data_csum); | 125 | sysfs_printf(data_csum, "%i", dc->disk.data_csum); |
125 | var_printf(verify, "%i"); | 126 | var_printf(verify, "%i"); |
127 | var_printf(bypass_torture_test, "%i"); | ||
126 | var_printf(writeback_metadata, "%i"); | 128 | var_printf(writeback_metadata, "%i"); |
127 | var_printf(writeback_running, "%i"); | 129 | var_printf(writeback_running, "%i"); |
128 | var_print(writeback_delay); | 130 | var_print(writeback_delay); |
@@ -191,6 +193,7 @@ STORE(__cached_dev) | |||
191 | 193 | ||
192 | sysfs_strtoul(data_csum, dc->disk.data_csum); | 194 | sysfs_strtoul(data_csum, dc->disk.data_csum); |
193 | d_strtoul(verify); | 195 | d_strtoul(verify); |
196 | d_strtoul(bypass_torture_test); | ||
194 | d_strtoul(writeback_metadata); | 197 | d_strtoul(writeback_metadata); |
195 | d_strtoul(writeback_running); | 198 | d_strtoul(writeback_running); |
196 | d_strtoul(writeback_delay); | 199 | d_strtoul(writeback_delay); |
@@ -323,6 +326,7 @@ static struct attribute *bch_cached_dev_files[] = { | |||
323 | &sysfs_readahead, | 326 | &sysfs_readahead, |
324 | #ifdef CONFIG_BCACHE_DEBUG | 327 | #ifdef CONFIG_BCACHE_DEBUG |
325 | &sysfs_verify, | 328 | &sysfs_verify, |
329 | &sysfs_bypass_torture_test, | ||
326 | #endif | 330 | #endif |
327 | NULL | 331 | NULL |
328 | }; | 332 | }; |