X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Fmpi%2Fwrite_disjoint.c;h=77ee33264763e5c0d12001c67e561decb7130032;hb=08aa217ce49aba1ded52e0f7adb8a607035123fd;hp=a6d7e3df7e39a8508c9ba2d5a05024052b7b9b0c;hpb=e3a7c58aebafce40323db54bf6056029e5af4a70;p=fs%2Flustre-release.git diff --git a/lustre/tests/mpi/write_disjoint.c b/lustre/tests/mpi/write_disjoint.c index a6d7e3d..77ee332 100644 --- a/lustre/tests/mpi/write_disjoint.c +++ b/lustre/tests/mpi/write_disjoint.c @@ -26,6 +26,8 @@ /* * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. * Use is subject to license terms. + * + * Copyright (c) 2012, Intel Corporation. */ /* * This file is part of Lustre, http://www.lustre.org/ @@ -204,7 +206,8 @@ int main (int argc, char *argv[]) { for (i = 0; i < noProcessors; i++) { char command[4096]; - int j, rc; + int j; + if (!memcmp(read_buf + (i * CHUNK_SIZE(n)), chunk_buf[i], CHUNK_SIZE(n))) continue; @@ -229,7 +232,7 @@ int main (int argc, char *argv[]) { } sprintf(command, "od -Ad -a %s", filename); - rc = system(command); + ret = system(command); rprintf(0, n, "data check error - exiting\n"); } }