linux/fs/xfs/libxfs/xfs_errortag.h

/* SPDX-License-Identifier: GPL-2.0+ */
/*
 * Copyright (c) 2000-2002,2005 Silicon Graphics, Inc.
 * Copyright (C) 2017 Oracle.
 * All Rights Reserved.
 */
#ifndef __XFS_ERRORTAG_H_
#define __XFS_ERRORTAG_H_

/*
 * error injection tags - the labels can be anything you want
 * but each tag should have its own unique number
 */

#define XFS_ERRTAG_NOERROR
#define XFS_ERRTAG_IFLUSH_1
#define XFS_ERRTAG_IFLUSH_2
#define XFS_ERRTAG_IFLUSH_3
#define XFS_ERRTAG_IFLUSH_4
#define XFS_ERRTAG_IFLUSH_5
#define XFS_ERRTAG_IFLUSH_6
#define XFS_ERRTAG_DA_READ_BUF
#define XFS_ERRTAG_BTREE_CHECK_LBLOCK
#define XFS_ERRTAG_BTREE_CHECK_SBLOCK
#define XFS_ERRTAG_ALLOC_READ_AGF
#define XFS_ERRTAG_IALLOC_READ_AGI
#define XFS_ERRTAG_ITOBP_INOTOBP
#define XFS_ERRTAG_IUNLINK
#define XFS_ERRTAG_IUNLINK_REMOVE
#define XFS_ERRTAG_DIR_INO_VALIDATE
#define XFS_ERRTAG_BULKSTAT_READ_CHUNK
#define XFS_ERRTAG_IODONE_IOERR
#define XFS_ERRTAG_STRATREAD_IOERR
#define XFS_ERRTAG_STRATCMPL_IOERR
#define XFS_ERRTAG_DIOWRITE_IOERR
#define XFS_ERRTAG_BMAPIFORMAT
#define XFS_ERRTAG_FREE_EXTENT
#define XFS_ERRTAG_RMAP_FINISH_ONE
#define XFS_ERRTAG_REFCOUNT_CONTINUE_UPDATE
#define XFS_ERRTAG_REFCOUNT_FINISH_ONE
#define XFS_ERRTAG_BMAP_FINISH_ONE
#define XFS_ERRTAG_AG_RESV_CRITICAL

/*
 * Drop-writes support removed because write error handling cannot trash
 * pre-existing delalloc extents in any useful way anymore. We retain the
 * definition so that we can reject it as an invalid value in
 * xfs_errortag_valid().
 */
#define XFS_ERRTAG_DROP_WRITES
#define XFS_ERRTAG_LOG_BAD_CRC
#define XFS_ERRTAG_LOG_ITEM_PIN
#define XFS_ERRTAG_BUF_LRU_REF
#define XFS_ERRTAG_FORCE_SCRUB_REPAIR
#define XFS_ERRTAG_FORCE_SUMMARY_RECALC
#define XFS_ERRTAG_IUNLINK_FALLBACK
#define XFS_ERRTAG_BUF_IOERROR
#define XFS_ERRTAG_REDUCE_MAX_IEXTENTS
#define XFS_ERRTAG_BMAP_ALLOC_MINLEN_EXTENT
#define XFS_ERRTAG_AG_RESV_FAIL
#define XFS_ERRTAG_LARP
#define XFS_ERRTAG_DA_LEAF_SPLIT
#define XFS_ERRTAG_ATTR_LEAF_TO_NODE
#define XFS_ERRTAG_WB_DELAY_MS
#define XFS_ERRTAG_WRITE_DELAY_MS
#define XFS_ERRTAG_EXCHMAPS_FINISH_ONE
#define XFS_ERRTAG_MAX

/*
 * Random factors for above tags, 1 means always, 2 means 1/2 time, etc.
 */
#define XFS_RANDOM_DEFAULT
#define XFS_RANDOM_IFLUSH_1
#define XFS_RANDOM_IFLUSH_2
#define XFS_RANDOM_IFLUSH_3
#define XFS_RANDOM_IFLUSH_4
#define XFS_RANDOM_IFLUSH_5
#define XFS_RANDOM_IFLUSH_6
#define XFS_RANDOM_DA_READ_BUF
#define XFS_RANDOM_BTREE_CHECK_LBLOCK
#define XFS_RANDOM_BTREE_CHECK_SBLOCK
#define XFS_RANDOM_ALLOC_READ_AGF
#define XFS_RANDOM_IALLOC_READ_AGI
#define XFS_RANDOM_ITOBP_INOTOBP
#define XFS_RANDOM_IUNLINK
#define XFS_RANDOM_IUNLINK_REMOVE
#define XFS_RANDOM_DIR_INO_VALIDATE
#define XFS_RANDOM_BULKSTAT_READ_CHUNK
#define XFS_RANDOM_IODONE_IOERR
#define XFS_RANDOM_STRATREAD_IOERR
#define XFS_RANDOM_STRATCMPL_IOERR
#define XFS_RANDOM_DIOWRITE_IOERR
#define XFS_RANDOM_BMAPIFORMAT
#define XFS_RANDOM_FREE_EXTENT
#define XFS_RANDOM_RMAP_FINISH_ONE
#define XFS_RANDOM_REFCOUNT_CONTINUE_UPDATE
#define XFS_RANDOM_REFCOUNT_FINISH_ONE
#define XFS_RANDOM_BMAP_FINISH_ONE
#define XFS_RANDOM_AG_RESV_CRITICAL
#define XFS_RANDOM_LOG_BAD_CRC
#define XFS_RANDOM_LOG_ITEM_PIN
#define XFS_RANDOM_BUF_LRU_REF
#define XFS_RANDOM_FORCE_SCRUB_REPAIR
#define XFS_RANDOM_FORCE_SUMMARY_RECALC
#define XFS_RANDOM_IUNLINK_FALLBACK
#define XFS_RANDOM_BUF_IOERROR
#define XFS_RANDOM_REDUCE_MAX_IEXTENTS
#define XFS_RANDOM_BMAP_ALLOC_MINLEN_EXTENT
#define XFS_RANDOM_AG_RESV_FAIL
#define XFS_RANDOM_LARP
#define XFS_RANDOM_DA_LEAF_SPLIT
#define XFS_RANDOM_ATTR_LEAF_TO_NODE
#define XFS_RANDOM_WB_DELAY_MS
#define XFS_RANDOM_WRITE_DELAY_MS
#define XFS_RANDOM_EXCHMAPS_FINISH_ONE

#endif /* __XFS_ERRORTAG_H_ */