From: Ilya Dryomov Date: Fri, 25 Apr 2014 09:36:53 +0000 (+0400) Subject: test_librbd_fsx: align temp_buf by readbdy instead of writebdy X-Git-Tag: v0.81~48^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7df50ecd80d8ad34d1a051f0831b752bc4ee7191;p=ceph.git 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 --- diff --git a/src/test/librbd/fsx.c b/src/test/librbd/fsx.c index 2b65da5810b0..f28d82023241 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;