Print this page
NEX-16818 Add fksmbcl development tool
NEX-17264 SMB client test tp_smbutil_013 fails after NEX-14666
Reviewed by: Evan Layton <evan.layton@nexenta.com>
Reviewed by: Matt Barden <matt.barden@nexenta.com>
and: (fix ref leaks)
re #13613 rb4516 Tunables needs volatile keyword

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/dnlc.h
          +++ new/usr/src/uts/common/sys/dnlc.h
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  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   * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
       23 + * Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
  23   24   */
  24   25  
  25   26  /*      Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T     */
  26   27  /*        All Rights Reserved   */
  27   28  
  28   29  /*
  29   30   * University Copyright- Copyright (c) 1982, 1986, 1988
  30   31   * The Regents of the University of California
  31   32   * All Rights Reserved
  32   33   *
↓ open down ↓ 129 lines elided ↑ open up ↑
 162  163          {                                                       \
 163  164                  char Xc;                                        \
 164  165                  const char *Xcp;                                \
 165  166                  hash = (int)((uintptr_t)(dvp)) >> 8;            \
 166  167                  for (Xcp = (name); (Xc = *Xcp) != 0; Xcp++)     \
 167  168                          (hash) = ((hash) << 4) + (hash) + Xc;   \
 168  169                  ASSERT((Xcp - (name)) <= ((1 << NBBY) - 1));    \
 169  170                  (namlen) = Xcp - (name);                        \
 170  171          }
 171  172  
 172      -#if defined(_KERNEL)
      173 +#if defined(_KERNEL) || defined(_FAKE_KERNEL)
 173  174  
 174  175  #include <sys/vfs.h>
 175  176  #include <sys/vnode.h>
 176  177  
 177      -extern int ncsize;              /* set in param_init() # of dnlc entries */
      178 +extern volatile int ncsize;     /* set in param_init() # of dnlc entries */
 178  179  extern vnode_t negative_cache_vnode;
 179  180  #define DNLC_NO_VNODE &negative_cache_vnode
 180  181  
 181  182  void    dnlc_init(void);
 182  183  void    dnlc_enter(vnode_t *, const char *, vnode_t *);
 183  184  void    dnlc_update(vnode_t *, const char *, vnode_t *);
 184  185  vnode_t *dnlc_lookup(vnode_t *, const char *);
 185  186  void    dnlc_purge(void);
 186  187  void    dnlc_purge_vp(vnode_t *);
 187  188  int     dnlc_purge_vfsp(vfs_t *, int);
↓ open down ↓ 186 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX