Print this page
NEX-16536 SUN-IREPORT-MIB is broken
NEX-16537 enhance FM traps
NEX-16545 SMF dict should have obsolete entries removed
Reviewed by: Dan Fields <dan.fields@nexenta.com>
Reviewed by: Cynthia Eastham <cynthia.eastham@nexenta.com>
Reviewed by: Alexander Eremin <alexander.eremin@nexenta.com>
Reviewed by: Evan Layton <evan.layton@nexenta.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/fm/libfmnotify/common/libfmnotify.h
          +++ new/usr/src/lib/fm/libfmnotify/common/libfmnotify.h
↓ open down ↓ 14 lines elided ↑ open up ↑
  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  /*
  23   23   * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
  24   24   */
       25 +
       26 +/*
       27 + * Copyright 2018 Nexenta Systems, Inc.
       28 + */
       29 +
  25   30  #ifndef _LIBFMNOTIFY_H
  26   31  #define _LIBFMNOTIFY_H
  27   32  
  28   33  #include <stdio.h>
  29   34  #include <stdlib.h>
  30   35  #include <string.h>
  31   36  #include <alloca.h>
  32   37  #include <errno.h>
  33   38  #include <libscf.h>
  34   39  #include <limits.h>
↓ open down ↓ 24 lines elided ↑ open up ↑
  59   64          FILE            *nh_log_fd;
  60   65          char            *nh_rootdir;
  61   66          const char      *nh_pname;
  62   67  } nd_hdl_t;
  63   68  
  64   69  const char FMNOTIFY_MSG_DOMAIN[] = "FMNOTIFY";
  65   70  
  66   71  typedef struct nd_ev_info {
  67   72          fmev_t ei_ev;
  68   73          const char *ei_class;
  69      -        char *ei_descr;
  70      -        char *ei_severity;
       74 +        char *ei_uuid;
  71   75          char *ei_diagcode;
       76 +        char *ei_type;
       77 +        char *ei_severity;
  72   78          char *ei_url;
  73      -        char *ei_uuid;
       79 +        char *ei_descr;
  74   80          char *ei_fmri;
  75   81          char *ei_from_state;
  76   82          char *ei_to_state;
  77   83          char *ei_reason;
  78   84          nvlist_t *ei_payload;
  79   85  } nd_ev_info_t;
  80   86  
  81      -
  82   87  void nd_cleanup(nd_hdl_t *);
  83   88  void nd_dump_nvlist(nd_hdl_t *, nvlist_t *);
  84   89  void nd_debug(nd_hdl_t *, const char *, ...);
  85   90  void nd_error(nd_hdl_t *, const char *, ...);
  86   91  void nd_abort(nd_hdl_t *, const char *, ...);
  87   92  void nd_daemonize(nd_hdl_t *);
  88   93  int nd_get_boolean_prop(nd_hdl_t *, const char *, const char *, const char *,
  89   94      uint8_t *);
  90   95  int nd_get_astring_prop(nd_hdl_t *, const char *, const char *, const char *,
  91   96      char **);
↓ open down ↓ 18 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX