Skip to contentSkip to conversation

Recent changes (master)

PATCH Jens Axboe 1 participant 1 message May 19, 2016

lore
Share & tools
lore

Jens Axboe

author
#0 lore raw

The following changes since commit 8c4693e2e578613f517dc42b38e204bf77fdab1d:

add -A option for better stats (2016-05-17 18:48:30 -0400)

are available in the git repository at:

git://git.kernel.dk/fio.git master

for you to fetch changes up to e391c70489d9f63612bce419d7fa0df5d15abf16:

filesetup: align a size given as a percentage to the block size (2016-05-18 15:06:05 -0600)

----------------------------------------------------------------
Jens Axboe (1):
filesetup: align a size given as a percentage to the block size

 filesetup.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

---

Diff of recent changes:

filesetup.c +4 -2
index 9c37ae5..f721c36 100644
@@ -894,8 +894,10 @@ int setup_files(struct thread_data *td)
 		if (f->io_size == -1ULL)
 			total_size = -1ULL;
 		else {
-                        if (o->size_percent)
-                                f->io_size = (f->io_size * o->size_percent) / 100;
+                        if (o->size_percent) {
+				f->io_size = (f->io_size * o->size_percent) / 100;
+				f->io_size -= (f->io_size % td_min_bs(td));
+			}
 			total_size += f->io_size;
 		}