From: Darrick J. Wong Date: Tue, 25 Oct 2016 22:14:33 +0000 (-0700) Subject: xfs_io: add refcount+bmap error injection types X-Git-Tag: v4.9.0-rc1~47 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a136ec62b283e57effa41f3dfdbc04dde1bbef2b;p=thirdparty%2Fxfsprogs-dev.git xfs_io: add refcount+bmap error injection types Add refcount and bmap deferred finish to the types of errors we can inject. Signed-off-by: Darrick J. Wong Reviewed-by: Christoph Hellwig --- diff --git a/io/inject.c b/io/inject.c index 16ac9259e..56642b8ad 100644 --- a/io/inject.c +++ b/io/inject.c @@ -78,7 +78,13 @@ error_tag(char *name) { XFS_ERRTAG_FREE_EXTENT, "free_extent" }, #define XFS_ERRTAG_RMAP_FINISH_ONE 23 { XFS_ERRTAG_RMAP_FINISH_ONE, "rmap_finish_one" }, -#define XFS_ERRTAG_MAX 24 +#define XFS_ERRTAG_REFCOUNT_CONTINUE_UPDATE 24 + { XFS_ERRTAG_REFCOUNT_CONTINUE_UPDATE, "refcount_continue_update" }, +#define XFS_ERRTAG_REFCOUNT_FINISH_ONE 25 + { XFS_ERRTAG_REFCOUNT_FINISH_ONE, "refcount_finish_one" }, +#define XFS_ERRTAG_BMAP_FINISH_ONE 26 + { XFS_ERRTAG_BMAP_FINISH_ONE, "bmap_finish_one" }, +#define XFS_ERRTAG_MAX 27 { XFS_ERRTAG_MAX, NULL } }; int count;