X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Fmultiop.c;h=7ab0208a125fa58e3b12dbaa8880e08dec13bbd2;hb=f90ac91faf24860c0127bc4a08f45ce9a528b612;hp=0402affeae8f8da963999abd4a7b1ebe520bd6c6;hpb=7a7e17d4db28fac1ca4bc333d60cbeb8dbc530d6;p=fs%2Flustre-release.git diff --git a/lustre/tests/multiop.c b/lustre/tests/multiop.c index 0402aff..7ab0208 100755 --- a/lustre/tests/multiop.c +++ b/lustre/tests/multiop.c @@ -204,12 +204,14 @@ int main(int argc, char **argv) exit(1); } break; - case 'w': - if (write(fd, "w", 1) == -1) { + case 'w': { + int rc; + if ((rc = write(fd, "w", 1)) == -1) { perror("write"); exit(1); } break; + } case 'W': for (i = 0; i < mmap_len && mmap_ptr; i += 4096) mmap_ptr[i] += junk++;