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)
5404 smbfs needs mmap support
Portions contributed by: Gordon Ross <gordon.w.ross@gmail.com>
Reviewed by: C Fraire <cfraire@me.com>
Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed by: Jason King <jason.brian.king@gmail.com>
Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
Approved by: Richard Lowe <richlowe@richlowe.net>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/smbclnt/smbfs/smbfs_node.c
          +++ new/usr/src/uts/common/fs/smbclnt/smbfs/smbfs_node.c
↓ open down ↓ 27 lines elided ↑ open up ↑
  28   28   * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  29   29   * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  30   30   * SUCH DAMAGE.
  31   31   *
  32   32   * $Id: smbfs_node.c,v 1.54.52.1 2005/05/27 02:35:28 lindak Exp $
  33   33   */
  34   34  
  35   35  /*
  36   36   * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  37   37   * Use is subject to license terms.
       38 + *
       39 + * Copyright 2017 Nexenta Systems, Inc.  All rights reserved.
  38   40   */
  39   41  
  40   42  #include <sys/param.h>
  41   43  #include <sys/systm.h>
  42   44  #include <sys/cred.h>
       45 +#include <sys/errno.h>
  43   46  #include <sys/time.h>
  44   47  #include <sys/vfs.h>
  45   48  #include <sys/vnode.h>
  46   49  #include <sys/kmem.h>
  47   50  #include <sys/stat.h>
  48   51  #include <sys/atomic.h>
  49   52  #include <sys/cmn_err.h>
  50   53  #include <sys/sysmacros.h>
  51   54  #include <sys/bitmap.h>
  52   55  
↓ open down ↓ 142 lines elided ↑ open up ↑
 195  198          }
 196  199  
 197  200          /* BSD symlink hack removed (smb_symmagic) */
 198  201  
 199  202          *vpp = vp;
 200  203  
 201  204          return (0);
 202  205  }
 203  206  
 204  207  /*
 205      - * smbfs_attrcache_enter, smbfs_attrcache_lookup replaced by
 206      - * code more closely resembling NFS.  See smbfs_client.c
 207      - */
 208      -
 209      -/*
 210  208   * Update the local notion of the mtime of some directory.
 211  209   * See comments re. r_mtime in smbfs_node.h
 212  210   */
 213  211  void
 214  212  smbfs_attr_touchdir(struct smbnode *dnp)
 215  213  {
 216  214  
 217  215          mutex_enter(&dnp->r_statelock);
 218  216  
 219  217          /*
↓ open down ↓ 31 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX