common/xfs: remove bad xfs_repair -t option
authorZorro Lang <zlang@redhat.com>
Tue, 10 Jul 2018 09:41:29 +0000 (17:41 +0800)
committerEryu Guan <guaneryu@gmail.com>
Thu, 12 Jul 2018 05:12:23 +0000 (13:12 +0800)
The xfs_repair "-t" option shouldn't be used alone. An interval must
follow the -t option, or xfs_repair will report errors. And only
modify reporting interval is useless, if we don't enable ag_stride.

Signed-off-by: Zorro Lang <zlang@redhat.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
common/xfs

index ecf54bbfa716581d2a998b72f74c602f76298bda..61a3c2d93d434c663eab9dadfca60c28d5933679 100644 (file)
@@ -193,7 +193,6 @@ _scratch_xfs_repair()
                SCRATCH_OPTIONS="-l$SCRATCH_LOGDEV"
        [ "$USE_EXTERNAL" = yes -a ! -z "$SCRATCH_RTDEV" ] && \
                SCRATCH_OPTIONS=$SCRATCH_OPTIONS" -r$SCRATCH_RTDEV"
-       [ "$LARGE_SCRATCH_DEV" = yes ] && SCRATCH_OPTIONS=$SCRATCH_OPTIONS" -t"
        $XFS_REPAIR_PROG $SCRATCH_OPTIONS $* $SCRATCH_DEV
 }