]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
common: fix a typo in _require_block_device()
authorZhao Lei <zhaolei@cn.fujitsu.com>
Wed, 18 Mar 2015 03:55:58 +0000 (14:55 +1100)
committerDave Chinner <david@fromorbit.com>
Wed, 18 Mar 2015 03:55:58 +0000 (14:55 +1100)
We need to check "$1" instead "$SCRATCH_DEV" in this function.

Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Reviewed-by: Lukas Czerner <lczerner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
common/rc

index 1ed9df53d07c82da14f21ee0ffba0eeb6d9eec96..23193c832ec1634131d69d0a9a51d6258ef08585 100644 (file)
--- 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
 }