Skip to content

Commit

Permalink
reset raid level on each iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
Wu Fengguang committed Jan 5, 2012
1 parent 3b93dc2 commit 2c8f023
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cases-common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,12 @@ thresh() {
output_dir="${storage_prefix}thresh=${dirty_thresh}${unit}${bg_name}"
else
output_dir="$array-${ndisk}${storage}-thresh=${dirty_thresh}${unit}${bg_name}"
RAID_LEVEL=${array,,*}
fi

make_dir $output_dir $(dd_job) || return

(( $ndisk > 1 )) && RAID_LEVEL=${array,,*}

[[ $unit = M || $unit = m ]] && bits=20
[[ $unit = G || $unit = g ]] && bits=30

Expand Down
1 change: 1 addition & 0 deletions main-loop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ do
storage=${STORAGE:-HDD}
devices=$DEVICES
[[ $fs =~ nfs ]] && devices=$NFS_DEVICE
RAID_LEVEL=jbod

cd $BASE_DIR

Expand Down

0 comments on commit 2c8f023

Please sign in to comment.