X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=filesetup.c;h=8f515923bcf9b25c725c9d9a3e94ed2ecb1711a3;hb=85af57948a9c0d5c2ece9c680a41c1670888a09e;hp=2a79e7452d083f36b9cb0e4777ea8bfe94de01d5;hpb=5c909c91a2f58848b485523920e2278f8d63ecd4;p=fio.git 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;