From: Zhao Lei <zhaolei@xxxxxxxxxxxxxx> We need to check "$1" instead "$SCRATCH_DEV" in this function. Changelog v1->v2: Use tab instead of space to fit new code style. Suggested by: Dave Chinner <david@xxxxxxxxxxxxx> Reviewed-by: Lukas Czerner <lczerner@xxxxxxxxxx> Signed-off-by: Zhao Lei <zhaolei@xxxxxxxxxxxxxx> --- common/rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/rc b/common/rc index 1ed9df5..23193c8 100644 --- a/common/rc +++ b/common/rc @@ -1288,7 +1288,7 @@ _require_block_device() echo "Usage: _require_block_device <dev>" 1>&2 exit 1 fi - if [ "`_is_block_dev $SCRATCH_DEV`" == "" ]; then + if [ "`_is_block_dev "$1"`" == "" ]; then _notrun "require $1 to be valid block disk" fi } -- 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