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";
10 my $mtpt = shift || usage();
11 my $mount_count = shift || usage();
12 my $i = shift || usage();
16 $which = int(rand() * $mount_count) + 1;
17 $d = int(rand() * $files);
18 $path = "$mtpt$which/$d";
19 my $tmp = `./mcreate $path`;
21 $tmp =~ /.*error: (.*)\n/;
22 print "Created $path: $1\n";
24 print "Created $path: Success\n";
27 $which = int(rand() * $mount_count) + 1;
28 $d = int(rand() * $files);
29 $path = "$mtpt$which/$d";
31 print "Unlinked $path: Success\n";
33 print "Unlinked $path: $!\n";