Whamcloud - gitweb
* new: t fchmod (set mode to 0)
authorrread <rread>
Mon, 11 Aug 2003 18:01:20 +0000 (18:01 +0000)
committerrread <rread>
Mon, 11 Aug 2003 18:01:20 +0000 (18:01 +0000)
* add help for new options

lustre/tests/multiop.c

index bd310ed..73b7d99 100755 (executable)
@@ -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");