Print this page
195 Need replacement for nfs/lockd+klm
Reviewed by: Gordon Ross <gordon.ross@nexenta.com>
Reviewed by: Jeremy Jones <jeremy@delphix.com>
Reviewed by: Jeff Biseda <jbiseda@delphix.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/rpcsvc/sm_inter.x
          +++ new/usr/src/uts/common/rpcsvc/sm_inter.x
↓ open down ↓ 18 lines elided ↑ open up ↑
  19   19   *
  20   20   * CDDL HEADER END
  21   21   */
  22   22  %/*
  23   23  % * Copyright (c) 1986, 1994 by Sun Microsystems, Inc.
  24   24  % * All rights reserved.
  25   25  % */
  26   26  
  27   27  %/* from sm_inter.x */
  28   28  
  29      -#ifdef RPC_HDR
  30      -%
  31      -%#pragma ident  "%Z%%M% %I%     %E% SMI"
  32      -%
  33      -#endif
  34      -
  35   29  /*
  36   30   * Status monitor protocol specification
  37   31   */
  38   32  
  39   33  program SM_PROG {
  40   34          version SM_VERS  {
  41   35                  /* res_stat = stat_succ if status monitor agrees to monitor */
  42   36                  /* res_stat = stat_fail if status monitor cannot monitor */
  43   37                  /* if res_stat == stat_succ, state = state number of site */
  44   38                  /* sm_name */
↓ open down ↓ 46 lines elided ↑ open up ↑
  91   85  /*
  92   86   * state # of status monitor monitonically increases each time
  93   87   * status of the site changes:
  94   88   * an even number (>= 0) indicates the site is down and
  95   89   * an odd number (> 0) indicates the site is up;
  96   90   */
  97   91  struct sm_stat {
  98   92          int state;              /* state # of status monitor */
  99   93  };
 100   94  
 101      -enum res {
       95 +enum sm_res {
 102   96          stat_succ = 0,          /* status monitor agrees to monitor */
 103   97          stat_fail = 1           /* status monitor cannot monitor */
 104   98  };
 105   99  
 106  100  struct sm_stat_res {
 107      -        res res_stat;
      101 +        sm_res res_stat;
 108  102          int state;
 109  103  };
 110  104  
 111  105  /*
 112  106   * structure of the status message sent by the status monitor to the
 113  107   * requesting program when a monitored site changes status.
 114  108   */
 115      -struct status {
      109 +struct sm_status {
 116  110          string mon_name<SM_MAXSTRLEN>;
 117  111          int state;
 118  112          opaque priv[16];                /* stored private information */
 119  113  };
 120  114  
 121  115  /*
 122  116   * structure sent between statd's to announce a state change (e.g.,
 123  117   * reboot).
 124  118   */
 125  119  struct stat_chge {
 126  120          string mon_name<SM_MAXSTRLEN>;
 127  121          int state;
 128  122  };
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX