xfs/realtime: Fix direct invocations of xfs_repair
[xfstests-dev.git] / tests / xfs / 070
index 0ae6effa55f1483a1e630daecf32df290d1d154d..81111d5d0bd7c0b24bedfebfce329d9014f32dc3 100755 (executable)
@@ -56,7 +56,10 @@ _cleanup()
 _xfs_repair_noscan()
 {
        # invoke repair directly so we can kill the process if need be
-       $XFS_REPAIR_PROG $SCRATCH_DEV 2>&1 | tee -a $seqres.full > $tmp.repair &
+       [ "$USE_EXTERNAL" = yes ] && [ -n "$SCRATCH_RTDEV" ] && \
+               rt_repair_opts="-r $SCRATCH_RTDEV"
+       $XFS_REPAIR_PROG $rt_repair_opts $SCRATCH_DEV 2>&1 |
+               tee -a $seqres.full > $tmp.repair &
        repair_pid=$!
 
        # monitor progress for as long as it is running