Print this page
NEX-17289 Minimal SMB 3.0.2 support
Reviewed by: Gordon Ross <gordon.ross@nexenta.com>
Reviewed by: Evan Layton <evan.layton@nexenta.com>
NEX-6276 SMB sparse file support
Reviewed by: Kevin Crowe <kevin.crowe@nexenta.com>
Reviewed by: Matt Barden <matt.barden@nexenta.com>
Reviewed by: Evan Layton <evan.layton@nexenta.com>
NEX-3620 need upstream cleanups for smbsrv
Reviewed by: Hans Rosenfeld <hans.rosenfeld@nexenta.com>
SMB-11 SMB2 message parse & dispatch
SMB-12 SMB2 Negotiate Protocol
SMB-13 SMB2 Session Setup
SMB-14 SMB2 Logoff
SMB-15 SMB2 Tree Connect
SMB-16 SMB2 Tree Disconnect
SMB-17 SMB2 Create
SMB-18 SMB2 Close
SMB-19 SMB2 Flush
SMB-20 SMB2 Read
SMB-21 SMB2 Write
SMB-22 SMB2 Lock/Unlock
SMB-23 SMB2 Ioctl
SMB-24 SMB2 Cancel
SMB-25 SMB2 Echo
SMB-26 SMB2 Query Dir
SMB-27 SMB2 Change Notify
SMB-28 SMB2 Query Info
SMB-29 SMB2 Set Info
SMB-30 SMB2 Oplocks
SMB-53 SMB2 Create Context options
(SMB2 code review cleanup 1, 2, 3)
re #7815 SMB server delivers old modification time...

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/smbsrv/smb_vops.h
          +++ new/usr/src/uts/common/smbsrv/smb_vops.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) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
  23      - * Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
       23 + * Copyright 2018 Nexenta Systems, Inc.  All rights reserved.
  24   24   */
  25   25  
  26   26  #ifndef _SMBSRV_SMB_VOPS_H
  27   27  #define _SMBSRV_SMB_VOPS_H
  28   28  
  29   29  /*
  30   30   * Common file system interfaces and definitions.
  31   31   */
  32   32  
  33   33  #include <sys/types.h>
↓ open down ↓ 84 lines elided ↑ open up ↑
 118  118   */
 119  119  #define SMB_AT_ALL      (SMB_AT_BASIC | SMB_AT_STANDARD | SMB_AT_NODEID)
 120  120  
 121  121  int fhopen(const struct smb_node *, int);
 122  122  
 123  123  int smb_vop_init(void);
 124  124  void smb_vop_fini(void);
 125  125  void smb_vop_start(void);
 126  126  int smb_vop_open(vnode_t **, int, cred_t *);
 127  127  void smb_vop_close(vnode_t *, int, cred_t *);
 128      -int smb_vop_read(vnode_t *, uio_t *, cred_t *);
      128 +int smb_vop_read(vnode_t *, uio_t *, int, cred_t *);
 129  129  int smb_vop_write(vnode_t *, uio_t *, int, uint32_t *, cred_t *);
      130 +int smb_vop_ioctl(vnode_t *, int, void *, cred_t *);
 130  131  int smb_vop_getattr(vnode_t *, vnode_t *, smb_attr_t *, int, cred_t *);
 131  132  int smb_vop_setattr(vnode_t *, vnode_t *, smb_attr_t *, int, cred_t *);
 132  133  int smb_vop_space(vnode_t *, int, flock64_t *, int, offset_t, cred_t *);
 133  134  int smb_vop_access(vnode_t *, int, int, vnode_t *, cred_t *);
 134  135  void smb_vop_eaccess(vnode_t *, int *, int, vnode_t *, cred_t *);
 135  136  int smb_vop_lookup(vnode_t *, char *, vnode_t **, char *, int, int *, vnode_t *,
 136  137      smb_attr_t *, cred_t *);
 137  138  int smb_vop_create(vnode_t *, char *, smb_attr_t *, vnode_t **, int, cred_t *,
 138  139      vsecattr_t *);
 139  140  int smb_vop_link(vnode_t *, vnode_t *, char *, int, cred_t *);
↓ open down ↓ 36 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX