From 7df50ecd80d8ad34d1a051f0831b752bc4ee7191 Mon Sep 17 00:00:00 2001 From: Ilya Dryomov Date: Fri, 25 Apr 2014 13:36:53 +0400 Subject: [PATCH] test_librbd_fsx: align temp_buf by readbdy instead of writebdy temp_buf is used for reads, so align it by readbdy. Signed-off-by: Ilya Dryomov --- src/test/librbd/fsx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/librbd/fsx.c b/src/test/librbd/fsx.c index 2b65da5810b01..f28d82023241f 100644 --- a/src/test/librbd/fsx.c +++ b/src/test/librbd/fsx.c @@ -1533,8 +1533,8 @@ main(int argc, char **argv) good_buf = (char *) malloc(maxfilelen + writebdy); good_buf = round_ptr_up(good_buf, writebdy, 0); memset(good_buf, '\0', maxfilelen); - temp_buf = (char *) malloc(maxfilelen + writebdy); - temp_buf = round_ptr_up(temp_buf, writebdy, 0); + temp_buf = (char *) malloc(maxfilelen + readbdy); + temp_buf = round_ptr_up(temp_buf, readbdy, 0); memset(temp_buf, '\0', maxfilelen); if (lite) { /* zero entire existing file */ ssize_t written; -- 2.39.5