-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbare_fullfill.sh
executable file
·27 lines (23 loc) · 1.06 KB
/
bare_fullfill.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
generate_config()
{
mkdir -p $log_dir
config_para=$1
num=`echo $config_para|awk -F "_" '{print $10}'`
config_filename=${config_para}.config
echo "[global]" >> $log_dir/$config_filename
echo ioengine=rbd >> $log_dir/$config_filename
echo clientname=admin >> $log_dir/$config_filename
echo pool=$pool >> $log_dir/$config_filename
echo rw=$rw >> $log_dir/$config_filename
echo bs=$bs >> $log_dir/$config_filename
echo runtime=$runtime >> $log_dir/$config_filename
echo time_based=1 >> $log_dir/$config_filename
echo ramp_time=10 >> $log_dir/$config_filename
echo iodepth=$iodepth >> $log_dir/$config_filename
echo numjobs=$numjobs >> $log_dir/$config_filename
echo direct=$direct >> $log_dir/$config_filename
echo rwmixread=${percentage} >> $log_dir/$config_filename
echo new_group >> $log_dir/$config_filename
echo group_reporting >> $log_dir/$config_filename
sh ./fill_image.sh $log_dir $image_num $config_filename $num
}