author | perrin |
Mon, 04 Aug 2008 20:36:57 -0700 | |
changeset 7294 | c9c31ef4c960 |
parent 6976 | cae5f06df471 |
child 9425 | e7ffacaec3a8 |
permissions | -rw-r--r-- |
1544 | 1 |
/* |
2 |
* CDDL HEADER START |
|
3 |
* |
|
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. |
|
7 |
* |
|
8 |
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
9 |
* or http://www.opensolaris.org/os/licensing. |
|
10 |
* See the License for the specific language governing permissions |
|
11 |
* and limitations under the License. |
|
12 |
* |
|
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] |
|
18 |
* |
|
19 |
* CDDL HEADER END |
|
20 |
*/ |
|
21 |
/* |
|
6523
c1d2a7f04573
6616739 panic message ZFS: I/O failure (write on <unknown> is not very helpful
ek110237
parents:
4451
diff
changeset
|
22 |
* Copyright 2008 Sun Microsystems, Inc. All rights reserved. |
1544 | 23 |
* Use is subject to license terms. |
24 |
*/ |
|
25 |
||
26 |
#ifndef _SYS_FM_FS_ZFS_H |
|
27 |
#define _SYS_FM_FS_ZFS_H |
|
28 |
||
29 |
#pragma ident "%Z%%M% %I% %E% SMI" |
|
30 |
||
31 |
#ifdef __cplusplus |
|
32 |
extern "C" { |
|
33 |
#endif |
|
34 |
||
35 |
#define ZFS_ERROR_CLASS "fs.zfs" |
|
36 |
||
37 |
#define FM_EREPORT_ZFS_CHECKSUM "checksum" |
|
38 |
#define FM_EREPORT_ZFS_IO "io" |
|
39 |
#define FM_EREPORT_ZFS_DATA "data" |
|
40 |
#define FM_EREPORT_ZFS_POOL "zpool" |
|
41 |
#define FM_EREPORT_ZFS_DEVICE_UNKNOWN "vdev.unknown" |
|
42 |
#define FM_EREPORT_ZFS_DEVICE_OPEN_FAILED "vdev.open_failed" |
|
43 |
#define FM_EREPORT_ZFS_DEVICE_CORRUPT_DATA "vdev.corrupt_data" |
|
44 |
#define FM_EREPORT_ZFS_DEVICE_NO_REPLICAS "vdev.no_replicas" |
|
45 |
#define FM_EREPORT_ZFS_DEVICE_BAD_GUID_SUM "vdev.bad_guid_sum" |
|
46 |
#define FM_EREPORT_ZFS_DEVICE_TOO_SMALL "vdev.too_small" |
|
47 |
#define FM_EREPORT_ZFS_DEVICE_BAD_LABEL "vdev.bad_label" |
|
6523
c1d2a7f04573
6616739 panic message ZFS: I/O failure (write on <unknown> is not very helpful
ek110237
parents:
4451
diff
changeset
|
48 |
#define FM_EREPORT_ZFS_IO_FAILURE "io_failure" |
6976
cae5f06df471
PSARC 2008/388 Short circuit for vdev probe failure
eschrock
parents:
6643
diff
changeset
|
49 |
#define FM_EREPORT_ZFS_PROBE_FAILURE "probe_failure" |
7294 | 50 |
#define FM_EREPORT_ZFS_LOG_REPLAY "log_replay" |
1544 | 51 |
|
52 |
#define FM_EREPORT_PAYLOAD_ZFS_POOL "pool" |
|
6523
c1d2a7f04573
6616739 panic message ZFS: I/O failure (write on <unknown> is not very helpful
ek110237
parents:
4451
diff
changeset
|
53 |
#define FM_EREPORT_PAYLOAD_ZFS_POOL_FAILMODE "pool_failmode" |
1544 | 54 |
#define FM_EREPORT_PAYLOAD_ZFS_POOL_GUID "pool_guid" |
55 |
#define FM_EREPORT_PAYLOAD_ZFS_POOL_CONTEXT "pool_context" |
|
56 |
#define FM_EREPORT_PAYLOAD_ZFS_VDEV_GUID "vdev_guid" |
|
57 |
#define FM_EREPORT_PAYLOAD_ZFS_VDEV_TYPE "vdev_type" |
|
58 |
#define FM_EREPORT_PAYLOAD_ZFS_VDEV_PATH "vdev_path" |
|
59 |
#define FM_EREPORT_PAYLOAD_ZFS_VDEV_DEVID "vdev_devid" |
|
60 |
#define FM_EREPORT_PAYLOAD_ZFS_PARENT_GUID "parent_guid" |
|
61 |
#define FM_EREPORT_PAYLOAD_ZFS_PARENT_TYPE "parent_type" |
|
62 |
#define FM_EREPORT_PAYLOAD_ZFS_PARENT_PATH "parent_path" |
|
63 |
#define FM_EREPORT_PAYLOAD_ZFS_PARENT_DEVID "parent_devid" |
|
64 |
#define FM_EREPORT_PAYLOAD_ZFS_ZIO_OBJSET "zio_objset" |
|
65 |
#define FM_EREPORT_PAYLOAD_ZFS_ZIO_OBJECT "zio_object" |
|
66 |
#define FM_EREPORT_PAYLOAD_ZFS_ZIO_LEVEL "zio_level" |
|
67 |
#define FM_EREPORT_PAYLOAD_ZFS_ZIO_BLKID "zio_blkid" |
|
68 |
#define FM_EREPORT_PAYLOAD_ZFS_ZIO_ERR "zio_err" |
|
69 |
#define FM_EREPORT_PAYLOAD_ZFS_ZIO_OFFSET "zio_offset" |
|
70 |
#define FM_EREPORT_PAYLOAD_ZFS_ZIO_SIZE "zio_size" |
|
71 |
#define FM_EREPORT_PAYLOAD_ZFS_PREV_STATE "prev_state" |
|
72 |
||
6523
c1d2a7f04573
6616739 panic message ZFS: I/O failure (write on <unknown> is not very helpful
ek110237
parents:
4451
diff
changeset
|
73 |
#define FM_EREPORT_FAILMODE_WAIT "wait" |
c1d2a7f04573
6616739 panic message ZFS: I/O failure (write on <unknown> is not very helpful
ek110237
parents:
4451
diff
changeset
|
74 |
#define FM_EREPORT_FAILMODE_CONTINUE "continue" |
c1d2a7f04573
6616739 panic message ZFS: I/O failure (write on <unknown> is not very helpful
ek110237
parents:
4451
diff
changeset
|
75 |
#define FM_EREPORT_FAILMODE_PANIC "panic" |
c1d2a7f04573
6616739 panic message ZFS: I/O failure (write on <unknown> is not very helpful
ek110237
parents:
4451
diff
changeset
|
76 |
|
4451 | 77 |
#define FM_RESOURCE_REMOVED "removed" |
78 |
#define FM_RESOURCE_AUTOREPLACE "autoreplace" |
|
1544 | 79 |
|
80 |
#ifdef __cplusplus |
|
81 |
} |
|
82 |
#endif |
|
83 |
||
84 |
#endif /* _SYS_FM_FS_ZFS_H */ |