From: Darrick J. Wong Date: Tue, 15 Sep 2020 01:44:50 +0000 (-0700) Subject: xfs/291: fix open-coded repair call to mdrestore'd fs image X-Git-Tag: v2022.05.01~678 X-Git-Url: http://git.apps.os.sepia.ceph.com/?p=xfstests-dev.git;a=commitdiff_plain;h=9aa40b59f8b95abb072622b7b151ec6a86f6d7be xfs/291: fix open-coded repair call to mdrestore'd fs image Attach any external log devices to the open-coded repair call. Signed-off-by: Darrick J. Wong Reviewed-by: Zorro Lang Signed-off-by: Eryu Guan --- diff --git a/tests/xfs/291 b/tests/xfs/291 index adef2536..5d4f1ac4 100755 --- a/tests/xfs/291 +++ b/tests/xfs/291 @@ -110,7 +110,9 @@ _scratch_metadump $tmp.metadump || _fail "xfs_metadump failed" xfs_mdrestore $tmp.metadump $tmp.img || _fail "xfs_mdrestore failed" [ "$USE_EXTERNAL" = yes ] && [ -n "$SCRATCH_RTDEV" ] && \ rt_repair_opts="-r $SCRATCH_RTDEV" -$XFS_REPAIR_PROG $rt_repair_opts -f $tmp.img >> $seqres.full 2>&1 || \ +[ "$USE_EXTERNAL" = yes ] && [ -n "$SCRATCH_LOGDEV" ] && \ + log_repair_opts="-l $SCRATCH_LOGDEV" +$XFS_REPAIR_PROG $rt_repair_opts $log_repair_opts -f $tmp.img >> $seqres.full 2>&1 || \ _fail "xfs_repair of metadump failed" # Yes it can; success, all done