common: _devmgt_add() to check if the device is back online
authorAnand Jain <anand.jain@oracle.com>
Wed, 13 Aug 2014 01:15:43 +0000 (11:15 +1000)
committerDave Chinner <david@fromorbit.com>
Wed, 13 Aug 2014 01:15:43 +0000 (11:15 +1000)
commitffd3c2b093c48af4cf7de1baf5ef6faf84346065
tree7c4ded47c7e358341d9cb5368ca0a0b068850a37
parent0750068fd66e2218c27d812ddae6eed977b710e6
common: _devmgt_add() to check if the device is back online

btrfs/003 uses a method to remove the device as part of the test
case, and after the test completes the removed device is added
back to the system. However on certain system, albeit the slow
running system the device comes back a bit later, and so the
latter occurring sub-test with in the btrfs/003 fails.

This patch adds script to wait and test if the device is back online,
and thus report the same to to the full log.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
common/rc