]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfsprogs-dev.git/log
xfsprogs-dev.git
6 months agoxfs_io: use the XFS_ERRTAG macro to generate injection targets
Christoph Hellwig [Mon, 15 Sep 2025 13:33:17 +0000 (06:33 -0700)]
xfs_io: use the XFS_ERRTAG macro to generate injection targets

Use the new magic macro table provided by libxfs to autogenerate
the list of valid error injection targets.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
6 months agoxfs: centralize error tag definitions
Andrey Albershteyn [Mon, 24 Nov 2025 14:24:27 +0000 (15:24 +0100)]
xfs: centralize error tag definitions

From: Christoph Hellwig <hch@lst.de>

Source kernel commit: 71fa062196ae3abab790c91f1bdf09dcdc6fb1fe

Right now 5 places in the kernel and one in xfsprogs need to be updated
for each new error tag.  Add a bit of macro magic so that only the
error tag definition and a single table, which reside next to each
other, need to be updated.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
Signed-off-by: Andrey Albershteyn <aalbersh@kernel.org>