mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
xfs/070: add scratch log device options to direct repair invocation
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Zorro Lang <zlang@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
committed by
Eryu Guan
parent
0b9cecc146
commit
ff334a75e2
+3
-1
@@ -41,9 +41,11 @@ _cleanup()
|
||||
_xfs_repair_noscan()
|
||||
{
|
||||
# invoke repair directly so we can kill the process if need be
|
||||
[ "$USE_EXTERNAL" = yes -a ! -z "$SCRATCH_LOGDEV" ] && \
|
||||
log_repair_opts="-l $SCRATCH_LOGDEV"
|
||||
[ "$USE_EXTERNAL" = yes ] && [ -n "$SCRATCH_RTDEV" ] && \
|
||||
rt_repair_opts="-r $SCRATCH_RTDEV"
|
||||
$XFS_REPAIR_PROG $rt_repair_opts $SCRATCH_DEV 2>&1 |
|
||||
$XFS_REPAIR_PROG $log_repair_opts $rt_repair_opts $SCRATCH_DEV 2>&1 |
|
||||
tee -a $seqres.full > $tmp.repair &
|
||||
repair_pid=$!
|
||||
|
||||
|
||||
Reference in New Issue
Block a user