4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or https://opensource.org/licenses/CDDL-1.0.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
22 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
27 * Copyright (c) 2020 by Delphix. All rights reserved.
30 #ifndef _SYS_FM_FS_ZFS_H
31 #define _SYS_FM_FS_ZFS_H
37 #define ZFS_ERROR_CLASS "fs.zfs"
39 #define FM_EREPORT_ZFS_CHECKSUM "checksum"
40 #define FM_EREPORT_ZFS_AUTHENTICATION "authentication"
41 #define FM_EREPORT_ZFS_IO "io"
42 #define FM_EREPORT_ZFS_DATA "data"
43 #define FM_EREPORT_ZFS_DELAY "delay"
44 #define FM_EREPORT_ZFS_DEADMAN "deadman"
45 #define FM_EREPORT_ZFS_POOL "zpool"
46 #define FM_EREPORT_ZFS_DEVICE_UNKNOWN "vdev.unknown"
47 #define FM_EREPORT_ZFS_DEVICE_OPEN_FAILED "vdev.open_failed"
48 #define FM_EREPORT_ZFS_DEVICE_CORRUPT_DATA "vdev.corrupt_data"
49 #define FM_EREPORT_ZFS_DEVICE_NO_REPLICAS "vdev.no_replicas"
50 #define FM_EREPORT_ZFS_DEVICE_BAD_GUID_SUM "vdev.bad_guid_sum"
51 #define FM_EREPORT_ZFS_DEVICE_TOO_SMALL "vdev.too_small"
52 #define FM_EREPORT_ZFS_DEVICE_BAD_LABEL "vdev.bad_label"
53 #define FM_EREPORT_ZFS_DEVICE_BAD_ASHIFT "vdev.bad_ashift"
54 #define FM_EREPORT_ZFS_IO_FAILURE "io_failure"
55 #define FM_EREPORT_ZFS_PROBE_FAILURE "probe_failure"
56 #define FM_EREPORT_ZFS_LOG_REPLAY "log_replay"
57 #define FM_EREPORT_ZFS_CONFIG_CACHE_WRITE "config_cache_write"
59 #define FM_EREPORT_PAYLOAD_ZFS_POOL "pool"
60 #define FM_EREPORT_PAYLOAD_ZFS_POOL_FAILMODE "pool_failmode"
61 #define FM_EREPORT_PAYLOAD_ZFS_POOL_GUID "pool_guid"
62 #define FM_EREPORT_PAYLOAD_ZFS_POOL_CONTEXT "pool_context"
63 #define FM_EREPORT_PAYLOAD_ZFS_POOL_STATE "pool_state"
64 #define FM_EREPORT_PAYLOAD_ZFS_VDEV_GUID "vdev_guid"
65 #define FM_EREPORT_PAYLOAD_ZFS_VDEV_TYPE "vdev_type"
66 #define FM_EREPORT_PAYLOAD_ZFS_VDEV_PATH "vdev_path"
67 #define FM_EREPORT_PAYLOAD_ZFS_VDEV_PHYSPATH "vdev_physpath"
68 #define FM_EREPORT_PAYLOAD_ZFS_VDEV_ENC_SYSFS_PATH "vdev_enc_sysfs_path"
69 #define FM_EREPORT_PAYLOAD_ZFS_VDEV_DEVID "vdev_devid"
70 #define FM_EREPORT_PAYLOAD_ZFS_VDEV_FRU "vdev_fru"
71 #define FM_EREPORT_PAYLOAD_ZFS_VDEV_STATE "vdev_state"
72 #define FM_EREPORT_PAYLOAD_ZFS_VDEV_LASTSTATE "vdev_laststate"
73 #define FM_EREPORT_PAYLOAD_ZFS_VDEV_ASHIFT "vdev_ashift"
74 #define FM_EREPORT_PAYLOAD_ZFS_VDEV_COMP_TS "vdev_complete_ts"
75 #define FM_EREPORT_PAYLOAD_ZFS_VDEV_DELTA_TS "vdev_delta_ts"
76 #define FM_EREPORT_PAYLOAD_ZFS_VDEV_SPARE_PATHS "vdev_spare_paths"
77 #define FM_EREPORT_PAYLOAD_ZFS_VDEV_SPARE_GUIDS "vdev_spare_guids"
78 #define FM_EREPORT_PAYLOAD_ZFS_VDEV_READ_ERRORS "vdev_read_errors"
79 #define FM_EREPORT_PAYLOAD_ZFS_VDEV_WRITE_ERRORS "vdev_write_errors"
80 #define FM_EREPORT_PAYLOAD_ZFS_VDEV_CKSUM_ERRORS "vdev_cksum_errors"
81 #define FM_EREPORT_PAYLOAD_ZFS_VDEV_CKSUM_N "vdev_cksum_n"
82 #define FM_EREPORT_PAYLOAD_ZFS_VDEV_CKSUM_T "vdev_cksum_t"
83 #define FM_EREPORT_PAYLOAD_ZFS_VDEV_IO_N "vdev_io_n"
84 #define FM_EREPORT_PAYLOAD_ZFS_VDEV_IO_T "vdev_io_t"
85 #define FM_EREPORT_PAYLOAD_ZFS_VDEV_SLOW_IO_N "vdev_slow_io_n"
86 #define FM_EREPORT_PAYLOAD_ZFS_VDEV_SLOW_IO_T "vdev_slow_io_t"
87 #define FM_EREPORT_PAYLOAD_ZFS_VDEV_DELAYS "vdev_delays"
88 #define FM_EREPORT_PAYLOAD_ZFS_PARENT_GUID "parent_guid"
89 #define FM_EREPORT_PAYLOAD_ZFS_PARENT_TYPE "parent_type"
90 #define FM_EREPORT_PAYLOAD_ZFS_PARENT_PATH "parent_path"
91 #define FM_EREPORT_PAYLOAD_ZFS_PARENT_DEVID "parent_devid"
92 #define FM_EREPORT_PAYLOAD_ZFS_ZIO_OBJSET "zio_objset"
93 #define FM_EREPORT_PAYLOAD_ZFS_ZIO_OBJECT "zio_object"
94 #define FM_EREPORT_PAYLOAD_ZFS_ZIO_LEVEL "zio_level"
95 #define FM_EREPORT_PAYLOAD_ZFS_ZIO_BLKID "zio_blkid"
96 #define FM_EREPORT_PAYLOAD_ZFS_ZIO_ERR "zio_err"
97 #define FM_EREPORT_PAYLOAD_ZFS_ZIO_OFFSET "zio_offset"
98 #define FM_EREPORT_PAYLOAD_ZFS_ZIO_SIZE "zio_size"
99 #define FM_EREPORT_PAYLOAD_ZFS_ZIO_FLAGS "zio_flags"
100 #define FM_EREPORT_PAYLOAD_ZFS_ZIO_STAGE "zio_stage"
101 #define FM_EREPORT_PAYLOAD_ZFS_ZIO_PRIORITY "zio_priority"
102 #define FM_EREPORT_PAYLOAD_ZFS_ZIO_PIPELINE "zio_pipeline"
103 #define FM_EREPORT_PAYLOAD_ZFS_ZIO_DELAY "zio_delay"
104 #define FM_EREPORT_PAYLOAD_ZFS_ZIO_TIMESTAMP "zio_timestamp"
105 #define FM_EREPORT_PAYLOAD_ZFS_ZIO_DELTA "zio_delta"
106 #define FM_EREPORT_PAYLOAD_ZFS_PREV_STATE "prev_state"
107 #define FM_EREPORT_PAYLOAD_ZFS_CKSUM_ALGO "cksum_algorithm"
108 #define FM_EREPORT_PAYLOAD_ZFS_CKSUM_BYTESWAP "cksum_byteswap"
109 #define FM_EREPORT_PAYLOAD_ZFS_BAD_OFFSET_RANGES "bad_ranges"
110 #define FM_EREPORT_PAYLOAD_ZFS_BAD_RANGE_MIN_GAP "bad_ranges_min_gap"
111 #define FM_EREPORT_PAYLOAD_ZFS_BAD_RANGE_SETS "bad_range_sets"
112 #define FM_EREPORT_PAYLOAD_ZFS_BAD_RANGE_CLEARS "bad_range_clears"
113 #define FM_EREPORT_PAYLOAD_ZFS_BAD_SET_BITS "bad_set_bits"
114 #define FM_EREPORT_PAYLOAD_ZFS_BAD_CLEARED_BITS "bad_cleared_bits"
115 #define FM_EREPORT_PAYLOAD_ZFS_SNAPSHOT_NAME "snapshot_name"
116 #define FM_EREPORT_PAYLOAD_ZFS_DEVICE_NAME "device_name"
117 #define FM_EREPORT_PAYLOAD_ZFS_RAW_DEVICE_NAME "raw_name"
118 #define FM_EREPORT_PAYLOAD_ZFS_VOLUME "volume"
120 #define FM_EREPORT_FAILMODE_WAIT "wait"
121 #define FM_EREPORT_FAILMODE_CONTINUE "continue"
122 #define FM_EREPORT_FAILMODE_PANIC "panic"
124 #define FM_RESOURCE_REMOVED "removed"
125 #define FM_RESOURCE_AUTOREPLACE "autoreplace"
126 #define FM_RESOURCE_STATECHANGE "statechange"
128 #define FM_RESOURCE_ZFS_SNAPSHOT_MOUNT "snapshot_mount"
129 #define FM_RESOURCE_ZFS_SNAPSHOT_UNMOUNT "snapshot_unmount"
130 #define FM_RESOURCE_ZVOL_CREATE_SYMLINK "zvol_create"
131 #define FM_RESOURCE_ZVOL_REMOVE_SYMLINK "zvol_remove"
137 #endif /* _SYS_FM_FS_ZFS_H */