Print this page
NEX-14666 Need to provide SMB 2.1 Client
NEX-17187 panic in smbfs_acl_store
NEX-17231 smbfs create xattr files finds wrong file
NEX-17224 smbfs lookup EINVAL should be ENOENT
NEX-17260 SMB1 client fails to list directory after NEX-14666
Reviewed by: Evan Layton <evan.layton@nexenta.com>
Reviewed by: Matt Barden <matt.barden@nexenta.com>
Reviewed by: Rick McNeal <rick.mcneal@nexenta.com>
Reviewed by: Saso Kiselkov <saso.kiselkov@nexenta.com>
Reviewed by: Joyce McIntosh <joyce.mcintosh@nexenta.com>
and: (cleanup)
1575 untangle libmlrpc from SMB server
Reviewed by: Matt Barden <matt.barden@nexenta.com>
Reviewed by: Evan Layton <evan.layton@nexenta.com>
Reviewed by: Toomas Soome <tsoome@me.com>
Approved by: Richard Lowe <richlowe@richlowe.net>
re #12739 rb4173 AD join with lmauth_level=2 fails

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libsmbfs/netsmb/smbfs_api.h
          +++ new/usr/src/lib/libsmbfs/netsmb/smbfs_api.h
↓ open down ↓ 14 lines elided ↑ open up ↑
  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  /*
  23   23   * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25      - * Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
       25 + *
       26 + * Copyright 2018 Nexenta Systems, Inc.  All rights reserved.
  26   27   */
  27   28  
  28   29  #ifndef _NETSMB_SMBFS_API_H
  29   30  #define _NETSMB_SMBFS_API_H
  30   31  
  31   32  /*
  32   33   * Define the API exported to our commands and to
  33   34   * libraries doing DCE-RPC over SMB named pipes.
  34   35   */
  35   36  
↓ open down ↓ 79 lines elided ↑ open up ↑
 115  116  
 116  117  int  smb_ctx_flags2(struct smb_ctx *);
 117  118  int  smb_ctx_resolve(struct smb_ctx *);
 118  119  int  smb_ctx_get_ssn(struct smb_ctx *);
 119  120  int  smb_ctx_get_tree(struct smb_ctx *);
 120  121  
 121  122  int  smb_ctx_setauthflags(struct smb_ctx *, int);
 122  123  int  smb_ctx_setcharset(struct smb_ctx *, const char *);
 123  124  int  smb_ctx_setfullserver(struct smb_ctx *, const char *);
 124  125  int  smb_ctx_setsigning(struct smb_ctx *, int ena, int req);
      126 +int  smb_ctx_setminver(struct smb_ctx *, int ver);
      127 +int  smb_ctx_setmaxver(struct smb_ctx *, int ver);
 125  128  
 126  129  int  smb_ctx_setnbflags(struct smb_ctx *, int ena, int bcast);
 127  130  int  smb_ctx_setscope(struct smb_ctx *, const char *);
 128  131  int  smb_ctx_setwins(struct smb_ctx *, const char *, const char *);
 129  132  
 130  133  int  smb_ctx_setsrvaddr(struct smb_ctx *, const char *);
 131  134  int  smb_ctx_setserver(struct smb_ctx *, const char *);
 132  135  int  smb_ctx_setshare(struct smb_ctx *, const char *, int);
 133  136  
 134  137  int  smb_ctx_setdomain(struct smb_ctx *, const char *, int);
 135  138  int  smb_ctx_setuser(struct smb_ctx *, const char *, int);
 136  139  int  smb_ctx_setpassword(struct smb_ctx *, const char *, int);
 137  140  int  smb_ctx_setpwhash(struct smb_ctx *, const uchar_t *, const uchar_t *);
 138  141  
 139  142  typedef void (*smb_ctx_close_hook_t)(struct smb_ctx *);
 140  143  void smb_ctx_set_close_hook(smb_ctx_close_hook_t);
 141  144  int  smb_fh_close(int);
 142  145  int  smb_fh_open(struct smb_ctx *ctx, const char *, int);
 143      -int  smb_fh_read(int, off_t, size_t, char *);
 144      -int  smb_fh_write(int, off_t, size_t, const char *);
      146 +int  smb_fh_read(int, off64_t, size_t, char *);
      147 +int  smb_fh_write(int, off64_t, size_t, const char *);
 145  148  int  smb_fh_xactnp(int, int, const char *,
 146  149          int *, char *, int *);
 147  150  int  smb_fh_getssnkey(int, uchar_t *, size_t);
 148  151  
 149  152  int  smb_open_printer(struct smb_ctx *, const char *, int, int);
 150  153  
 151  154  void smbfs_set_default_domain(const char *);
 152  155  void smbfs_set_default_user(const char *);
 153  156  
 154  157  char *smb_strerror(int);
 155  158  
 156  159  #ifdef  __cplusplus
 157  160  }
 158  161  #endif
 159  162  
 160  163  #endif /* _NETSMB_SMBFS_API_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX