Bump support of zones to 256 max
[fio.git] / thread_options.h
index 1813cdc706a89a5a493386e7f7d0345abf3fae3a..a9c3beec3a16d8eed9e984cff43f75156e5c0b9f 100644 (file)
@@ -26,7 +26,7 @@ enum fio_memtype {
 #define ERROR_STR_MAX  128
 
 #define BSSPLIT_MAX    64
-#define ZONESPLIT_MAX  64
+#define ZONESPLIT_MAX  256
 
 struct bssplit {
        uint32_t bs;
@@ -36,6 +36,8 @@ struct bssplit {
 struct zone_split {
        uint8_t access_perc;
        uint8_t size_perc;
+       uint8_t pad[6];
+       uint64_t size;
 };
 
 #define NR_OPTS_SZ     (FIO_MAX_OPTS / (8 * sizeof(uint64_t)))
@@ -78,6 +80,7 @@ struct thread_options {
        unsigned long long file_size_low;
        unsigned long long file_size_high;
        unsigned long long start_offset;
+       unsigned long long start_offset_align;
 
        unsigned int bs[DDIR_RWDIR_CNT];
        unsigned int ba[DDIR_RWDIR_CNT];
@@ -189,7 +192,7 @@ struct thread_options {
        enum fio_memtype mem_type;
        unsigned int mem_align;
 
-       unsigned int max_latency;
+       unsigned long long max_latency;
 
        unsigned int stonewall;
        unsigned int new_group;
@@ -308,6 +311,8 @@ struct thread_options {
        unsigned long long latency_window;
        fio_fp64_t latency_percentile;
 
+       unsigned int sig_figs;
+
        unsigned block_error_hist;
 
        unsigned int replay_align;
@@ -355,6 +360,7 @@ struct thread_options_pack {
        uint64_t file_size_low;
        uint64_t file_size_high;
        uint64_t start_offset;
+       uint64_t start_offset_align;
 
        uint32_t bs[DDIR_RWDIR_CNT];
        uint32_t ba[DDIR_RWDIR_CNT];
@@ -423,7 +429,8 @@ struct thread_options_pack {
 
        uint32_t random_distribution;
        uint32_t exitall_error;
-       uint32_t pad;
+
+       uint32_t sync_file_range;
 
        struct zone_split zone_split[DDIR_RWDIR_CNT][ZONESPLIT_MAX];
        uint32_t zone_split_nr[DDIR_RWDIR_CNT];
@@ -463,8 +470,6 @@ struct thread_options_pack {
        uint32_t mem_type;
        uint32_t mem_align;
 
-       uint32_t max_latency;
-
        uint32_t stonewall;
        uint32_t new_group;
        uint32_t numjobs;
@@ -515,6 +520,7 @@ struct thread_options_pack {
        uint64_t trim_backlog;
        uint32_t clat_percentiles;
        uint32_t percentile_precision;
+       uint32_t pad;
        fio_fp64_t percentile_list[FIO_IO_U_LIST_MAX_LEN];
 
        uint8_t read_iolog_file[FIO_TOP_STR_MAX];
@@ -575,13 +581,13 @@ struct thread_options_pack {
        uint64_t offset_increment;
        uint64_t number_ios;
 
-       uint32_t sync_file_range;
-       uint32_t pad2;
-
        uint64_t latency_target;
        uint64_t latency_window;
+       uint64_t max_latency;
        fio_fp64_t latency_percentile;
 
+       uint32_t sig_figs;
+
        uint32_t block_error_hist;
 
        uint32_t replay_align;