4 print "Usage: $0 <mount point prefix> <mount count> <iterations>\n";
5 print "example: $0 /mnt/lustre 2 50\n";
6 print " will test in /mnt/lustre1 and /mnt/lustre2\n";
11 my $tmp = `./mcreate $path`;
13 $tmp =~ /.*error: (.*)\n/;
14 print "Created $path: $1\n";
16 print "Created $path: Success\n";
20 my $mtpt = shift || usage();
21 my $mount_count = shift || usage();
22 my $i = shift || usage();
26 $which = int(rand() * $mount_count) + 1;
27 $d = int(rand() * $files);
28 $path = "$mtpt$which/$d";
29 open(FH, ">$path") || die "open($PATH): $!";
30 print "Opened $path: Success\n";
33 $which = int(rand() * $mount_count) + 1;
34 $d = int(rand() * $files);
35 $path = "$mtpt$which/$d";
37 print "Unlinked $path: Success\n";
39 print "Unlinked $path: $!\n";