mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
ext4: don't online scrub ever
The ext4 online scrub program is no longer under active development, so remove all the test code that tried to use it. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Eryu Guan <eguan@redhat.com> Signed-off-by: Eryu Guan <eguan@redhat.com>
This commit is contained in:
committed by
Eryu Guan
parent
7c0af04322
commit
c28b406918
+2
-2
@@ -58,7 +58,7 @@ _scratch_fuzz_test() {
|
|||||||
# Do we have an online scrub program?
|
# Do we have an online scrub program?
|
||||||
_require_scrub() {
|
_require_scrub() {
|
||||||
case "${FSTYP}" in
|
case "${FSTYP}" in
|
||||||
"xfs"|"ext4")
|
"xfs")
|
||||||
test -x "$XFS_SCRUB_PROG" || _notrun "xfs_scrub not found"
|
test -x "$XFS_SCRUB_PROG" || _notrun "xfs_scrub not found"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
@@ -70,7 +70,7 @@ _require_scrub() {
|
|||||||
# Scrub the scratch filesystem metadata (online)
|
# Scrub the scratch filesystem metadata (online)
|
||||||
_scratch_scrub() {
|
_scratch_scrub() {
|
||||||
case "${FSTYP}" in
|
case "${FSTYP}" in
|
||||||
"xfs"|"ext4"|"ext3"|"ext2")
|
"xfs")
|
||||||
$XFS_SCRUB_PROG -d -T -v "$@" $SCRATCH_MNT
|
$XFS_SCRUB_PROG -d -T -v "$@" $SCRATCH_MNT
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|||||||
+4
-3
@@ -1,7 +1,9 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
# FS QA Test No. 023
|
# FS QA Test No. 023
|
||||||
#
|
#
|
||||||
# Populate a ext4 filesystem and ensure that scrub and repair are happy.
|
# Ensure that the populate helpers actually /can/ populate a ext4
|
||||||
|
# filesystem with all types of metadata and create an image of the
|
||||||
|
# metadata. Check that fsck is happy with the resulting fs.
|
||||||
#
|
#
|
||||||
#-----------------------------------------------------------------------
|
#-----------------------------------------------------------------------
|
||||||
# Copyright (c) 2017 Oracle, Inc. All Rights Reserved.
|
# Copyright (c) 2017 Oracle, Inc. All Rights Reserved.
|
||||||
@@ -51,9 +53,8 @@ _require_scrub
|
|||||||
echo "Format and populate"
|
echo "Format and populate"
|
||||||
_scratch_populate_cached > $seqres.full 2>&1
|
_scratch_populate_cached > $seqres.full 2>&1
|
||||||
|
|
||||||
echo "Scrub"
|
echo "Mount"
|
||||||
_scratch_mount >> $seqres.full 2>&1
|
_scratch_mount >> $seqres.full 2>&1
|
||||||
_scratch_scrub >> $seqres.full
|
|
||||||
|
|
||||||
# success, all done
|
# success, all done
|
||||||
status=0
|
status=0
|
||||||
|
|||||||
+1
-1
@@ -1,3 +1,3 @@
|
|||||||
QA output created by 023
|
QA output created by 023
|
||||||
Format and populate
|
Format and populate
|
||||||
Scrub
|
Mount
|
||||||
|
|||||||
Reference in New Issue
Block a user