]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: add error injection for per-AG resv failure
authorGao Xiang <hsiangkao@redhat.com>
Wed, 30 Jun 2021 22:28:38 +0000 (18:28 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Wed, 30 Jun 2021 22:28:38 +0000 (18:28 -0400)
commitc4add24c9cefb5237ef06aca025c3e66dc545856
tree02c410ab77965aee8b473c32476f9527d1a4956b
parentf63a38ffa9f707b091a0e535af07050d62666688
xfs: add error injection for per-AG resv failure

Source kernel commit: 2b92faed551173f065ee2a8cf087dc76cf40303b

per-AG resv failure after fixing up freespace is hard to test in an
effective way, so directly add an error injection path to observe
such error handling path works as expected.

Signed-off-by: Gao Xiang <hsiangkao@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
io/inject.c
libxfs/xfs_ag_resv.c
libxfs/xfs_errortag.h