Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cee4763
)
A Perl script to hammer concurrently at multiple mount points
author
pschwan
<pschwan>
Mon, 1 Jul 2002 15:26:52 +0000
(15:26 +0000)
committer
pschwan
<pschwan>
Mon, 1 Jul 2002 15:26:52 +0000
(15:26 +0000)
lustre/tests/create.pl
[new file with mode: 0644]
patch
|
blob
diff --git a/lustre/tests/create.pl
b/lustre/tests/create.pl
new file mode 100644
(file)
index 0000000..
c9aa192
--- /dev/null
+++ b/
lustre/tests/create.pl
@@ -0,0
+1,19
@@
+#!/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"
+}