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)


   5  * Common Development and Distribution License (the "License").
   6  * You may not use this file except in compliance with the License.
   7  *
   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 
  22 /*
  23  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  24  * Use is subject to license terms.


  25  */
  26 
  27 /*
  28  * basic API declarations for share management
  29  */
  30 
  31 #ifndef _LIBSHARE_SMBFS_H
  32 #define _LIBSHARE_SMBFS_H
  33 
  34 #ifdef  __cplusplus
  35 extern "C" {
  36 #endif
  37 
  38 struct smbclnt_proto_option_defs {
  39         char *name;     /* display name -- remove protocol identifier */
  40         char *value;
  41         int index;
  42         int flags;
  43         int32_t minval;
  44         int32_t maxval; /* In case of length of string this should be max */
  45         int (*validator)(int, char *, char *);
  46 };
  47 
  48 extern struct smbclnt_proto_option_defs smbclnt_proto_options[];
  49 
  50 #define PROTO_OPT_SECTION               0
  51 #define PROTO_OPT_ADDR                  1
  52 #define PROTO_OPT_MINAUTH               2
  53 #define PROTO_OPT_NBNS_BROADCAST        3
  54 #define PROTO_OPT_NBNS_ENABLE           4
  55 #define PROTO_OPT_NBNSADDR              5
  56 #define PROTO_OPT_PASSWORD              6
  57 #define PROTO_OPT_TIMEOUT               7
  58 #define PROTO_OPT_USER                  8
  59 #define PROTO_OPT_DOMAIN                9
  60 #define PROTO_OPT_WORKGROUP             10
  61 #define PROTO_OPT_SIGNING               11


  62 
  63 #define SMBC_OPT_MAX    PROTO_OPT_SIGNING
  64 
  65 /*
  66  * Flags values
  67  */
  68 #define SMBC_MODIFIED                   0x01
  69 
  70 /* Max value length of all SMB properties */
  71 #define MAX_VALUE_BUFLEN        600
  72 
  73 /*
  74  * SMF access
  75  */
  76 
  77 #define SMBC_FMRI_PREFIX                "network/smb/client"
  78 #define SMBC_DEFAULT_INSTANCE_FMRI      "svc:/network/smb/client:default"
  79 #define SMBC_PG_PREFIX                  "S-"
  80 #define SMBC_PG_PREFIX_LEN              2
  81 #define SMBC_PG_INSTANCE                "default"
  82 
  83 #define SMBC_SMF_OK             0




   5  * Common Development and Distribution License (the "License").
   6  * You may not use this file except in compliance with the License.
   7  *
   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 
  22 /*
  23  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  24  * Use is subject to license terms.
  25  *
  26  * Copyright 2018 Nexenta Systems, Inc.  All rights reserved.
  27  */
  28 
  29 /*
  30  * basic API declarations for share management
  31  */
  32 
  33 #ifndef _LIBSHARE_SMBFS_H
  34 #define _LIBSHARE_SMBFS_H
  35 
  36 #ifdef  __cplusplus
  37 extern "C" {
  38 #endif
  39 
  40 struct smbclnt_proto_option_defs {
  41         char *name;     /* display name -- remove protocol identifier */
  42         char *value;
  43         int index;
  44         int flags;
  45         int32_t minval;
  46         int32_t maxval; /* In case of length of string this should be max */
  47         int (*validator)(int, char *, char *);
  48 };
  49 
  50 extern struct smbclnt_proto_option_defs smbclnt_proto_options[];
  51 
  52 #define PROTO_OPT_SECTION               0
  53 #define PROTO_OPT_ADDR                  1
  54 #define PROTO_OPT_MINAUTH               2
  55 #define PROTO_OPT_NBNS_BROADCAST        3
  56 #define PROTO_OPT_NBNS_ENABLE           4
  57 #define PROTO_OPT_NBNSADDR              5
  58 #define PROTO_OPT_PASSWORD              6
  59 #define PROTO_OPT_TIMEOUT               7
  60 #define PROTO_OPT_USER                  8
  61 #define PROTO_OPT_DOMAIN                9
  62 #define PROTO_OPT_WORKGROUP             10
  63 #define PROTO_OPT_SIGNING               11
  64 #define PROTO_OPT_MIN_PROTOCOL          12
  65 #define PROTO_OPT_MAX_PROTOCOL          13
  66 
  67 #define SMBC_OPT_MAX    PROTO_OPT_MAX_PROTOCOL
  68 
  69 /*
  70  * Flags values
  71  */
  72 #define SMBC_MODIFIED                   0x01
  73 
  74 /* Max value length of all SMB properties */
  75 #define MAX_VALUE_BUFLEN        600
  76 
  77 /*
  78  * SMF access
  79  */
  80 
  81 #define SMBC_FMRI_PREFIX                "network/smb/client"
  82 #define SMBC_DEFAULT_INSTANCE_FMRI      "svc:/network/smb/client:default"
  83 #define SMBC_PG_PREFIX                  "S-"
  84 #define SMBC_PG_PREFIX_LEN              2
  85 #define SMBC_PG_INSTANCE                "default"
  86 
  87 #define SMBC_SMF_OK             0