X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Fmultiop.c;h=b42bfb806b45b0c6208833adde52a1df4f4850ec;hb=fbe66c3a22bfa136c077cbd46c4186ecbf4946d2;hp=4923ac74ecc0380a9b28c3be1517cd11300285d9;hpb=dea72cdb5ce72eda8515da507ab604eb36c69550;p=fs%2Flustre-release.git diff --git a/lustre/tests/multiop.c b/lustre/tests/multiop.c index 4923ac7..b42bfb8 100755 --- a/lustre/tests/multiop.c +++ b/lustre/tests/multiop.c @@ -26,7 +26,7 @@ * GPL HEADER END */ /* - * Copyright 2008 Sun Microsystems, Inc. All rights reserved + * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. * Use is subject to license terms. */ /* @@ -181,7 +181,6 @@ int get_flags(char *data, int *rflags) } #define POP_ARG() (pop_arg(argc, argv)) -#define min(a,b) ((a)>(b)?(b):(a)) int main(int argc, char **argv) { @@ -321,7 +320,10 @@ int main(int argc, char **argv) case 'o': len = get_flags(commands+1, &flags); commands += len; - fd = open(fname, flags); + if (flags & O_CREAT) + fd = open(fname, flags, 0666); + else + fd = open(fname, flags); if (fd == -1) { save_errno = errno; perror("open");