+static int str_file_service_cb(void *data, const char *str)
+{
+ struct thread_data *td = data;
+
+ if (!strncmp(str, "random", 6)) {
+ td->file_service_type = FIO_FSERVICE_RANDOM;
+ return 0;
+ } else if (!strncmp(str, "roundrobin", 10)) {
+ td->file_service_type = FIO_FSERVICE_RR;
+ return 0;
+ }
+
+ log_err("fio: file_service= random, roundrobin\n");
+ return 1;
+}
+