Print this page
3910 t_look(3NSL) should never return T_ERROR

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/fs.d/nfs/lib/nfs_tbind.c
          +++ new/usr/src/cmd/fs.d/nfs/lib/nfs_tbind.c
↓ open down ↓ 15 lines elided ↑ open up ↑
  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) 1996, 2010, Oracle and/or its affiliates. All rights reserved.
  24   24   * Copyright (c) 2012 by Delphix. All rights reserved.
  25   25   * Copyright 2014 Nexenta Systems, Inc.  All rights reserved.
       26 + * Copyright 2014 Gary Mills
  26   27   */
  27   28  
  28   29  
  29   30  /*
  30   31   * nfs_tbind.c, common part for nfsd and lockd.
  31   32   */
  32   33  
  33   34  #include <tiuser.h>
  34   35  #include <fcntl.h>
  35   36  #include <netconfig.h>
↓ open down ↓ 1546 lines elided ↑ open up ↑
1582 1583                                  nfslib_log_tli_error("t_rcvdis", fd, nconf);
1583 1584  
1584 1585                          /*
1585 1586                           * T_DISCONNECT on listen fd's should be ignored.
1586 1587                           */
1587 1588                          if (is_listen_fd_index(conn_index))
1588 1589                                  break;
1589 1590                          else
1590 1591                                  goto fdclose;
1591 1592  
1592      -                case T_ERROR:
1593 1593                  default:
1594      -                        if (event == T_ERROR || t_errno == TSYSERR) {
     1594 +                        if (t_errno == TSYSERR) {
1595 1595                                  if ((errorstr = strerror(errno)) == NULL) {
1596 1596                                          (void) sprintf(buf,
1597 1597                                              "Unknown error num %d", errno);
1598 1598                                          errorstr = (const char *) buf;
1599 1599                                  }
1600 1600                          } else if (event == -1)
1601 1601                                  errorstr = t_strerror(t_errno);
1602 1602                          else
1603 1603                                  errorstr = "";
1604 1604                          syslog(LOG_ERR,
↓ open down ↓ 178 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX