Skip to content
Snippets Groups Projects
Commit 1b3ca1c2 authored by Phil Schwan's avatar Phil Schwan
Browse files

A Perl script to hammer concurrently at multiple mount points

parent cee4763f
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/perl
$mtpt = shift || die;
$mount_count = shift || die;
$i = shift || die;
while ($i--) {
$which = int(rand() * $mount_count) + 1;
$path = "$mtpt$which/";
$d = int(rand() * 5);
print `./mcreate $path$d`;
$which = int(rand() * $mount_count) + 1;
$path = "$mtpt$which/";
$d = int(rand() * 5);
unlink("$path$d") || print "unlink($path$d): $!\n"
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment