summaryrefslogtreecommitdiff
path: root/cconv.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2014-01-15 09:41:31 -0700
committerJens Axboe <axboe@kernel.dk>2014-01-15 09:41:31 -0700
commit3c78a83fe8098489706c992d431e466222d94e4c (patch)
treee68915a4381d9d67e966e9fbe90edbda05ce607c /cconv.c
parentce35b1ece06ce27ebff111e47c2a6610c311a92b (diff)
server: convert buffer pattern settings across client/server
Signed-off-by: Jens Axboe <axboe@kernel.dk>
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 3a6880a..3f41ae4 100644
--- a/cconv.c
+++ b/cconv.c
@@ -107,6 +107,7 @@ void convert_thread_options_to_cpu(struct thread_options *o,
o->verify_offset = le32_to_cpu(top->verify_offset);
memcpy(o->verify_pattern, top->verify_pattern, MAX_PATTERN_SIZE);
+ memcpy(o->buffer_pattern, top->buffer_pattern, MAX_PATTERN_SIZE);
o->verify_pattern_bytes = le32_to_cpu(top->verify_pattern_bytes);
o->verify_fatal = le32_to_cpu(top->verify_fatal);
@@ -174,6 +175,7 @@ void convert_thread_options_to_cpu(struct thread_options *o,
o->zero_buffers = le32_to_cpu(top->zero_buffers);
o->refill_buffers = le32_to_cpu(top->refill_buffers);
o->scramble_buffers = le32_to_cpu(top->scramble_buffers);
+ o->buffer_pattern_bytes = le32_to_cpu(top->buffer_pattern_bytes);
o->time_based = le32_to_cpu(top->time_based);
o->disable_lat = le32_to_cpu(top->disable_lat);
o->disable_clat = le32_to_cpu(top->disable_clat);
@@ -327,6 +329,7 @@ void convert_thread_options_to_net(struct thread_options_pack *top,
top->zero_buffers = cpu_to_le32(o->zero_buffers);
top->refill_buffers = cpu_to_le32(o->refill_buffers);
top->scramble_buffers = cpu_to_le32(o->scramble_buffers);
+ top->buffer_pattern_bytes = cpu_to_le32(o->buffer_pattern_bytes);
top->time_based = cpu_to_le32(o->time_based);
top->disable_lat = cpu_to_le32(o->disable_lat);
top->disable_clat = cpu_to_le32(o->disable_clat);
@@ -389,6 +392,7 @@ void convert_thread_options_to_net(struct thread_options_pack *top,
}
memcpy(top->verify_pattern, o->verify_pattern, MAX_PATTERN_SIZE);
+ memcpy(top->buffer_pattern, o->buffer_pattern, MAX_PATTERN_SIZE);
top->size = __cpu_to_le64(o->size);
top->verify_backlog = __cpu_to_le64(o->verify_backlog);