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
↓ 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  
↓ 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