X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=filesetup.c;h=8f515923bcf9b25c725c9d9a3e94ed2ecb1711a3;hp=2a79e7452d083f36b9cb0e4777ea8bfe94de01d5;hb=ab2cabdb2c67d8b90c94c1a95f7a2286a0f818b9;hpb=5c909c91a2f58848b485523920e2278f8d63ecd4 diff --git a/filesetup.c b/filesetup.c index 2a79e745..8f515923 100644 --- a/filesetup.c +++ b/filesetup.c @@ -759,6 +759,9 @@ int setup_files(struct thread_data *td) } } + if (td->o.size_percent) + total_size = (total_size * td->o.size_percent) / 100; + if (!td->o.size || td->o.size > total_size) td->o.size = total_size;