Mercurial > yaffs-ecoscentric-gpl
annotate packages/fs/yaffs/current/src/linux-tests/mkfiles @ 425:dea4d7d250ad ecos
Move sources into packages/fs/yaffs/current/src/
| author | Ross Younger <wry@ecoscentric.com> |
|---|---|
| date | Fri, 14 May 2010 16:03:09 +0100 |
| parents | linux-tests/mkfiles@675a2af6ea46 |
| children |
| rev | line source |
|---|---|
| 386 | 1 #!/bin/bash |
| 2 | |
| 3 TREE_BASE=/mnt/dirtree | |
| 4 | |
| 402 | 5 for (( f=0; f<500; f++ )) |
| 386 | 6 do |
| 402 | 7 for (( d=0; d<10; d++ )) |
| 386 | 8 do |
| 9 mkdir -p $TREE_BASE/dir$d | |
| 402 | 10 dd bs=1024 count=5 if=/dev/zero of=$TREE_BASE/dir$d/file$f |
| 386 | 11 done |
| 12 done | |
| 13 | |
| 14 | |
| 15 echo "Foo bar file" > $TREE_BASE/foo_file | |
| 16 | |
| 17 ln $TREE_BASE/foo_file $TREE_BASE/../foo_link | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 |
