- send_read_request(nfs, bf->inum, 0, 1048576);
+ 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);
+}
+
+static void finish_read_request(NFSConnection *nfs, gpointer user_data,
+ const char *reply, size_t len)
+{
+ submit_random_read(nfs);