Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8cf0b3d
)
* new: t fchmod (set mode to 0)
author
rread
<rread>
Mon, 11 Aug 2003 18:01:20 +0000
(18:01 +0000)
committer
rread
<rread>
Mon, 11 Aug 2003 18:01:20 +0000
(18:01 +0000)
* add help for new options
lustre/tests/multiop.c
patch
|
blob
|
history
diff --git
a/lustre/tests/multiop.c
b/lustre/tests/multiop.c
index
bd310ed
..
73b7d99
100755
(executable)
--- a/
lustre/tests/multiop.c
+++ b/
lustre/tests/multiop.c
@@
-21,8
+21,11
@@
char usage[] =
" m mknod\n"
" c close\n"
" _ wait for signal\n"
-" s stat\n"
-" S fstat\n";
+" r read\n"
+" S fstat\n"
+" t fchmod\n"
+" w write\n"
+" z seek to zero\n";
void null_handler(int unused) { }
@@
-92,6
+95,12
@@
int main(int argc, char **argv)
exit(1);
}
break;
+ case 't':
+ if (fchmod(fd, 0) == -1) {
+ perror("fchmod");
+ exit(1);
+ }
+ break;
case 'u':
if (unlink(fname) == -1) {
perror("unlink");