mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
xfs: only run scrub in dry run mode
When checking a filesystem, explicitly run xfs_scrub in dry run mode so that it will not ever try to preen, fix, or optimize anything. 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
6cce8575a5
commit
93d6007671
+1
-1
@@ -331,7 +331,7 @@ _check_xfs_filesystem()
|
|||||||
|
|
||||||
if [ "$type" = "xfs" ]; then
|
if [ "$type" = "xfs" ]; then
|
||||||
if [ -n "$TEST_XFS_SCRUB" ] && [ -x "$XFS_SCRUB_PROG" ]; then
|
if [ -n "$TEST_XFS_SCRUB" ] && [ -x "$XFS_SCRUB_PROG" ]; then
|
||||||
"$XFS_SCRUB_PROG" $scrubflag -vd $device >>$seqres.full
|
"$XFS_SCRUB_PROG" $scrubflag -v -d -n $device >>$seqres.full
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
_log_err "filesystem on $device failed scrub"
|
_log_err "filesystem on $device failed scrub"
|
||||||
ok=0
|
ok=0
|
||||||
|
|||||||
Reference in New Issue
Block a user