Mods for Linux 3.0 and fix a typo
[yaffs2.git] / linux-tests / mkdirtree
1 #!/bin/bash
2
3 TREE_BASE=/mnt/dirtree
4
5 for (( d=0; d<50; d++ ))
6 do
7         mkdir -p $TREE_BASE/dir$d
8         
9         for (( f=0; f<50; f++ ))
10         do
11                 ls > $TREE_BASE/dir$d/file$f
12         done
13 done
14
15
16 echo "Foo bar file" > $TREE_BASE/foo_file
17
18 ln $TREE_BASE/foo_file $TREE_BASE/../foo_link
19
20
21
22
23