Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert "b=22423 Reconnects are not throttled"
[fs/lustre-release.git]
/
lustre
/
tests
/
multiop.c
diff --git
a/lustre/tests/multiop.c
b/lustre/tests/multiop.c
index
4923ac7
..
b42bfb8
100755
(executable)
--- a/
lustre/tests/multiop.c
+++ b/
lustre/tests/multiop.c
@@
-26,7
+26,7
@@
* GPL HEADER END
*/
/*
* 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.
*/
/*
* 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 POP_ARG() (pop_arg(argc, argv))
-#define min(a,b) ((a)>(b)?(b):(a))
int main(int argc, char **argv)
{
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;
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");
if (fd == -1) {
save_errno = errno;
perror("open");