Name the various random offsets we use
[fio.git] / fio.h
diff --git a/fio.h b/fio.h
index 58364aaf5c74c8338885cd0a59214ee9c1cc01ff..3de3f000983a5621ee65c2e8d975e250d0ace7cf 100644 (file)
--- a/fio.h
+++ b/fio.h
@@ -319,6 +319,18 @@ enum {
        TD_F_PROFILE_OPS        = 64,
 };
 
+enum {
+       FIO_RAND_BS_OFF         = 0,
+       FIO_RAND_VER_OFF,
+       FIO_RAND_MIX_OFF,
+       FIO_RAND_FILE_OFF,
+       FIO_RAND_BLOCK_OFF,
+       FIO_RAND_FILE_SIZE_OFF,
+       FIO_RAND_TRIM_OFF,
+       FIO_RAND_BUF_OFF,
+       FIO_RAND_NR_OFFS,
+};
+
 /*
  * This describes a single thread/process executing a fio job.
  */
@@ -379,7 +391,7 @@ struct thread_data {
 
        char *sysfs_root;
 
-       unsigned long rand_seeds[8];
+       unsigned long rand_seeds[FIO_RAND_NR_OFFS];
 
        union {
                os_random_state_t bsrange_state;