commit
a3c44d4645
@ -28,6 +28,10 @@ TEST_COUNT_HALF=16384
|
|||||||
#param device
|
#param device
|
||||||
get_stat_sectors_read() {
|
get_stat_sectors_read() {
|
||||||
L_DEVICE=$(basename $1)
|
L_DEVICE=$(basename $1)
|
||||||
|
if [[ ${L_DEVICE} =~ "nvme" ]]
|
||||||
|
then
|
||||||
|
L_DEVICE="${L_DEVICE:0:${#L_DEVICE}-1}p${L_DEVICE: -1}"
|
||||||
|
fi
|
||||||
L_STAT=$(cat /proc/diskstats | grep $L_DEVICE | awk '{ print $6 }')
|
L_STAT=$(cat /proc/diskstats | grep $L_DEVICE | awk '{ print $6 }')
|
||||||
echo $L_STAT
|
echo $L_STAT
|
||||||
}
|
}
|
||||||
|
@ -65,7 +65,7 @@ run_cmd "dd if=/dev/urandom of=${DEVICE_NAME}1-2 count=1000 bs=4096 oflag=direct
|
|||||||
|
|
||||||
run_cmd "casctl stop --flush"
|
run_cmd "casctl stop --flush"
|
||||||
|
|
||||||
run_cmd "casadm -S -d ${CACHE_DEVICE}1"
|
run_cmd "casadm -S -d ${CACHE_DEVICE}1 --force"
|
||||||
|
|
||||||
run_cmd "casctl stop"
|
run_cmd "casctl stop"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user