Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

add random file sizes

  • Loading branch information...
commit 42e27d5f3844544d3292fbb4da4e4fd65ad98bf5 1 parent b0e6fa6
Mathieu Fenniak authored

Showing 1 changed file with 3 additions and 2 deletions. Show diff stats Hide diff stats

  1. 5  mktest.sh
5  mktest.sh
... ...
@@ -1,12 +1,13 @@
1 1
 #!/bin/bash
2 2
 
3  
-for i in {1..1000};
  3
+for i in {1..10};
4 4
 do
5 5
     echo $i;
6 6
     mkdir $i;
7 7
     for j in {1..10000};
8 8
     do
9  
-        dd if=/dev/urandom of=$i/$j bs=8k count=1 &> /dev/null;
  9
+        let "x = 4 + 4 * ($RANDOM % 4)"
  10
+        dd if=/dev/urandom of=$i/$j bs=${x}k count=1 &> /dev/null;
10 11
     done
11 12
 done
12 13
 

0 notes on commit 42e27d5

Please sign in to comment.
Something went wrong with that request. Please try again.