summaryrefslogtreecommitdiff
path: root/cconv.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2015-05-06 14:20:44 -0600
committerJens Axboe <axboe@fb.com>2015-05-06 14:20:44 -0600
commitd77d8152a28b006a0cf12f9741f0a159422a5118 (patch)
tree0e52ed1e897e0da9147daa9d65e25bfedf154a1b /cconv.c
parent0c63576e14bc606f81441f20e58a5b6338a5e2d6 (diff)
cconv: add missing conversions of block_error_hist and skip_bad
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'cconv.c')
-rw-r--r--cconv.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cconv.c b/cconv.c
index 9c7e718..1e095af 100644
--- a/cconv.c
+++ b/cconv.c
@@ -244,6 +244,8 @@ void convert_thread_options_to_cpu(struct thread_options *o,
o->compress_percentage = le32_to_cpu(top->compress_percentage);
o->compress_chunk = le32_to_cpu(top->compress_chunk);
o->dedupe_percentage = le32_to_cpu(top->dedupe_percentage);
+ o->skip_bad = le32_to_cpu(top->skip_bad);
+ o->block_error_hist = le32_to_cpu(top->block_error_hist);
o->replay_align = le32_to_cpu(top->replay_align);
o->replay_scale = le32_to_cpu(top->replay_scale);
@@ -409,6 +411,8 @@ void convert_thread_options_to_net(struct thread_options_pack *top,
top->compress_percentage = cpu_to_le32(o->compress_percentage);
top->compress_chunk = cpu_to_le32(o->compress_chunk);
top->dedupe_percentage = cpu_to_le32(o->dedupe_percentage);
+ top->block_error_hist = cpu_to_le32(o->block_error_hist);
+ top->skip_bad = cpu_to_le32(o->skip_bad);
top->replay_align = cpu_to_le32(o->replay_align);
top->replay_scale = cpu_to_le32(o->replay_scale);