Print this page
8074 need to add FMA event for SSD wearout
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/fm/libdiskstatus/common/ds_impl.h
+++ new/usr/src/lib/fm/libdiskstatus/common/ds_impl.h
1 1 /*
2 2 * CDDL HEADER START
3 3 *
4 4 * The contents of this file are subject to the terms of the
5 5 * Common Development and Distribution License (the "License").
6 6 * You may not use this file except in compliance with the License.
7 7 *
8 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 * or http://www.opensolaris.org/os/licensing.
10 10 * See the License for the specific language governing permissions
11 11 * and limitations under the License.
12 12 *
13 13 * When distributing Covered Code, include this CDDL HEADER in each
↓ open down ↓ |
13 lines elided |
↑ open up ↑ |
14 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 * If applicable, add the following below this CDDL HEADER, with the
16 16 * fields enclosed by brackets "[]" replaced with your own identifying
17 17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 18 *
19 19 * CDDL HEADER END
20 20 */
21 21 /*
22 22 * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
23 23 * Use is subject to license terms.
24 + * Copyright 2016 Nexenta Systems, Inc. All rights reserved.
24 25 */
25 26
26 27 #ifndef _DS_IMPL_H
27 28 #define _DS_IMPL_H
28 29
29 -#pragma ident "%Z%%M% %I% %E% SMI"
30 -
31 30 #include <dlfcn.h>
32 31 #include <libnvpair.h>
33 32 #include <sys/types.h>
34 33
35 34 #ifdef __cplusplus
36 35 extern "C" {
37 36 #endif
38 37
39 38 struct disk_status;
40 39
41 40 typedef struct ds_transport {
42 41 void *(*dt_open)(struct disk_status *);
43 42 void (*dt_close)(void *);
44 43 int (*dt_scan)(void *);
45 44 } ds_transport_t;
↓ open down ↓ |
5 lines elided |
↑ open up ↑ |
46 45
47 46 struct disk_status {
48 47 char *ds_path; /* path to device */
49 48 int ds_fd; /* device file descriptor */
50 49 ds_transport_t *ds_transport; /* associated transport */
51 50 void *ds_data; /* transport-specific data */
52 51 int ds_faults; /* mask of current faults */
53 52 nvlist_t *ds_overtemp; /* overtemp */
54 53 nvlist_t *ds_predfail; /* predict fail */
55 54 nvlist_t *ds_testfail; /* self test fail */
55 + nvlist_t *ds_ssmwearout; /* SSM wearout fail */
56 56 int ds_error; /* last error */
57 57 nvlist_t *ds_state; /* protocol state */
58 58 };
59 59
60 60 #define DS_FAULT_OVERTEMP 0x1
61 61 #define DS_FAULT_PREDFAIL 0x2
62 62 #define DS_FAULT_TESTFAIL 0x4
63 +#define DS_FAULT_SSMWEAROUT 0x8
63 64
64 65 extern void dprintf(const char *, ...);
65 66 extern void ddump(const char *, const void *, size_t);
66 67 extern boolean_t ds_debug;
67 68
68 69 extern int ds_set_errno(struct disk_status *, int);
69 70
70 71 #ifdef __cplusplus
71 72 }
72 73 #endif
73 74
74 75 #endif /* _DS_IMPL_H */
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX