xfs: add error injection to test file mapping exchange recovery
authorDarrick J. Wong <djwong@kernel.org>
Mon, 15 Apr 2024 21:54:19 +0000 (14:54 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 15 Apr 2024 21:54:19 +0000 (14:54 -0700)
commit5fd022ec7d420dfca1eaaf997923a5d4dd0dcf62
treeb02bec719ec4c022d43fb806744d83fb4b29934b
parent42672471f938cdab2573f32ce23915b78f0578f4
xfs: add error injection to test file mapping exchange recovery

Add an errortag so that we can test recovery of exchmaps log items.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/libxfs/xfs_errortag.h
fs/xfs/libxfs/xfs_exchmaps.c
fs/xfs/xfs_error.c