]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit - scrub/xfs_scrub_all.in
xfs_scrub_all: escape service names consistently
authorDarrick J. Wong <djwong@kernel.org>
Fri, 12 Jan 2024 02:07:05 +0000 (18:07 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 12 Jan 2024 02:08:46 +0000 (18:08 -0800)
commit7c4b91c5c119ea4b1e4d7640a64aac7671de36ff
tree6cb66d30953cdbdc7503867b8c4bdac1260cd903
parentdc0611945e7ee98f73b04f4b1b7a88b12d70a413
xfs_scrub_all: escape service names consistently

This program is not consistent as to whether or not it escapes the
pathname that is being used as the xfs_scrub service instance name.
Fix it to be consistent, and to fall back to direct invocation if
escaping doesn't work.  The escaping itself is also broken, but we'll
fix that in the next patch.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
scrub/xfs_scrub_all.in