From a231ddeafc36992b5a69b604bc48a154de653688 Mon Sep 17 00:00:00 2001 From: rread Date: Mon, 11 Aug 2003 18:01:20 +0000 Subject: [PATCH] * new: t fchmod (set mode to 0) * add help for new options --- lustre/tests/multiop.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/lustre/tests/multiop.c b/lustre/tests/multiop.c index bd310ed..73b7d99 100755 --- 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"); -- 1.8.3.1