Lines Matching refs:state
212 local state
216 state=$(_get_ublk_dev_state "${dev_id}")
217 [ "$state" == "LIVE" ] && break
220 echo "$state"
228 local state
231 state=$(_get_ublk_dev_state "${dev_id}")
232 return "$state"
236 state=$(_get_ublk_dev_state "${dev_id}")
237 [ "$state" == "$exp_state" ] && break
240 echo "$state"
249 local state
252 state=$(_get_ublk_dev_state "${dev_id}")
255 [ "$state" == "$exp_state" ] && break
258 state=$(_get_ublk_dev_state "${dev_id}")
260 echo "$state"
288 local state
289 state=$(__ublk_kill_daemon "${dev_id}" "DEAD")
290 if [ "$state" != "DEAD" ]; then
291 echo "device isn't dead($state) after killing daemon"
337 local state
350 state=$(__ublk_kill_daemon "${dev_id}" "QUIESCED")
352 state=$(__ublk_quiesce_dev "${dev_id}" "QUIESCED")
354 if [ "$state" != "QUIESCED" ]; then
355 echo "device isn't quiesced($state) after $action"
359 state=$(_recover_ublk_dev -n "$dev_id" "$@")
360 if [ "$state" != "LIVE" ]; then
361 echo "faile to recover to LIVE($state)"