Skip to content

Commit

Permalink
xfs: only run scrub in dry run mode
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
djwong authored and Eryu Guan committed Aug 3, 2017
1 parent 6cce857 commit 93d6007
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/xfs
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ _check_xfs_filesystem()

if [ "$type" = "xfs" ]; 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
_log_err "filesystem on $device failed scrub"
ok=0
Expand Down

0 comments on commit 93d6007

Please sign in to comment.