summaryrefslogtreecommitdiff
path: root/usr/src/lib/fm/libdiskstatus/common/ds_impl.h
diff options
context:
space:
mode:
authorAlek Pinchuk <apinchuk@datto.com>2017-10-14 18:19:05 -0700
committerDan McDonald <danmcd@joyent.com>2017-10-31 20:55:33 -0400
commit0244979b1714a04f23ac9fa8367e59f6fb75d8f3 (patch)
treec62ded5775f0e0efe95f509a65dba5e386e1367e /usr/src/lib/fm/libdiskstatus/common/ds_impl.h
parent11c2233db8e23e91bc416bff8a4f6f3a0f84b12c (diff)
downloadillumos-gate-0244979b1714a04f23ac9fa8367e59f6fb75d8f3.tar.gz
8074 need to add FMA event for SSD wearout
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com> Reviewed by: Robert Mustacchi <rm@joyent.com> Reviewed by: Ken Mays <maybird1776@yahoo.com> Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/lib/fm/libdiskstatus/common/ds_impl.h')
-rw-r--r--usr/src/lib/fm/libdiskstatus/common/ds_impl.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/src/lib/fm/libdiskstatus/common/ds_impl.h b/usr/src/lib/fm/libdiskstatus/common/ds_impl.h
index 34f8b15d75..8b8132791d 100644
--- a/usr/src/lib/fm/libdiskstatus/common/ds_impl.h
+++ b/usr/src/lib/fm/libdiskstatus/common/ds_impl.h
@@ -21,13 +21,12 @@
/*
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright 2016 Nexenta Systems, Inc. All rights reserved.
*/
#ifndef _DS_IMPL_H
#define _DS_IMPL_H
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include <dlfcn.h>
#include <libnvpair.h>
#include <sys/types.h>
@@ -53,6 +52,7 @@ struct disk_status {
nvlist_t *ds_overtemp; /* overtemp */
nvlist_t *ds_predfail; /* predict fail */
nvlist_t *ds_testfail; /* self test fail */
+ nvlist_t *ds_ssmwearout; /* SSM wearout fail */
int ds_error; /* last error */
nvlist_t *ds_state; /* protocol state */
};
@@ -60,6 +60,7 @@ struct disk_status {
#define DS_FAULT_OVERTEMP 0x1
#define DS_FAULT_PREDFAIL 0x2
#define DS_FAULT_TESTFAIL 0x4
+#define DS_FAULT_SSMWEAROUT 0x8
extern void dprintf(const char *, ...);
extern void ddump(const char *, const void *, size_t);