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.c
          +++ new/usr/src/cmd/fs.d/nfs/statd/sm_statd.c
↓ open down ↓ 28 lines elided ↑ open up ↑
  29   29  /*
  30   30   * University Copyright- Copyright (c) 1982, 1986, 1988
  31   31   * The Regents of the University of California
  32   32   * All Rights Reserved
  33   33   *
  34   34   * University Acknowledgment- Portions of this document are derived from
  35   35   * software developed by the University of California, Berkeley, and its
  36   36   * contributors.
  37   37   */
  38   38  
       39 +/*
       40 + * Copyright (c) 2012 by Delphix. All rights reserved.
       41 + */
       42 +
  39   43  #pragma ident   "%Z%%M% %I%     %E% SMI"
  40   44  
  41   45  /*
  42   46   * sm_statd.c consists of routines used for the intermediate
  43   47   * statd implementation(3.2 rpc.statd);
  44   48   * it creates an entry in "current" directory for each site that it monitors;
  45   49   * after crash and recovery, it moves all entries in "current"
  46   50   * to "backup" directory, and notifies the corresponding statd of its recovery.
  47   51   */
  48   52  
↓ open down ↓ 525 lines elided ↑ open up ↑
 574  578           * This may change in a future release.
 575  579           */
 576  580          if (debug) {
 577  581                  (void) printf("statd_call_statd: calling create_client(%s)\n",
 578  582                                  name_or_addr);
 579  583          }
 580  584  
 581  585          tottimeout.tv_sec = SM_RPC_TIMEOUT;
 582  586          tottimeout.tv_usec = 0;
 583  587  
 584      -        if ((clnt = create_client(name_or_addr, SM_PROG, SM_VERS,
 585      -            &tottimeout)) == (CLIENT *) NULL) {
      588 +        if ((clnt = create_client(name_or_addr, SM_PROG, SM_VERS, NULL,
      589 +            &tottimeout)) == NULL) {
 586  590                  return (-1);
 587  591          }
 588  592  
 589  593          /* Perform notification to client */
 590  594          rc = 0;
 591  595          clnt_stat = clnt_call(clnt, SM_NOTIFY, xdr_stat_chge, (char *)&ntf,
 592  596              xdr_void, NULL, tottimeout);
 593  597          if (debug) {
 594  598                  (void) printf("clnt_stat=%s(%d)\n",
 595  599                          clnt_sperrno(clnt_stat), clnt_stat);
↓ open down ↓ 959 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX