Create some dirs in test images

master
Vitaliy Filippov 2014-01-16 09:43:16 +00:00
parent 050112183b
commit 17fdd46b42
1 changed files with 4 additions and 4 deletions

View File

@ -1,8 +1,5 @@
#!/bin/sh
# To test shrinking: INODES=8192, then ./realloc-inodes test-clean.img 2048
# To test growing: INODES=2048, then ./realloc-inodes test-clean.img 8192
FILE=${FILE:-test-ext4-grow1.img}
FS=${FS:-ext4}
SIZE=${SIZE:-32768}
@ -19,8 +16,11 @@ for i in $(seq 1 2500); do
done
# For inode moving test: create 1201 1kb sized files
dd if=/dev/zero of=dir/f_zero bs=1k count=1
for i in $(seq 0 120); do
mkdir dir/dir$i
done
for i in $(seq 1 1200); do
cp dir/f_zero dir/f$i
cp dir/f_zero dir/dir$((i/10))/f$i
done
sleep 1
umount dir