Add 'filesize' option
Allows the user to define the range of file sizes generated.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/fio.h b/fio.h
index 7210422..3f0af65 100644
--- a/fio.h
+++ b/fio.h
@@ -492,6 +492,13 @@
unsigned int file_service_nr;
unsigned int file_service_left;
struct fio_file *file_service_file;
+
+ /*
+ * For generating file sizes
+ */
+ os_random_state_t file_size_state;
+ unsigned long long file_size_low;
+ unsigned long long file_size_high;
};
/*
@@ -649,7 +656,6 @@
* Init functions
*/
extern int __must_check parse_options(int, char **);
-extern int __must_check init_random_state(struct thread_data *);
/*
* File setup/shutdown
@@ -740,6 +746,8 @@
fprintf(stderr, ##args); \
} while (0)
+#define log_info(args...) fprintf(f_out, ##args)
+
FILE *get_f_out(void);
FILE *get_f_err(void);