Print this page
195 Need replacement for nfs/lockd+klm

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/fs.d/nfs/statd/sm_statd.h
          +++ new/usr/src/cmd/fs.d/nfs/statd/sm_statd.h
↓ open down ↓ 29 lines elided ↑ open up ↑
  30   30  /*
  31   31   * University Copyright- Copyright (c) 1982, 1986, 1988
  32   32   * The Regents of the University of California
  33   33   * All Rights Reserved
  34   34   *
  35   35   * University Acknowledgment- Portions of this document are derived from
  36   36   * software developed by the University of California, Berkeley, and its
  37   37   * contributors.
  38   38   */
  39   39  
       40 +/*
       41 + * Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
       42 + * Copyright (c) 2012 by Delphix. All rights reserved.
       43 + */
       44 +
  40   45  #ifndef _SM_STATD_H
  41   46  #define _SM_STATD_H
  42   47  
  43      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  44      -
  45   48  #ifdef __cplusplus
  46   49  extern "C" {
  47   50  #endif
  48   51  
  49   52  /* Limit defines */
  50   53  #define SM_DIRECTORY_MODE 00755
  51   54  #define MAX_HASHSIZE 50
  52   55  #define SM_RPC_TIMEOUT  15
  53   56  #define PERCENT_MINJOIN 10
  54   57  #define MAX_FDS 256
↓ open down ↓ 120 lines elided ↑ open up ↑
 175  178   * only under a HA configuration.
 176  179   */
 177  180  extern char **path_name; /* store -p opts */
 178  181  extern int  pathix; /* # of -p entries */
 179  182  
 180  183  /* Function prototypes used in program */
 181  184  extern int      create_file(char *name);
 182  185  extern void     delete_file(char *name);
 183  186  extern void     record_name(char *name, int op);
 184  187  extern void     sm_crash(void);
 185      -extern void     sm_notify(stat_chge *ntfp);
 186  188  extern void     statd_init();
 187  189  extern void     merge_hosts(void);
 188      -extern CLIENT   *create_client(char *, int, int, struct timeval *);
      190 +extern void     merge_ips(void);
      191 +extern CLIENT   *create_client(char *, int, int, char *, struct timeval *);
 189  192  extern char     *xmalloc(unsigned);
 190      -extern void     sm_status(sm_name *namep, sm_stat_res *resp);
 191      -extern void     sm_mon(mon *monp, sm_stat_res *resp);
 192      -extern void     sm_unmon(mon_id *monidp, sm_stat *resp);
 193      -extern void     sm_unmon_all(my_id *myidp, sm_stat *resp);
 194      -extern void     sm_simu_crash(void *myidp);
      193 +
      194 +/*
      195 + * RPC service functions, slightly different here than the
      196 + * generated ones in sm_inter.h
      197 + */
      198 +extern void     nsmaddrproc1_reg(reg1args *, reg1res *);
      199 +extern void     sm_stat_svc(sm_name *namep, sm_stat_res *resp);
      200 +extern void     sm_mon_svc(mon *monp, sm_stat_res *resp);
      201 +extern void     sm_unmon_svc(mon_id *monidp, sm_stat *resp);
      202 +extern void     sm_unmon_all_svc(my_id *myidp, sm_stat *resp);
      203 +extern void     sm_simu_crash_svc(void *myidp);
      204 +extern void     sm_notify_svc(stat_chge *ntfp);
      205 +
 195  206  extern void     sm_inithash();
 196  207  extern void     copydir_from_to(char *from_dir, char *to_dir);
 197  208  extern int      str_cmp_unqual_hostname(char *, char *);
 198      -extern void     nsmaddrproc1_reg(reg1args *, reg1res *);
 199  209  extern void     record_addr(char *name, sa_family_t family, struct netobj *ah);
 200  210  extern int      is_symlink(char *file);
 201  211  extern int      create_symlink(char *todir, char *rname, char *lname);
 202  212  extern int      str_cmp_address_specifier(char *specifier1, char *specifier2);
 203  213  
 204  214  #ifdef __cplusplus
 205  215  }
 206  216  #endif
 207  217  
 208  218  #endif /* _SM_STATD_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX