+static void submit_random_read(NFSConnection *nfs)
+{
+ struct bench_file *bf;
+ bf = &g_array_index(bench_files, struct bench_file,
+ g_random_int_range(0, bench_files->len));
+ int blocks = bf->size / read_size;
+ if (blocks == 0)
+ blocks = 1;
+
+ int offset = g_random_int_range(0, blocks);
+ send_read_request(nfs, bf->inum, offset * read_size, read_size);
+}