allow a percent value for the offset parameter
[fio.git] / cconv.c
diff --git a/cconv.c b/cconv.c
index b329bf47be991098180a14b9f1b158f6be5ca9b0..bf4c5175fa4c7bbe09eeb4dcbe099d46f4e3d913 100644 (file)
--- a/cconv.c
+++ b/cconv.c
@@ -104,6 +104,7 @@ void convert_thread_options_to_cpu(struct thread_options *o,
        o->file_size_low = le64_to_cpu(top->file_size_low);
        o->file_size_high = le64_to_cpu(top->file_size_high);
        o->start_offset = le64_to_cpu(top->start_offset);
+       o->start_offset_percent = le32_to_cpu(top->start_offset_percent);
 
        for (i = 0; i < DDIR_RWDIR_CNT; i++) {
                o->bs[i] = le32_to_cpu(top->bs[i]);
@@ -235,6 +236,7 @@ void convert_thread_options_to_cpu(struct thread_options *o,
        o->new_group = le32_to_cpu(top->new_group);
        o->numjobs = le32_to_cpu(top->numjobs);
        o->cpus_allowed_policy = le32_to_cpu(top->cpus_allowed_policy);
+       o->gpu_dev_id = le32_to_cpu(top->gpu_dev_id);
        o->iolog = le32_to_cpu(top->iolog);
        o->rwmixcycle = le32_to_cpu(top->rwmixcycle);
        o->nice = le32_to_cpu(top->nice);
@@ -242,6 +244,7 @@ void convert_thread_options_to_cpu(struct thread_options *o,
        o->ioprio_class = le32_to_cpu(top->ioprio_class);
        o->file_service_type = le32_to_cpu(top->file_service_type);
        o->group_reporting = le32_to_cpu(top->group_reporting);
+       o->stats = le32_to_cpu(top->stats);
        o->fadvise_hint = le32_to_cpu(top->fadvise_hint);
        o->fallocate_mode = le32_to_cpu(top->fallocate_mode);
        o->zero_buffers = le32_to_cpu(top->zero_buffers);
@@ -419,6 +422,7 @@ void convert_thread_options_to_net(struct thread_options_pack *top,
        top->new_group = cpu_to_le32(o->new_group);
        top->numjobs = cpu_to_le32(o->numjobs);
        top->cpus_allowed_policy = cpu_to_le32(o->cpus_allowed_policy);
+       top->gpu_dev_id = cpu_to_le32(o->gpu_dev_id);
        top->iolog = cpu_to_le32(o->iolog);
        top->rwmixcycle = cpu_to_le32(o->rwmixcycle);
        top->nice = cpu_to_le32(o->nice);
@@ -426,6 +430,7 @@ void convert_thread_options_to_net(struct thread_options_pack *top,
        top->ioprio_class = cpu_to_le32(o->ioprio_class);
        top->file_service_type = cpu_to_le32(o->file_service_type);
        top->group_reporting = cpu_to_le32(o->group_reporting);
+       top->stats = cpu_to_le32(o->stats);
        top->fadvise_hint = cpu_to_le32(o->fadvise_hint);
        top->fallocate_mode = cpu_to_le32(o->fallocate_mode);
        top->zero_buffers = cpu_to_le32(o->zero_buffers);
@@ -539,6 +544,7 @@ void convert_thread_options_to_net(struct thread_options_pack *top,
        top->file_size_low = __cpu_to_le64(o->file_size_low);
        top->file_size_high = __cpu_to_le64(o->file_size_high);
        top->start_offset = __cpu_to_le64(o->start_offset);
+       top->start_offset_percent = __cpu_to_le32(o->start_offset_percent);
        top->trim_backlog = __cpu_to_le64(o->trim_backlog);
        top->offset_increment = __cpu_to_le64(o->offset_increment);
        top->number_ios = __cpu_to_le64(o->number_ios);