xref: /titanic_50/usr/src/uts/common/sys/fm/fs/zfs.h (revision 3cb69f734bc60bbb4d56a28c83706db862bec082)
1ea8dc4b6Seschrock /*
2ea8dc4b6Seschrock  * CDDL HEADER START
3ea8dc4b6Seschrock  *
4ea8dc4b6Seschrock  * The contents of this file are subject to the terms of the
5ea8dc4b6Seschrock  * Common Development and Distribution License (the "License").
6ea8dc4b6Seschrock  * You may not use this file except in compliance with the License.
7ea8dc4b6Seschrock  *
8ea8dc4b6Seschrock  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9ea8dc4b6Seschrock  * or http://www.opensolaris.org/os/licensing.
10ea8dc4b6Seschrock  * See the License for the specific language governing permissions
11ea8dc4b6Seschrock  * and limitations under the License.
12ea8dc4b6Seschrock  *
13ea8dc4b6Seschrock  * When distributing Covered Code, include this CDDL HEADER in each
14ea8dc4b6Seschrock  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15ea8dc4b6Seschrock  * If applicable, add the following below this CDDL HEADER, with the
16ea8dc4b6Seschrock  * fields enclosed by brackets "[]" replaced with your own identifying
17ea8dc4b6Seschrock  * information: Portions Copyright [yyyy] [name of copyright owner]
18ea8dc4b6Seschrock  *
19ea8dc4b6Seschrock  * CDDL HEADER END
20ea8dc4b6Seschrock  */
21ea8dc4b6Seschrock /*
226809eb4eSEric Schrock  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23ea8dc4b6Seschrock  * Use is subject to license terms.
24ea8dc4b6Seschrock  */
25ea8dc4b6Seschrock 
26ea8dc4b6Seschrock #ifndef	_SYS_FM_FS_ZFS_H
27ea8dc4b6Seschrock #define	_SYS_FM_FS_ZFS_H
28ea8dc4b6Seschrock 
29ea8dc4b6Seschrock #ifdef	__cplusplus
30ea8dc4b6Seschrock extern "C" {
31ea8dc4b6Seschrock #endif
32ea8dc4b6Seschrock 
33ea8dc4b6Seschrock #define	ZFS_ERROR_CLASS				"fs.zfs"
34ea8dc4b6Seschrock 
35ea8dc4b6Seschrock #define	FM_EREPORT_ZFS_CHECKSUM			"checksum"
36ea8dc4b6Seschrock #define	FM_EREPORT_ZFS_IO			"io"
37ea8dc4b6Seschrock #define	FM_EREPORT_ZFS_DATA			"data"
38ea8dc4b6Seschrock #define	FM_EREPORT_ZFS_POOL			"zpool"
39ea8dc4b6Seschrock #define	FM_EREPORT_ZFS_DEVICE_UNKNOWN		"vdev.unknown"
40ea8dc4b6Seschrock #define	FM_EREPORT_ZFS_DEVICE_OPEN_FAILED	"vdev.open_failed"
41ea8dc4b6Seschrock #define	FM_EREPORT_ZFS_DEVICE_CORRUPT_DATA	"vdev.corrupt_data"
42ea8dc4b6Seschrock #define	FM_EREPORT_ZFS_DEVICE_NO_REPLICAS	"vdev.no_replicas"
43ea8dc4b6Seschrock #define	FM_EREPORT_ZFS_DEVICE_BAD_GUID_SUM	"vdev.bad_guid_sum"
44ea8dc4b6Seschrock #define	FM_EREPORT_ZFS_DEVICE_TOO_SMALL		"vdev.too_small"
45ea8dc4b6Seschrock #define	FM_EREPORT_ZFS_DEVICE_BAD_LABEL		"vdev.bad_label"
4632b87932Sek110237 #define	FM_EREPORT_ZFS_IO_FAILURE		"io_failure"
4751ece835Seschrock #define	FM_EREPORT_ZFS_PROBE_FAILURE		"probe_failure"
48b87f3af3Sperrin #define	FM_EREPORT_ZFS_LOG_REPLAY		"log_replay"
49*3cb69f73SWill Andrews #define	FM_EREPORT_ZFS_CONFIG_CACHE_WRITE	"config_cache_write"
50ea8dc4b6Seschrock 
51ea8dc4b6Seschrock #define	FM_EREPORT_PAYLOAD_ZFS_POOL		"pool"
5232b87932Sek110237 #define	FM_EREPORT_PAYLOAD_ZFS_POOL_FAILMODE	"pool_failmode"
53ea8dc4b6Seschrock #define	FM_EREPORT_PAYLOAD_ZFS_POOL_GUID	"pool_guid"
54ea8dc4b6Seschrock #define	FM_EREPORT_PAYLOAD_ZFS_POOL_CONTEXT	"pool_context"
55ea8dc4b6Seschrock #define	FM_EREPORT_PAYLOAD_ZFS_VDEV_GUID	"vdev_guid"
56ea8dc4b6Seschrock #define	FM_EREPORT_PAYLOAD_ZFS_VDEV_TYPE	"vdev_type"
57ea8dc4b6Seschrock #define	FM_EREPORT_PAYLOAD_ZFS_VDEV_PATH	"vdev_path"
58ea8dc4b6Seschrock #define	FM_EREPORT_PAYLOAD_ZFS_VDEV_DEVID	"vdev_devid"
596809eb4eSEric Schrock #define	FM_EREPORT_PAYLOAD_ZFS_VDEV_FRU		"vdev_fru"
60ea8dc4b6Seschrock #define	FM_EREPORT_PAYLOAD_ZFS_PARENT_GUID	"parent_guid"
61ea8dc4b6Seschrock #define	FM_EREPORT_PAYLOAD_ZFS_PARENT_TYPE	"parent_type"
62ea8dc4b6Seschrock #define	FM_EREPORT_PAYLOAD_ZFS_PARENT_PATH	"parent_path"
63ea8dc4b6Seschrock #define	FM_EREPORT_PAYLOAD_ZFS_PARENT_DEVID	"parent_devid"
64ea8dc4b6Seschrock #define	FM_EREPORT_PAYLOAD_ZFS_ZIO_OBJSET	"zio_objset"
65ea8dc4b6Seschrock #define	FM_EREPORT_PAYLOAD_ZFS_ZIO_OBJECT	"zio_object"
66ea8dc4b6Seschrock #define	FM_EREPORT_PAYLOAD_ZFS_ZIO_LEVEL	"zio_level"
67ea8dc4b6Seschrock #define	FM_EREPORT_PAYLOAD_ZFS_ZIO_BLKID	"zio_blkid"
68ea8dc4b6Seschrock #define	FM_EREPORT_PAYLOAD_ZFS_ZIO_ERR		"zio_err"
69ea8dc4b6Seschrock #define	FM_EREPORT_PAYLOAD_ZFS_ZIO_OFFSET	"zio_offset"
70ea8dc4b6Seschrock #define	FM_EREPORT_PAYLOAD_ZFS_ZIO_SIZE		"zio_size"
71ea8dc4b6Seschrock #define	FM_EREPORT_PAYLOAD_ZFS_PREV_STATE	"prev_state"
7222fe2c88SJonathan Adams #define	FM_EREPORT_PAYLOAD_ZFS_CKSUM_EXPECTED	"cksum_expected"
7322fe2c88SJonathan Adams #define	FM_EREPORT_PAYLOAD_ZFS_CKSUM_ACTUAL	"cksum_actual"
7422fe2c88SJonathan Adams #define	FM_EREPORT_PAYLOAD_ZFS_CKSUM_ALGO	"cksum_algorithm"
7522fe2c88SJonathan Adams #define	FM_EREPORT_PAYLOAD_ZFS_CKSUM_BYTESWAP	"cksum_byteswap"
7622fe2c88SJonathan Adams #define	FM_EREPORT_PAYLOAD_ZFS_BAD_OFFSET_RANGES "bad_ranges"
7722fe2c88SJonathan Adams #define	FM_EREPORT_PAYLOAD_ZFS_BAD_RANGE_MIN_GAP "bad_ranges_min_gap"
7822fe2c88SJonathan Adams #define	FM_EREPORT_PAYLOAD_ZFS_BAD_RANGE_SETS	"bad_range_sets"
7922fe2c88SJonathan Adams #define	FM_EREPORT_PAYLOAD_ZFS_BAD_RANGE_CLEARS	"bad_range_clears"
8022fe2c88SJonathan Adams #define	FM_EREPORT_PAYLOAD_ZFS_BAD_SET_BITS	"bad_set_bits"
8122fe2c88SJonathan Adams #define	FM_EREPORT_PAYLOAD_ZFS_BAD_CLEARED_BITS	"bad_cleared_bits"
8222fe2c88SJonathan Adams #define	FM_EREPORT_PAYLOAD_ZFS_BAD_SET_HISTOGRAM "bad_set_histogram"
8322fe2c88SJonathan Adams #define	FM_EREPORT_PAYLOAD_ZFS_BAD_CLEARED_HISTOGRAM "bad_cleared_histogram"
84ea8dc4b6Seschrock 
8532b87932Sek110237 #define	FM_EREPORT_FAILMODE_WAIT		"wait"
8632b87932Sek110237 #define	FM_EREPORT_FAILMODE_CONTINUE		"continue"
8732b87932Sek110237 #define	FM_EREPORT_FAILMODE_PANIC		"panic"
8832b87932Sek110237 
893d7072f8Seschrock #define	FM_RESOURCE_REMOVED			"removed"
903d7072f8Seschrock #define	FM_RESOURCE_AUTOREPLACE			"autoreplace"
91069f55e2SEric Schrock #define	FM_RESOURCE_STATECHANGE			"statechange"
92ea8dc4b6Seschrock 
93ea8dc4b6Seschrock #ifdef	__cplusplus
94ea8dc4b6Seschrock }
95ea8dc4b6Seschrock #endif
96ea8dc4b6Seschrock 
97ea8dc4b6Seschrock #endif	/* _SYS_FM_FS_ZFS_H */
98