]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
btrfs/011: use replace_options
authorAnand Jain <anand.jain@oracle.com>
Sun, 21 Feb 2016 21:37:14 +0000 (08:37 +1100)
committerDave Chinner <david@fromorbit.com>
Sun, 21 Feb 2016 21:37:14 +0000 (08:37 +1100)
This patch fixes test btrfs/011 which intended to use -r option
but was never used since its associated args 'replace_options'
didn't make it to the cli.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/btrfs/011

index 91ddebb20ee74534267de89155c5f5d07dd45afd..c6cafc44ac698baa74319363725ad16037d4e784 100755 (executable)
@@ -219,7 +219,7 @@ btrfs_replace_test()
 
        if [ "${with_cancel}Q" = "cancelQ" ]; then
                # background the replace operation (no '-B' option given)
-               $BTRFS_UTIL_PROG replace start -f $source_dev $target_dev $SCRATCH_MNT >> $seqres.full 2>&1 || _fail "btrfs replace start failed"
+               $BTRFS_UTIL_PROG replace start -f $replace_options $source_dev $target_dev $SCRATCH_MNT >> $seqres.full 2>&1 || _fail "btrfs replace start failed"
                sleep 1
                $BTRFS_UTIL_PROG replace cancel $SCRATCH_MNT >> $seqres.full 2>&1 || _fail "btrfs replace cancel failed"
 
@@ -235,7 +235,7 @@ btrfs_replace_test()
                        # a sync in the middle of the replace operation.
                        (sleep 1; sync) > /dev/null 2>&1 &
                fi
-               $BTRFS_UTIL_PROG replace start -Bf $source_dev $target_dev $SCRATCH_MNT >> $seqres.full 2>&1 || _fail "btrfs replace start failed"
+               $BTRFS_UTIL_PROG replace start -Bf $replace_options $source_dev $target_dev $SCRATCH_MNT >> $seqres.full 2>&1 || _fail "btrfs replace start failed"
 
                $BTRFS_UTIL_PROG replace status $SCRATCH_MNT > $tmp.tmp 2>&1
                cat $tmp.tmp >> $seqres.full