Go to file
Darrick J. Wong c45ca2925b e2scrub: fix pathname escaping across all service definitions
systemd services provide an "instance name" that can be associated with
a particular invocation of a service.  This allows service users to
invoke multiple copies of a service, each with a unique string.  For
e2scrub, we pass the mountpoint of the filesystem as the instance name.
However, systemd services aren't supposed to have slashes in them, so
we're supposed to escape them.

The canonical escaping scheme for pathnames is defined by the
systemd-escape --path command.  Unfortunately, we've been adding our own
opinionated sauce for years, to work around the fact that --path didn't
quite work right in systemd before January 2017.  The special sauce is
incorrect, and we no longer care about systemd of 7 years past.

Clean up this mess by following the systemd escaping scheme throughout
the service units.  Now we can use the '%f' specifier in them, which
makes things a lot less complicated.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
2023-12-15 12:24:25 -08:00
.github/workflows ci.yml: test cross-compiling for Android 2023-05-30 15:56:38 -04:00
config config: update config.{guess,sub} 2023-02-02 01:03:41 -05:00
contrib AOSP: e2fsdroid: stop disabling address sanitization 2023-01-31 23:58:56 -05:00
debian Merge branch 'maint' into next 2023-08-08 16:01:58 -04:00
debugfs debugfs: Use the hash_version from superblock if a file system is opened 2023-12-02 21:17:55 -05:00
doc Update release notes, etc., for the 1.47.0 release 2023-02-06 22:31:53 -05:00
e2fsck e2fsck: save EXT2_ERROR_FS flag during journal replay 2023-12-01 12:35:33 -05:00
ext2ed Fix various spelling typos 2023-01-26 10:47:04 -05:00
include misc/mk_hugefiles: simplify get_partition_start() 2023-01-27 12:38:31 -05:00
install-utils Remove Changelog files since they're not used after the git migration 2007-07-08 08:50:41 -04:00
lib ext2fs: don't retry discard/zeroout repeatedly 2023-12-01 12:35:33 -05:00
misc tune2fs: fall back to old get/set fs label on error 2023-12-01 12:35:33 -05:00
po Update release notes, etc., for the 1.47.0 release 2023-02-06 22:31:53 -05:00
resize resize2fs: use Direct I/O when reading the superblock for online resizes 2023-06-15 00:17:01 -04:00
scrub e2scrub: fix pathname escaping across all service definitions 2023-12-15 12:24:25 -08:00
tests Merge branch 'maint' into next 2023-06-15 00:29:41 -04:00
util build: split version and release in configure 2023-12-01 11:06:26 -05:00
.gitignore misc: add e2mmpstatus utility via dumpe2fs 2018-06-22 18:22:37 -04:00
.missing-copyright Many files: 1997-04-29 16:15:03 +00:00
.release-checklist Update release notes, etc., for the 1.46.2 release 2021-02-28 21:46:44 -05:00
ABOUT-NLS Update gettext files to version 0.19.8 2020-11-25 11:55:46 -05:00
acinclude.m4 configure: don't fail if /usr/include/sys/mount.h does not exist 2019-11-13 13:55:29 -05:00
aclocal.m4 configure: regenerate 2023-01-27 12:33:59 -05:00
Android.bp AOSP: Android: run bpfmt on all bp files 2023-02-01 00:28:40 -05:00
CleanSpec.mk AOSP: e2fsdroid and mke2fs are dynamic executable in recovery partition 2018-06-27 23:51:40 -04:00
configure build: split version and release in configure 2023-12-01 11:06:26 -05:00
configure.ac build: split version and release in configure 2023-12-01 11:06:26 -05:00
depfix.sed Build the fuzzers from oss-fuzz 2022-08-09 19:45:07 -04:00
e2fsprogs.lsm Update release notes, etc., for the 1.47.0 release 2023-02-06 22:31:53 -05:00
e2fsprogs.spec Update release notes, etc., for the 1.47.0 release 2023-02-06 22:31:53 -05:00
INSTALL Fix typos in code comments and developer docs 2017-10-15 23:00:11 -04:00
INSTALL.elfbin Fix typos in code comments and developer docs 2017-10-15 23:00:11 -04:00
Makefile.in Build the fuzzers from oss-fuzz 2022-08-09 19:45:07 -04:00
MCONFIG.in Build the fuzzers from oss-fuzz 2022-08-09 19:45:07 -04:00
NOTICE e2fsprogs: fix Free Software Foundation address 2018-04-19 11:39:09 -04:00
README Update release notes, etc., for the 1.47.0 release 2023-02-06 22:31:53 -05:00
RELEASE-NOTES Update release notes, etc., for the 1.47.0 release 2023-02-06 22:31:53 -05:00
SHLIBS Many files: 1997-04-29 16:15:03 +00:00
SUBMITTING-PATCHES Added SUBMITTING-PATCHES file 2005-07-05 22:30:13 -05:00
version.h Update release notes, etc., for the 1.47.0 release 2023-02-06 22:31:53 -05:00
wordwrap.pl Fix wordwrap.pl so it is more portable 2012-09-21 12:50:04 -04:00

	This is the new version (1.47.0) of the second extended file
system management programs.

	From time to time, I release new versions of e2fsprogs, to fix
bugs and to make the utilities more robust.  You can always find
information about the latest version at the the e2fsprogs web page,
which is:

	http://e2fsprogs.sourceforge.net

	The INSTALL file has instructions on building and installing
e2fsprogs.  Provisions for building Red Hat RPMs and Debian dpkg files
are supplied as well.

	In case of bugs in these programs, please contact Ted Ts'o at
tytso@mit.edu or tytso@alum.mit.edu.  See the e2fsck man page for
suggestions of what sort of information to include when submitting bug
reports for these programs.