xfs_scrub_all: fix non-service-mode arguments to xfs_scrub
PATCH 1/1 xfs_scrub_all: fix non-service-mode arguments to xfs_scrub
From: Darrick J. Wong <[email protected]>
Back in commit 7da76e2745d6a7, we changed the default arguments to xfs_scrub for the xfs_scrub@ service to derive the fix/preen/check mode from the "autofsck" filesystem property instead of hardcoding "-p". Unfortunately, I forgot to make the same update for xfs_scrub_all being run from the CLI and directly invoking xfs_scrub.
--- scrub/Makefile | 2 +- scrub/xfs_scrub_all.py.in | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-)
scrub/Makefile +1 -1
@@ -16,7 +16,7 @@ LTCOMMAND = xfs_scrub INSTALL_SCRUB = install-scrub XFS_SCRUB_ALL_PROG = xfs_scrub_all.py XFS_SCRUB_FAIL_PROG = xfs_scrub_fail -XFS_SCRUB_ARGS = -p +XFS_SCRUB_ARGS = -o autofsck XFS_SCRUB_SERVICE_ARGS = -b -o autofsck ifeq ($(HAVE_SYSTEMD),yes) INSTALL_SCRUB += install-systemd
scrub/xfs_scrub_all.py.in +2 -1
@@ -102,7 +102,8 @@ class scrub_subprocess(scrub_control): cmd = ['@sbindir@/xfs_scrub'] if 'SERVICE_MODE' in os.environ: cmd += '@scrub_service_args@'.split() - cmd += '@scrub_args@'.split() + else: + cmd += '@scrub_args@'.split() if scrub_media: cmd += '-x' cmd += [mnt]
Quoted 7 lines · Darrick J. Wong
From: Darrick J. Wong <[email protected]>
Back in commit
7da76e2745d6a7, we changed the default arguments toxfs_scrubfor the xfs_scrub@ service to derive the fix/preen/check mode from the "autofsck" filesystem property instead of hardcoding "-p". Unfortunately, I forgot to make the same update forxfs_scrub_allbeing run from the CLI and directly invokingxfs_scrub.
Looks good: