From: Zhao Lei <zhaolei@xxxxxxxxxxxxxx> We need to check "$1" instead "$SCRATCH_DEV" in this function. And make tabs same with other code. Signed-off-by: Zhao Lei <zhaolei@xxxxxxxxxxxxxx> --- common/rc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/common/rc b/common/rc index 7449a1d..76522d4 100644 --- a/common/rc +++ b/common/rc @@ -1284,13 +1284,13 @@ _require_command() # $1 - device _require_block_device() { - if [ -z "$1" ]; then - echo "Usage: _require_block_device <dev>" 1>&2 - exit 1 - fi - if [ "`_is_block_dev $SCRATCH_DEV`" == "" ]; then - _notrun "require $1 to be valid block disk" - fi + if [ -z "$1" ]; then + echo "Usage: _require_block_device <dev>" 1>&2 + exit 1 + fi + if [ "`_is_block_dev $1`" == "" ]; then + _notrun "require $1 to be valid block disk" + fi } # this test requires the device mapper flakey target -- 1.8.5.1 -- To unsubscribe from this list: send the line "unsubscribe fstests" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html