From 408874dae09d781eeff74775008ac79b641f412e Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Fri, 9 Mar 2018 12:55:21 -0700 Subject: [PATCH] filesetup: don't round/adjust size for size_percent == 100 For the full device, don't apply any rounding or bs based adjustment. Just treat it like size_percent wasn't even set. Signed-off-by: Jens Axboe --- filesetup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filesetup.c b/filesetup.c index cced5561..dd8f6eb2 100644 --- a/filesetup.c +++ b/filesetup.c @@ -1036,7 +1036,7 @@ int setup_files(struct thread_data *td) if (f->io_size == -1ULL) total_size = -1ULL; else { - if (o->size_percent) { + if (o->size_percent && o->size_percent != 100) { uint64_t file_size; file_size = f->io_size + f->file_offset; -- 2.25.1